public final class AnyElementToken extends ElementToken
EoCR(exp) := exp/e1 | exp/e2 | ... | exp/en
{ei} = elements of concern
exp/ei = residual(exp,ei)
'|' represents choice
| Modifier and Type | Field | Description |
|---|---|---|
static Token |
theInstance |
use this singleton instance instead of creating an object.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
match(ElementExp exp) |
returns true if the given ElementExp can consume this token
|
toStringpublic static final Token theInstance
public boolean match(ElementExp exp)
Tokenmatch in class ElementTokenCopyright © 2019 Oracle Corporation. All rights reserved.