public enum MatcherType extends Enum<MatcherType>
Enum Constant and Description |
---|
ACTION
Action
|
COMPOSITE
Composite
|
PREDICATE
Predicate
|
TERMINAL
Terminal: a matcher which does not need another matcher to operate
|
Modifier and Type | Method and Description |
---|---|
static MatcherType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatcherType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatcherType TERMINAL
This is equivalent to a terminal rule in formal grammars.
public static final MatcherType ACTION
Only used by ActionMatcher
.
public static final MatcherType COMPOSITE
A matcher which delegates to other matchers to determine the success of its operation. Such a matcher will also contain logic to determine whether the whole match succeeds.
public static final MatcherType PREDICATE
Indicates a matcher which delegates to other rules but will never advance into the input text.
public static MatcherType[] values()
for (MatcherType c : MatcherType.values()) System.out.println(c);
public static MatcherType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null