org.apache.camel.language.simple.ast
Class SimpleFunctionExpression

java.lang.Object
  extended by org.apache.camel.language.simple.ast.BaseSimpleNode
      extended by org.apache.camel.language.simple.ast.LiteralExpression
          extended by 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


Field Summary
 
Fields inherited from class org.apache.camel.language.simple.ast.LiteralExpression
text
 
Fields inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
token
 
Constructor Summary
SimpleFunctionExpression(SimpleToken token)
           
 
Method Summary
 Expression createExpression(String expression)
          Creates a Camel Expression based on this model.
 Expression createExpression(String expression, boolean strict)
          Creates a Camel Expression based on this model.
 
Methods inherited from class org.apache.camel.language.simple.ast.LiteralExpression
addText, getText, quoteEmbeddedNodes, toString
 
Methods inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
getToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.language.simple.ast.SimpleNode
getToken
 

Constructor Detail

SimpleFunctionExpression

public SimpleFunctionExpression(SimpleToken token)
Method Detail

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 string
strict - 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