CIDER Toolkit
Version 0.3.0

au.edu.monash.csse.tonyj.cider.interpreter
Class GrammarSymbolEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--GrammarSymbolEvent
All Implemented Interfaces:
java.io.Serializable

public class GrammarSymbolEvent
extends java.util.EventObject

This class contains the information detailing an event that has occurred which involves a GrammarSymbol.

See Also:
Serialized Form

Field Summary
static int SYMBOL_ADDED
          Constant to indicate that the type of event is the addition of a grammar symbol to the internal parse forest of an Interpreter.
static int SYMBOL_MODIFIED
          Constant to indicate that the type of event is the modification of a grammar symbol which is part of the internal parse forest of an Interpreter.
static int SYMBOL_REMOVED
          Constant to indicate that the type of event is the removal of a grammar symbol from the internal parse forest of an Interpreter.
 
Constructor Summary
GrammarSymbolEvent(java.lang.Object source, GrammarSymbol gs, int type)
          Creates a new GrammarSymbolEvent object.
 
Method Summary
 int getEventType()
          Returns the type of event.
 GrammarSymbol getGrammarSymbol()
          Returns the grammar symbol involved in the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SYMBOL_ADDED

public static final int SYMBOL_ADDED
Constant to indicate that the type of event is the addition of a grammar symbol to the internal parse forest of an Interpreter.

See Also:
Constant Field Values

SYMBOL_REMOVED

public static final int SYMBOL_REMOVED
Constant to indicate that the type of event is the removal of a grammar symbol from the internal parse forest of an Interpreter.

See Also:
Constant Field Values

SYMBOL_MODIFIED

public static final int SYMBOL_MODIFIED
Constant to indicate that the type of event is the modification of a grammar symbol which is part of the internal parse forest of an Interpreter.

See Also:
Constant Field Values
Constructor Detail

GrammarSymbolEvent

public GrammarSymbolEvent(java.lang.Object source,
                          GrammarSymbol gs,
                          int type)
Creates a new GrammarSymbolEvent object.

Parameters:
source - The object that created the event.
gs - The grammar symbol that the event involves.
type - The type of event.
Method Detail

getGrammarSymbol

public GrammarSymbol getGrammarSymbol()
Returns the grammar symbol involved in the event.


getEventType

public int getEventType()
Returns the type of event.


CIDER Toolkit
Version 0.3.0