| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.symboltable.FSMSymbolTable
public final class FSMSymbolTable
This class is used as a symbol table for a FSM.
| Constructor Summary | |
|---|---|
| FSMSymbolTable(SymbolTable symbolTable,
               FSM fsm)Default constructor. | |
| Method Summary | |
|---|---|
|  void | dispose()Removes references to symbolTable, fsm, returnType, and clears parameterTypes, localTable, localDefTable, localIndexTable, locationDefTable, locationDescTable, liveSetTable, expTable, catchTable, errors, warnings. | 
|  void | finishTypeChecking()Sets the symbol table for finishing type checking FSMs. | 
|  void | finishTypeCheckingHeaders()Sets the symbol table for finishing type checking FSM headers. | 
|  IntObjectTable<ArrayList<Object>> | getCatchTable()Gets the location desc (int) to the throwables that it can catch (ArrayList<RecordType::String::NextState>) mapping. | 
|  List<FileMessage> | getErrors()Gets the error messages. | 
|  FSM | getFSM()Gets the FSM's AST. | 
|  String | getInitialLocation()Gets the initial location for this FSM. | 
|  IntObjectTable<BitSet> | getLiveSetTable()Gets the location desc (int) to its live set (int[]) mapping. | 
|  Map<String,AbstractLocal> | getLocalDefTable()Gets the local identifier (String) to its definition (Local or Param) mapping. | 
|  ObjectIntTable<String> | getLocalIndexTable()Gets the local identifier (String) to its index (int) mapping. | 
|  Map<String,Type> | getLocalTable()Gets the local identifier (String) to its type (Type) mapping. | 
|  BitSet | getLocalTransientFlags()Gets the set of flags indicating whether the local at each offset is transient (omitted from state vector). | 
|  ArrayList<Type> | getLocalTypes()Gets the FSM's local types | 
|  Map<String,Location> | getLocationDefTable()Gets the location identifier (String) to its definition (Location) mapping. | 
|  ObjectIntTable<String> | getLocationDescTable()Gets the location identifier (String) to its descriptor (int) mapping. | 
|  ArrayList<Type> | getParameterTypes()Gets the FSM's parameter types. | 
|  Type | getReturnType()Gets the FSM's return type. | 
|  SymbolTable | getSymbolTable()Gets the symbol table. | 
|  List<FileMessage> | getWarnings()Gets the warning messages. | 
|  void | initTypeChecking()Sets the symbol table for type checking FSMs. | 
|  void | initTypeCheckingHeaders()Sets the symbol table for type checking FSM headers. | 
|  void | setInitialLocation(String newInitialLocation)Sets the initial location for this FSM. | 
|  void | setParameterTypes(ArrayList<Type> newParameterTypes)Sets the FSM's parameter types. | 
|  void | setReturnType(Type newReturnType)Sets the FSM's return type. | 
|  String | toString()Returns the string representation of this object. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public FSMSymbolTable(SymbolTable symbolTable,
                      FSM fsm)
symbolTable - The symbol table of the BIR system. Must be non-null.fsm - The FSM's AST. Must be non-null.| Method Detail | 
|---|
public IntObjectTable<ArrayList<Object>> getCatchTable()
public List<FileMessage> getErrors()
public FSM getFSM()
public void setInitialLocation(String newInitialLocation)
newInitialLocation - The new initial location id for this FSM. Must be non-null.public String getInitialLocation()
public IntObjectTable<BitSet> getLiveSetTable()
public Map<String,AbstractLocal> getLocalDefTable()
public ObjectIntTable<String> getLocalIndexTable()
public Map<String,Type> getLocalTable()
public BitSet getLocalTransientFlags()
public ArrayList<Type> getLocalTypes()
public Map<String,Location> getLocationDefTable()
public ObjectIntTable<String> getLocationDescTable()
public void setParameterTypes(ArrayList<Type> newParameterTypes)
newParameterTypes - The parameter types of the FSM. Must be non-null. Each element
            must be instance of Typepublic ArrayList<Type> getParameterTypes()
public void setReturnType(Type newReturnType)
newReturnType - The return type of the FSM. Must be non-null.public Type getReturnType()
public SymbolTable getSymbolTable()
public List<FileMessage> getWarnings()
public void dispose()
dispose in interface Disposablepublic void finishTypeChecking()
public void finishTypeCheckingHeaders()
public void initTypeChecking()
public void initTypeCheckingHeaders()
public String toString()
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||