|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jparsec.Token
public final class Token
Represents any token with a token value and the 0-based index in the source.
Constructor Summary | |
---|---|
Token(int index,
int length,
Object value)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
int |
index()
Returns the index of the token in the original source. |
int |
length()
Returns the length of the token. |
String |
toString()
Returns the string representation of the token value. |
Object |
value()
Returns the token value. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Token(int index, int length, Object value)
index
- the starting index.length
- the length of the token.value
- the token value.Method Detail |
---|
public int length()
public int index()
public Object value()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |