|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.sqlparser.Token
public final class Token
The token class hold a token type and the corresponding value.
| Constructor Summary | |
|---|---|
Token(TokenType type)
Constructor for token w/o a value. |
|
Token(TokenType type,
String value)
Constructor for token w/ value. |
|
| Method Summary | |
|---|---|
TokenType |
getType()
Returns the token type of this token. |
String |
getValue()
Returns the value of this token. |
String |
toString()
Returns the string representation of this token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Token(TokenType type)
type - token type.
public Token(TokenType type,
String value)
type - the token type.value - the token value.| Method Detail |
|---|
public TokenType getType()
public String getValue()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||