| java.lang.Object net.sourceforge.chaperon.process.extended.State
State | public class State (Code) | | This class represents a set of items, which means positions of definition, in definition. These
states were used to decribes states.
author: Stephan Michels version: CVS $Id: State.java,v 1.1 2004/01/04 16:49:12 benedikta Exp $ |
Method Summary | |
public void | addGotoAction(String symbol, State state) | public void | addGotoAction(Pattern pattern, State state) | public void | addGotoAction(GotoAction action) | public boolean | addItem(Item newItem) | public void | addLookaheadReduceAction(char minimum, char maximum, String symbol, int length) | public void | addLookaheadReduceAction(char minimum, char maximum, Pattern pattern, int length) | public boolean | addLookaheadReduceAction(LookaheadReduceAction action) | public void | addReduceAction(String symbol, int length) | public void | addReduceAction(Pattern pattern, int length) | public void | addReduceAction(ReduceAction action) | public boolean | addShiftAction(char minimum, char maximum, State state) Add a transition to this state. | public boolean | addShiftAction(ShiftAction action) | public boolean | equals(Object o) Compares two states.
Parameters: o - Other state. | public GotoAction | getGotoAction(String symbol) | public GotoAction | getGotoAction(Pattern pattern) | public GotoAction | getGotoAction(ReduceAction action) | public GotoAction[] | getGotoActions() | public LookaheadReduceAction[] | getLookaheadReduceActions() | public PatternSet | getNextPattern() | public PatternSet | getPreviousPattern() | public ReduceAction[] | getReduceActions() | public ShiftAction | getShiftAction(char character) | public ShiftAction[] | getShiftActions() | public boolean | isEmpty() | public String | toString() Return a string representation of this state. |
addLookaheadReduceAction | public void addLookaheadReduceAction(char minimum, char maximum, String symbol, int length)(Code) | | |
addLookaheadReduceAction | public void addLookaheadReduceAction(char minimum, char maximum, Pattern pattern, int length)(Code) | | |
addReduceAction | public void addReduceAction(String symbol, int length)(Code) | | |
addReduceAction | public void addReduceAction(Pattern pattern, int length)(Code) | | |
addShiftAction | public boolean addShiftAction(char minimum, char maximum, State state)(Code) | | Add a transition to this state.
Parameters: symbol - Symbol, which forces a transition into another state. Parameters: state - Destination state. |
equals | public boolean equals(Object o)(Code) | | Compares two states.
Parameters: o - Other state. True, if the states are equal. |
isEmpty | public boolean isEmpty()(Code) | | |
toString | public String toString()(Code) | | Return a string representation of this state.
String representation of this state. |
|
|