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, matchAnyStringfinal ElementExp[] acceptedPatterns
public ElementToken(ElementExp[] acceptedPatterns)
public boolean match(ElementExp exp)
Tokenpublic java.lang.String toString()
toString in class java.lang.Object