org.apache.camel.language.simple.types
Class SimpleTokenType

java.lang.Object
  extended by org.apache.camel.language.simple.types.SimpleTokenType

public class SimpleTokenType
extends Object

The different token types used by the simple parser.


Constructor Summary
SimpleTokenType(TokenType type, String value)
           
 
Method Summary
 TokenType getType()
          Gets the type of this token
 String getValue()
          Gets the input value in this token
 boolean isBinary()
          Whether the type is binary operator
 boolean isDoubleQuote()
          Whether the type is double quote
 boolean isEol()
          Whether the type is eol
 boolean isEscape()
          Whether the type is escape
 boolean isFunctionEnd()
          Whether the type is a function end
 boolean isFunctionStart()
          Whether the type is a function start
 boolean isLogical()
          Whether the type is logical operator
 boolean isNullValue()
          Whether the type is a null value
 boolean isSingleQuote()
          Whether the type is single quote
 boolean isUnary()
          Whether the type is unary operator
 boolean isWhitespace()
          Whether the type is whitespace
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleTokenType

public SimpleTokenType(TokenType type,
                       String value)
Method Detail

getType

public TokenType getType()
Gets the type of this token

Returns:
the type

getValue

public String getValue()
Gets the input value in this token

Returns:
the value

isWhitespace

public boolean isWhitespace()
Whether the type is whitespace


isEol

public boolean isEol()
Whether the type is eol


isEscape

public boolean isEscape()
Whether the type is escape


isSingleQuote

public boolean isSingleQuote()
Whether the type is single quote


isDoubleQuote

public boolean isDoubleQuote()
Whether the type is double quote


isFunctionStart

public boolean isFunctionStart()
Whether the type is a function start


isFunctionEnd

public boolean isFunctionEnd()
Whether the type is a function end


isBinary

public boolean isBinary()
Whether the type is binary operator


isUnary

public boolean isUnary()
Whether the type is unary operator


isLogical

public boolean isLogical()
Whether the type is logical operator


isNullValue

public boolean isNullValue()
Whether the type is a null value


toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL