|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.common.query.xpath.Token
public final class Token
A single token in the token stream. Every token has a String value and a token type.
| Constructor Summary | |
|---|---|
Token(TokenType type,
String value)
Constructor. |
|
| Method Summary | |
|---|---|
TokenType |
getType()
|
String |
getValue()
|
boolean |
matches(String... values)
Returns true if this token's value matches any of the values provided. |
boolean |
matches(TokenType... tokenTypes)
Returns true if this token's type matches any of the token types provided. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Token(TokenType type,
String value)
type - value - | Method Detail |
|---|
public TokenType getType()
public String getValue()
public boolean matches(String... values)
values - public boolean matches(TokenType... tokenTypes)
tokenTypes - public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||