org.apache.camel.language.simple.ast
Class SimpleFunctionExpression
java.lang.Object
org.apache.camel.language.simple.ast.BaseSimpleNode
org.apache.camel.language.simple.ast.LiteralExpression
org.apache.camel.language.simple.ast.SimpleFunctionExpression
- All Implemented Interfaces:
- LiteralNode, SimpleNode
public class SimpleFunctionExpression
- extends LiteralExpression
Represents one of built-in functions of the
simple language
SimpleFunctionExpression
public SimpleFunctionExpression(SimpleToken token)
createExpression
public Expression createExpression(String expression)
- Description copied from interface:
SimpleNode
- Creates a Camel
Expression
based on this model.
- Specified by:
createExpression
in interface SimpleNode
- Overrides:
createExpression
in class LiteralExpression
- Parameters:
expression
- the input string
- Returns:
- the created
Expression
createExpression
public Expression createExpression(String expression,
boolean strict)
- Creates a Camel
Expression
based on this model.
- Parameters:
expression
- the input stringstrict
- whether to throw exception if the expression was not a function,
otherwise null is returned
- Returns:
- the created
Expression
- Throws:
SimpleParserException
- should be thrown if error parsing the model
Apache CAMEL