Package org.eclipse.xtext.parser.antlr
Class IUnorderedGroupHelper.Null
- java.lang.Object
-
- org.eclipse.xtext.parser.antlr.IUnorderedGroupHelper.Null
-
- All Implemented Interfaces:
IUnorderedGroupHelper,IUnorderedGroupHelper.UnorderedGroupState
- Enclosing interface:
- IUnorderedGroupHelper
public static class IUnorderedGroupHelper.Null extends java.lang.Object implements IUnorderedGroupHelper, IUnorderedGroupHelper.UnorderedGroupState
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.parser.antlr.IUnorderedGroupHelper
IUnorderedGroupHelper.Null, IUnorderedGroupHelper.UnorderedGroupState
-
-
Constructor Summary
Constructors Constructor Description Null()
-
Method Summary
All Methods Instance Methods Concrete 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.voidrestore()Restore the state.voidreturnFromSelection(UnorderedGroup group)Finish the previously selected alternative.voidselect(UnorderedGroup group, int index)Announce the usage of the given alternative.IUnorderedGroupHelper.UnorderedGroupStatesnapShot(UnorderedGroup... group)Obtain the current state to be able to roll-back after backtracking.
-
-
-
Method Detail
-
initializeWith
public void initializeWith(org.antlr.runtime.BaseRecognizer recognizer)
Description copied from interface:IUnorderedGroupHelperInitializes this helper with the given recognizer.- Specified by:
initializeWithin interfaceIUnorderedGroupHelper
-
enter
public void enter(UnorderedGroup group)
Description copied from interface:IUnorderedGroupHelperInvoke when the group is entered in the parser. Access to any other querying method is answered optimistically.- Specified by:
enterin interfaceIUnorderedGroupHelper
-
leave
public void leave(UnorderedGroup group)
Description copied from interface:IUnorderedGroupHelperLeave the group. May not be called before enter.- Specified by:
leavein interfaceIUnorderedGroupHelper
-
canSelect
public boolean canSelect(UnorderedGroup group, int index)
Description copied from interface:IUnorderedGroupHelperPredicate to answer the question whether the given alternative may be used.- Specified by:
canSelectin interfaceIUnorderedGroupHelper
-
select
public void select(UnorderedGroup group, int index)
Description copied from interface:IUnorderedGroupHelperAnnounce the usage of the given alternative.- Specified by:
selectin interfaceIUnorderedGroupHelper
-
returnFromSelection
public void returnFromSelection(UnorderedGroup group)
Description copied from interface:IUnorderedGroupHelperFinish the previously selected alternative.- Specified by:
returnFromSelectionin interfaceIUnorderedGroupHelper
-
canLeave
public boolean canLeave(UnorderedGroup group)
Description copied from interface:IUnorderedGroupHelperQuery for remaining mandatory alternatives.- Specified by:
canLeavein interfaceIUnorderedGroupHelper
-
restore
public void restore()
Description copied from interface:IUnorderedGroupHelper.UnorderedGroupStateRestore the state.- Specified by:
restorein interfaceIUnorderedGroupHelper.UnorderedGroupState
-
snapShot
public IUnorderedGroupHelper.UnorderedGroupState snapShot(UnorderedGroup... group)
Description copied from interface:IUnorderedGroupHelperObtain the current state to be able to roll-back after backtracking.- Specified by:
snapShotin interfaceIUnorderedGroupHelper
-
-