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

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

public final class SimpleToken
extends Object

Holder for a token, with associated type and position in the input.


Constructor Summary
SimpleToken(SimpleTokenType type, int index)
           
SimpleToken(SimpleTokenType type, int index, int length)
           
 
Method Summary
 int getIndex()
           
 int getLength()
           
 String getText()
           
 SimpleTokenType getType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleToken

public SimpleToken(SimpleTokenType type,
                   int index)

SimpleToken

public SimpleToken(SimpleTokenType type,
                   int index,
                   int length)
Method Detail

getType

public SimpleTokenType getType()

getIndex

public int getIndex()

getText

public String getText()

getLength

public int getLength()

toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL