public interface IUnorderedGroupHelper
Modifier and Type | Interface and Description |
---|---|
static class |
IUnorderedGroupHelper.Null |
static interface |
IUnorderedGroupHelper.UnorderedGroupState |
Modifier and Type | Method and Description |
---|---|
boolean |
canLeave(UnorderedGroup group)
Query for remaining mandatory alternatives.
|
boolean |
canSelect(UnorderedGroup group,
int index)
Predicate to answer the question whether the given
alternative may be used.
|
void |
enter(UnorderedGroup group)
Invoke when the group is entered in the parser.
|
void |
initializeWith(org.antlr.runtime.BaseRecognizer recognizer)
Initializes this helper with the given recognizer.
|
void |
leave(UnorderedGroup group)
Leave the group.
|
void |
returnFromSelection(UnorderedGroup group)
Finish the previously selected alternative.
|
void |
select(UnorderedGroup group,
int index)
Announce the usage of the given alternative.
|
IUnorderedGroupHelper.UnorderedGroupState |
snapShot(UnorderedGroup... groups)
Obtain the current state to be able to roll-back after backtracking.
|
void initializeWith(org.antlr.runtime.BaseRecognizer recognizer)
void enter(UnorderedGroup group)
void leave(UnorderedGroup group)
boolean canSelect(UnorderedGroup group, int index)
void select(UnorderedGroup group, int index)
void returnFromSelection(UnorderedGroup group)
boolean canLeave(UnorderedGroup group)
IUnorderedGroupHelper.UnorderedGroupState snapShot(UnorderedGroup... groups)