public class ElementToken extends Token
Modifier and Type | Field and Description |
---|---|
(package private) ElementExp[] |
acceptedPatterns |
Constructor and Description |
---|
ElementToken(ElementExp[] acceptedPatterns) |
Modifier and Type | Method and Description |
---|---|
boolean |
match(ElementExp exp)
returns true if the given ElementExp can consume this token
|
java.lang.String |
toString() |
isIgnorable, match, match, match, match, matchAnyString
final ElementExp[] acceptedPatterns
public ElementToken(ElementExp[] acceptedPatterns)
public boolean match(ElementExp exp)
Token
public java.lang.String toString()
toString
in class java.lang.Object