All Packages Class Hierarchy This Package Previous Next Index
Class javaParse.Grammar
java.lang.Object
|
+----javaParse.Grammar
- public abstract class Grammar
- extends Object
- implements Watcher
class Grammar -- base class for all Grammar to inherit from.
Grammar()
boolean isValid()
void addWindowItemToSequencer( WindowItem wi )
void startSequencer()
void stepSequencer()
void removeElementsInSequencer()
void showGrammarWindow()
void returnToGrammar()
void inform()
-
Grammar()
-
-
addWindowItemToSequencer(WindowItem)
-
-
getGrammarWindow()
-
-
inform(Object)
- From the Watcher interface, inform will get information about
how to proceed from window to window
-
initialize(GrammarInfo)
- initialize is called by a GrammarChecker once it has a
valid GrammarInfo.
-
removeElementsInSequencer()
- removes all the elements in the sequencer.
-
returnToGrammar()
-
-
returnToTable()
- used for LR1, when someone on the StringTesterWindow
would like to return to the Table to change ordering of
rules (with conflicts)
-
showGrammarWindow(GrammarWindow)
- This function shows the WindowItem sent in as the very
first window that the user sees.
-
startSequencer()
-
-
stepSequencer()
-
Grammar
public Grammar()
initialize
public abstract void initialize(GrammarInfo info)
- initialize is called by a GrammarChecker once it has a
valid GrammarInfo. initialize should add items to the
sequencer using the addWindowItemToSequencer function
addWindowItemToSequencer
public void addWindowItemToSequencer(WindowItem wi)
removeElementsInSequencer
public void removeElementsInSequencer()
- removes all the elements in the sequencer. since the grammar
window is not in the sequencer, it will not be removed
returnToGrammar
public void returnToGrammar()
returnToTable
public void returnToTable()
- used for LR1, when someone on the StringTesterWindow
would like to return to the Table to change ordering of
rules (with conflicts)
startSequencer
public void startSequencer()
stepSequencer
public void stepSequencer()
inform
public void inform(Object arg)
- From the Watcher interface, inform will get information about
how to proceed from window to window
showGrammarWindow
public void showGrammarWindow(GrammarWindow gramWinItem)
- This function shows the WindowItem sent in as the very
first window that the user sees. In this window they will
enter their grammar. After their grammar is accepted, then
a call to runSequence should do the trick
getGrammarWindow
public GrammarWindow getGrammarWindow()
All Packages Class Hierarchy This Package Previous Next Index