Class SimpleFunctionExpression
- java.lang.Object
-
- org.apache.camel.language.simple.ast.BaseSimpleNode
-
- org.apache.camel.language.simple.ast.LiteralExpression
-
- org.apache.camel.language.simple.ast.SimpleFunctionExpression
-
- All Implemented Interfaces:
LiteralNode
,SimpleNode
public class SimpleFunctionExpression extends LiteralExpression
Represents one of built-in functions of the simple language
-
-
Field Summary
-
Fields inherited from class org.apache.camel.language.simple.ast.LiteralExpression
text
-
Fields inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
token
-
-
Constructor Summary
Constructors Constructor Description SimpleFunctionExpression(SimpleToken token, Map<String,org.apache.camel.Expression> cacheExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createCode(String expression)
Creates Java code based on this model.String
createCodeDirectly(String expression)
org.apache.camel.Expression
createExpression(org.apache.camel.CamelContext camelContext, String expression)
Creates a CamelExpression
based on this model.-
Methods inherited from class org.apache.camel.language.simple.ast.LiteralExpression
addText, getText, quoteEmbeddedNodes, toString
-
Methods inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
getToken
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.camel.language.simple.ast.SimpleNode
getToken
-
-
-
-
Constructor Detail
-
SimpleFunctionExpression
public SimpleFunctionExpression(SimpleToken token, Map<String,org.apache.camel.Expression> cacheExpression)
-
-
Method Detail
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, String expression)
Creates a CamelExpression
based on this model.- Specified by:
createExpression
in interfaceSimpleNode
- Overrides:
createExpression
in classLiteralExpression
- Parameters:
expression
- not in usecamelContext
- the camel context- Returns:
- the created
Expression
-
createCode
public String createCode(String expression) throws SimpleParserException
Description copied from interface:SimpleNode
Creates Java code based on this model.- Specified by:
createCode
in interfaceSimpleNode
- Overrides:
createCode
in classLiteralExpression
- Parameters:
expression
- the input string- Returns:
- the created Java code
- Throws:
SimpleParserException
- should be thrown if error parsing the model
-
createCodeDirectly
public String createCodeDirectly(String expression) throws SimpleParserException
- Throws:
SimpleParserException
-
-