Class SimpleToken
- java.lang.Object
-
- 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
Constructors Constructor Description SimpleToken(SimpleTokenType type, int index)
SimpleToken(SimpleTokenType type, int index, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
int
getLength()
String
getText()
SimpleTokenType
getType()
String
toString()
-
-
-
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()
-
-