Class SimpleFunctionStart
java.lang.Object
org.apache.camel.language.simple.ast.BaseSimpleNode
org.apache.camel.language.simple.ast.SimpleFunctionStart
- All Implemented Interfaces:
Block,BlockStart,SimpleNode
Starts a function
-
Field Summary
Fields inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
token -
Constructor Summary
ConstructorsConstructorDescriptionSimpleFunctionStart(SimpleToken token, Map<String, org.apache.camel.Expression> cacheExpression) -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptAndAddNode(SimpleNode node) Whether to accept and add the given node in this block.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.getBlock()booleanlazyEval(SimpleNode child) toString()Methods inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
createCode, getTokenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.language.simple.ast.SimpleNode
getToken
-
Constructor Details
-
SimpleFunctionStart
public SimpleFunctionStart(SimpleToken token, Map<String, org.apache.camel.Expression> cacheExpression)
-
-
Method Details
-
getBlock
-
lazyEval
-
toString
- Overrides:
toStringin classBaseSimpleNode
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, String expression) Description copied from interface:SimpleNodeCreates a CamelExpressionbased on this model.- Specified by:
createExpressionin interfaceSimpleNode- Parameters:
camelContext- the camel contextexpression- the input string- Returns:
- the created
Expression
-
acceptAndAddNode
Description copied from interface:BlockWhether to accept and add the given node in this block.- Specified by:
acceptAndAddNodein interfaceBlock- Parameters:
node- the other node.- Returns:
- true to accept and add to this block, false to end this block.
-
createCode
Description copied from interface:SimpleNodeCreates Java code based on this model.- Specified by:
createCodein interfaceSimpleNode- Parameters:
expression- the input string- Returns:
- the created Java code
- Throws:
SimpleParserException- should be thrown if error parsing the model
-