|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttokenizer.Token
public class Token
| Constructor Summary | |
|---|---|
Token(TokenType type,
java.lang.String value)
Creates a token. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Tests whether this Token equals the input. |
TokenType |
getType()
Returns the type of this Token. |
java.lang.String |
getValue()
Returns the value of this Token. |
int |
hashCode()
Returns a hash code for this token. |
static void |
includeType(boolean include)
Specifies whether the type should be included in the result of toString(). |
java.lang.String |
toString()
Returns the string value of this Token, or (depending on the value of INCLUDE_TYPE_IN_PRINT_STRING),
a string of the form type:value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Token(TokenType type,
java.lang.String value)
type - The type of this new Token.value - The value of this new Token.| Method Detail |
|---|
public TokenType getType()
public java.lang.String getValue()
public static void includeType(boolean include)
toString().
include - true if the type should be included in toString().public java.lang.String toString()
INCLUDE_TYPE_IN_PRINT_STRING),
a string of the form type:value.
toString in class java.lang.ObjectObject.toString()public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The thing to be tested against this Token.
true iff the argument equals this Token.Object.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||