public class SourceToken
extends java.lang.Object
Constructor and Description |
---|
SourceToken(int tokenStart,
int tokenEnd,
short tokenValue)
Create a new SourceToken.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getTokenEnd()
Get the (exclusive) end offset of the token in the text buffer.
|
int |
getTokenStart()
Get the start of the token in the text buffer.
|
short |
getTokenValue()
Get the value of the token, one of JavaTokens.KW_XXX or
JavaTokens.OP_XXX or JavaTokens.TK_XXX.
|
int |
hashCode() |
java.lang.String |
toString()
Return the String representation of this token.
|
public SourceToken(int tokenStart, int tokenEnd, short tokenValue)
tokenStart
- The start offset of the token in the text buffer.tokenEnd
- The (exclusive) end offset of the token in the text buffer.tokenValue
- The token value, one of JavaTokens.KW_XXX or JavaTokens.OP_XXX
or JavaTokens.TK_XXX.public int getTokenStart()
public int getTokenEnd()
public short getTokenValue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object