Class UnaryExpression
java.lang.Object
org.apache.camel.language.simple.ast.BaseSimpleNode
org.apache.camel.language.simple.ast.UnaryExpression
- All Implemented Interfaces:
SimpleNode
Represents an unary 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 TypeMethodDescriptionvoidacceptLeft(SimpleNode left) Accepts the left node to this operatorcreateCode(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()toString()Methods inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
createCode, getToken
-
Constructor Details
-
UnaryExpression
-
-
Method Details
-
toString
- Overrides:
toStringin classBaseSimpleNode
-
acceptLeft
Accepts the left node to this operator- Parameters:
left- the left node to accept
-
getOperator
-
getLeft
-
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
-