Class NullExpression
- java.lang.Object
-
- org.apache.camel.language.simple.ast.BaseSimpleNode
-
- org.apache.camel.language.simple.ast.NullExpression
-
- All Implemented Interfaces:
SimpleNode
public class NullExpression extends BaseSimpleNode
Represents a null expression.
-
-
Field Summary
-
Fields inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
token
-
-
Constructor Summary
Constructors Constructor Description NullExpression(SimpleToken token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
getToken, toString
-
-
-
-
Constructor Detail
-
NullExpression
public NullExpression(SimpleToken token)
-
-
Method Detail
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, String expression) throws SimpleParserException
Description copied from interface:SimpleNode
Creates a CamelExpression
based on this model.- Parameters:
camelContext
- the camel contextexpression
- the input string- Returns:
- the created
Expression
- Throws:
SimpleParserException
- should be thrown if error parsing the model
-
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
-
-