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
Represents one of built-in functions of the simple language
-
Field Summary
Fields inherited from class org.apache.camel.language.simple.ast.LiteralExpression
textFields inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
token -
Constructor Summary
ConstructorsConstructorDescriptionSimpleFunctionExpression(SimpleToken token, Map<String, org.apache.camel.Expression> cacheExpression) -
Method Summary
Modifier and TypeMethodDescriptioncreateCode(String expression) Creates Java code based on this model.createCodeDirectly(String expression) org.apache.camel.ExpressioncreateExpression(org.apache.camel.CamelContext camelContext, String expression) Creates a CamelExpressionbased on this model.Methods inherited from class org.apache.camel.language.simple.ast.LiteralExpression
addText, getText, quoteEmbeddedNodes, toStringMethods inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
createCode, getTokenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.language.simple.ast.SimpleNode
getToken
-
Constructor Details
-
SimpleFunctionExpression
public SimpleFunctionExpression(SimpleToken token, Map<String, org.apache.camel.Expression> cacheExpression)
-
-
Method Details
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, String expression) Creates a CamelExpressionbased on this model.- Specified by:
createExpressionin interfaceSimpleNode- Overrides:
createExpressionin classLiteralExpression- Parameters:
camelContext- the camel contextexpression- not in use- Returns:
- the created
Expression
-
createCode
Description copied from interface:SimpleNodeCreates Java code based on this model.- Specified by:
createCodein interfaceSimpleNode- Overrides:
createCodein classLiteralExpression- Parameters:
expression- the input string- Returns:
- the created Java code
- Throws:
SimpleParserException- should be thrown if error parsing the model
-
createCodeDirectly
- Throws:
SimpleParserException
-