pobs.control
Class PFirstAlternative
java.lang.Object
pobs.control.PFirstAlternative
- All Implemented Interfaces:
- PControl
- public class PFirstAlternative
- extends java.lang.Object
- implements PControl
Sets the alternatives directive to first mode, this will return the first
alternative in encountered in parsers like POr
and PTokens
.
- Author:
- Martijn W. van der Lee, Franz-Josef Elmer
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PFirstAlternative
public PFirstAlternative()
modifyState
public java.lang.Object modifyState(PDirective directive)
- Description copied from interface:
PControl
- Modifies a sub state of the specified directive.
- Specified by:
modifyState
in interface PControl
- Parameters:
directive
- Directive to be modified.
- Returns:
- sub state before modification which allows reestablishing the
previous state.
reestablishPreviousState
public void reestablishPreviousState(PDirective directive,
java.lang.Object previousState)
- Description copied from interface:
PControl
- Reestablishes the previous state before modification.
- Specified by:
reestablishPreviousState
in interface PControl
- Parameters:
directive
- Directive which has been modified.previousState
- Previous state as returned by
PControl.modifyState(PDirective)
.