Class BinaryExpression
java.lang.Object
org.apache.camel.language.simple.ast.BaseSimpleNode
org.apache.camel.language.simple.ast.BinaryExpression
- All Implemented Interfaces:
SimpleNode
Represents a binary expression in the AST.
-
Field Summary
Fields inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptLeftNode(SimpleNode lef) booleanacceptRightNode(SimpleNode right) createCode(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.getLeft()getRight()toString()Methods inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
createCode, getToken
-
Constructor Details
-
BinaryExpression
-
-
Method Details
-
toString
- Overrides:
toStringin classBaseSimpleNode
-
acceptLeftNode
-
acceptRightNode
-
getOperator
-
getLeft
-
getRight
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, String expression) Description copied from interface:SimpleNodeCreates a CamelExpressionbased on this model.- Parameters:
camelContext- the camel contextexpression- the input string- Returns:
- the created
Expression
-
createCode
Description copied from interface:SimpleNodeCreates Java code based on this model.- Parameters:
expression- the input string- Returns:
- the created Java code
- Throws:
SimpleParserException- should be thrown if error parsing the model
-