Modifier and Type | Field and Description |
---|---|
static TokenEPSILON |
EPSILON |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Test tokens for equality.
|
java.lang.String |
getValue()
Return the string value of this token.
|
int |
hashCode()
Assure that equal tokens return the same hash code.
|
boolean |
matches(Token input)
Does this token match the input?
|
java.lang.String |
toString()
Pretty print a token.
|
addAttribute, addAttributes, getAttribute, getAttributes, getAttributesMap, getAttributeValue, hasAttribute
public static final TokenEPSILON EPSILON
public java.lang.String getValue()
public boolean matches(Token input)
This token matches other token characters
that have the same
character as well as TokenStrings
that are one character long and
contain the same character.
public boolean equals(java.lang.Object obj)
Two tokens are equal if they represent the same character.
equals
in class java.lang.Object
obj
- An object.obj
is equal to this terminal character.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object