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 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
restore()
Restore the state.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... 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:IUnorderedGroupHelper
Initializes this helper with the given recognizer.- Specified by:
initializeWith
in interfaceIUnorderedGroupHelper
-
enter
public void enter(UnorderedGroup group)
Description copied from interface:IUnorderedGroupHelper
Invoke when the group is entered in the parser. Access to any other querying method is answered optimistically.- Specified by:
enter
in interfaceIUnorderedGroupHelper
-
leave
public void leave(UnorderedGroup group)
Description copied from interface:IUnorderedGroupHelper
Leave the group. May not be called before enter.- Specified by:
leave
in interfaceIUnorderedGroupHelper
-
canSelect
public boolean canSelect(UnorderedGroup group, int index)
Description copied from interface:IUnorderedGroupHelper
Predicate to answer the question whether the given alternative may be used.- Specified by:
canSelect
in interfaceIUnorderedGroupHelper
-
select
public void select(UnorderedGroup group, int index)
Description copied from interface:IUnorderedGroupHelper
Announce the usage of the given alternative.- Specified by:
select
in interfaceIUnorderedGroupHelper
-
returnFromSelection
public void returnFromSelection(UnorderedGroup group)
Description copied from interface:IUnorderedGroupHelper
Finish the previously selected alternative.- Specified by:
returnFromSelection
in interfaceIUnorderedGroupHelper
-
canLeave
public boolean canLeave(UnorderedGroup group)
Description copied from interface:IUnorderedGroupHelper
Query for remaining mandatory alternatives.- Specified by:
canLeave
in interfaceIUnorderedGroupHelper
-
restore
public void restore()
Description copied from interface:IUnorderedGroupHelper.UnorderedGroupState
Restore the state.- Specified by:
restore
in interfaceIUnorderedGroupHelper.UnorderedGroupState
-
snapShot
public IUnorderedGroupHelper.UnorderedGroupState snapShot(UnorderedGroup... group)
Description copied from interface:IUnorderedGroupHelper
Obtain the current state to be able to roll-back after backtracking.- Specified by:
snapShot
in interfaceIUnorderedGroupHelper
-
-