Class LogicalExpression
- java.lang.Object
-
- org.apache.camel.language.simple.ast.BaseSimpleNode
-
- org.apache.camel.language.simple.ast.LogicalExpression
-
- All Implemented Interfaces:
SimpleNode
public class LogicalExpression extends BaseSimpleNode
Represents a logical expression in the AST
-
-
Field Summary
-
Fields inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
token
-
-
Constructor Summary
Constructors Constructor Description LogicalExpression(SimpleToken token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptLeftNode(SimpleNode lef)
boolean
acceptRightNode(SimpleNode right)
String
createCode(String expression)
Creates Java code based on this model.org.apache.camel.Expression
createExpression(org.apache.camel.CamelContext camelContext, String expression)
Creates a CamelExpression
based on this model.SimpleNode
getLeft()
LogicalOperatorType
getOperator()
SimpleNode
getRight()
String
toString()
-
Methods inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
getToken
-
-
-
-
Constructor Detail
-
LogicalExpression
public LogicalExpression(SimpleToken token)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classBaseSimpleNode
-
acceptLeftNode
public boolean acceptLeftNode(SimpleNode lef)
-
acceptRightNode
public boolean acceptRightNode(SimpleNode right)
-
getOperator
public LogicalOperatorType getOperator()
-
getLeft
public SimpleNode getLeft()
-
getRight
public SimpleNode getRight()
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, String expression)
Description copied from interface:SimpleNode
Creates a CamelExpression
based on this model.- Parameters:
camelContext
- the camel contextexpression
- the input string- Returns:
- the created
Expression
-
createCode
public String createCode(String expression) throws SimpleParserException
Description copied from interface:SimpleNode
Creates 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
-
-