Package org.eclipse.xtext.parser.antlr
Interface IUnorderedGroupHelper
-
- All Known Implementing Classes:
IUnorderedGroupHelper.Null,UnorderedGroupHelper
public interface IUnorderedGroupHelper
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIUnorderedGroupHelper.Nullstatic interfaceIUnorderedGroupHelper.UnorderedGroupState
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanLeave(UnorderedGroup group)Query for remaining mandatory alternatives.booleancanSelect(UnorderedGroup group, int index)Predicate to answer the question whether the given alternative may be used.voidenter(UnorderedGroup group)Invoke when the group is entered in the parser.voidinitializeWith(org.antlr.runtime.BaseRecognizer recognizer)Initializes this helper with the given recognizer.voidleave(UnorderedGroup group)Leave the group.voidreturnFromSelection(UnorderedGroup group)Finish the previously selected alternative.voidselect(UnorderedGroup group, int index)Announce the usage of the given alternative.IUnorderedGroupHelper.UnorderedGroupStatesnapShot(UnorderedGroup... groups)Obtain the current state to be able to roll-back after backtracking.
-
-
-
Method Detail
-
initializeWith
void initializeWith(org.antlr.runtime.BaseRecognizer recognizer)
Initializes this helper with the given recognizer.
-
enter
void enter(UnorderedGroup group)
Invoke when the group is entered in the parser. Access to any other querying method is answered optimistically.
-
leave
void leave(UnorderedGroup group)
Leave the group. May not be called before enter.
-
canSelect
boolean canSelect(UnorderedGroup group, int index)
Predicate to answer the question whether the given alternative may be used.
-
select
void select(UnorderedGroup group, int index)
Announce the usage of the given alternative.
-
returnFromSelection
void returnFromSelection(UnorderedGroup group)
Finish the previously selected alternative.
-
canLeave
boolean canLeave(UnorderedGroup group)
Query for remaining mandatory alternatives.
-
snapShot
IUnorderedGroupHelper.UnorderedGroupState snapShot(UnorderedGroup... groups)
Obtain the current state to be able to roll-back after backtracking.
-
-