Class CompositeNodes
java.lang.Object
org.apache.camel.language.simple.ast.BaseSimpleNode
org.apache.camel.language.simple.ast.CompositeNodes
- All Implemented Interfaces:
SimpleNode
A node which contains other
nodes.-
Field Summary
Fields inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(SimpleNode child) createCode(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.toString()Methods inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
createCode, getToken
-
Constructor Details
-
CompositeNodes
-
-
Method Details
-
toString
- Overrides:
toStringin classBaseSimpleNode
-
addChild
-
getChildren
-
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
public String createCode(org.apache.camel.CamelContext camelContext, String expression) throws SimpleParserException Description copied from interface:SimpleNodeCreates 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
-