public final class Token extends Object
| Constructor and Description |
|---|
Token(TokenType type,
String value)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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()Copyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.