Package org.jparsec
Class Token
java.lang.Object
org.jparsec.Token
Represents any token with a token value and the 0-based index in the source.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
private boolean
equalToken
(Token that) int
hashCode()
int
index()
Returns the index of the token in the original source.int
length()
Returns the length of the token.toString()
Returns the string representation of the token value.value()
Returns the token value.
-
Field Details
-
ind
private final int ind -
len
private final int len -
value
-
-
Constructor Details
-
Token
- Parameters:
index
- the starting index.length
- the length of the token.value
- the token value.
-
-
Method Details
-
length
public int length()Returns the length of the token. -
index
public int index()Returns the index of the token in the original source. -
value
Returns the token value. -
toString
Returns the string representation of the token value. -
hashCode
public int hashCode() -
equals
-
equalToken
-