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()


Constructor Index

 o Grammar()

Method Index

 o addWindowItemToSequencer(WindowItem)
 o getGrammarWindow()
 o inform(Object)
From the Watcher interface, inform will get information about how to proceed from window to window
 o initialize(GrammarInfo)
initialize is called by a GrammarChecker once it has a valid GrammarInfo.
 o removeElementsInSequencer()
removes all the elements in the sequencer.
 o returnToGrammar()
 o returnToTable()
used for LR1, when someone on the StringTesterWindow would like to return to the Table to change ordering of rules (with conflicts)
 o showGrammarWindow(GrammarWindow)
This function shows the WindowItem sent in as the very first window that the user sees.
 o startSequencer()
 o stepSequencer()

Constructors

 o Grammar
 public Grammar()

Methods

 o 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

 o addWindowItemToSequencer
 public void addWindowItemToSequencer(WindowItem wi)
 o 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

 o returnToGrammar
 public void returnToGrammar()
 o 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)

 o startSequencer
 public void startSequencer()
 o stepSequencer
 public void stepSequencer()
 o inform
 public void inform(Object arg)
From the Watcher interface, inform will get information about how to proceed from window to window

 o 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

 o getGrammarWindow
 public GrammarWindow getGrammarWindow()

All Packages  Class Hierarchy  This Package  Previous  Next  Index