| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| private boolean | |
| public int | |
| public int | |
| public int | |
| public String | toString()
Overrides java. Returns the string representation of the token value. |
| public Object |
| ind | back to summary |
|---|---|
| private final int ind | |
| len | back to summary |
|---|---|
| private final int len | |
| value | back to summary |
|---|---|
| private final Object value | |
| Token | back to summary |
|---|---|
public Token(int index, int length, Object value)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| equalToken | back to summary |
|---|---|
| private boolean equalToken(Token that) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| index | back to summary |
|---|---|
| public int index() Returns the index of the token in the original source. | |
| length | back to summary |
|---|---|
| public int length() Returns the length of the token. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the string representation of the token value.
| |
| value | back to summary |
|---|---|
| public Object value() Returns the token value. | |