Interface SimpleNode
- All Known Subinterfaces:
Block,BlockStart,LiteralNode
- All Known Implementing Classes:
BaseSimpleNode,BinaryExpression,BooleanExpression,CompositeNodes,DoubleQuoteEnd,DoubleQuoteStart,LiteralExpression,LogicalExpression,NullExpression,NumericExpression,SimpleFunctionEnd,SimpleFunctionExpression,SimpleFunctionStart,SingleQuoteEnd,SingleQuoteStart,UnaryExpression
public interface SimpleNode
Represents a node in the Simple AST
-
Method Summary
Modifier and TypeMethodDescriptioncreateCode(org.apache.camel.CamelContext camelContext, String expression) Creates Java code based on this model.org.apache.camel.ExpressioncreateExpression(org.apache.camel.CamelContext camelContext, String expression) Creates a CamelExpressionbased on this model.getToken()Gets the token by which this model was based upon
-
Method Details
-
getToken
SimpleToken getToken()Gets the token by which this model was based upon- Returns:
- the token
-
createExpression
org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, String expression) throws SimpleParserException Creates a CamelExpressionbased on this model.- Parameters:
camelContext- the camel contextexpression- the input string- Returns:
- the created
Expression - Throws:
SimpleParserException- should be thrown if error parsing the model
-
createCode
String createCode(org.apache.camel.CamelContext camelContext, String expression) throws SimpleParserException Creates Java code based on this model.- Parameters:
camelContext- the camel contextexpression- the input string- Returns:
- the created Java code
- Throws:
SimpleParserException- should be thrown if error parsing the model
-