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

java.lang.Object
  extended by org.apache.camel.language.simple.ast.BaseSimpleNode
      extended by org.apache.camel.language.simple.ast.UnaryExpression
All Implemented Interfaces:
SimpleNode

public class UnaryExpression
extends BaseSimpleNode

Represents an unary expression in the AST


Field Summary
 
Fields inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
token
 
Constructor Summary
UnaryExpression(SimpleToken token)
           
 
Method Summary
 void acceptLeft(SimpleNode left)
          Accepts the left node to this operator
 Expression createExpression(String expression)
          Creates a Camel Expression based on this model.
 UnaryOperatorType getOperator()
           
 String 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
 

Constructor Detail

UnaryExpression

public UnaryExpression(SimpleToken token)
Method Detail

toString

public String toString()
Overrides:
toString in class BaseSimpleNode

acceptLeft

public void acceptLeft(SimpleNode left)
Accepts the left node to this operator

Parameters:
left - the left node to accept

getOperator

public UnaryOperatorType getOperator()

createExpression

public Expression createExpression(String expression)
Description copied from interface: SimpleNode
Creates a Camel Expression based on this model.

Parameters:
expression - the input string
Returns:
the created Expression


Apache CAMEL