|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.parameters.SCHSymbolTable
public class SCHSymbolTable
Shameless duplication of DBCore's SymbolTable that only swaps out SCHVariableType for VariableType and otherwise customizes to Scheherazade's types.
Constructor Summary | |
---|---|
SCHSymbolTable()
Constructor with no outer scope |
|
SCHSymbolTable(SCHSymbolTable outerScope)
Constructor with pointer to outer scope |
Method Summary | |
---|---|
java.lang.Object |
clone()
Make a deep copy of the symbol table. |
void |
declare(VariableID ID,
SCHVariableType variableType)
Declare a variable |
java.lang.Object |
define(VariableID ID,
java.lang.Object value)
Define a variable. |
java.lang.Object |
get(VariableID ID)
Retrieve a variable |
SCHVariableType |
getType(VariableID ID)
Returns the SCHVariableType of a variable. |
boolean |
isDeclared(VariableID ID)
Returns whether a variable has been declared. |
boolean |
isDefined(VariableID ID)
Returns whether a variable has been defined. |
static SCHSymbolTable |
mergeTables(SCHSymbolTable first,
SCHSymbolTable second)
Merge two symbol tables. |
int |
numDeclarations()
|
java.lang.StringBuffer |
render()
Render the symbol table (without any supertables) as a StringBuffer table with newline. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SCHSymbolTable()
public SCHSymbolTable(SCHSymbolTable outerScope)
Method Detail |
---|
public void declare(VariableID ID, SCHVariableType variableType) throws Scheherexception
Scheherexception
public boolean isDeclared(VariableID ID)
public boolean isDefined(VariableID ID)
public SCHVariableType getType(VariableID ID) throws Scheherexception
Scheherexception
public java.lang.Object define(VariableID ID, java.lang.Object value) throws Scheherexception
Scheherexception
public java.lang.Object get(VariableID ID) throws Scheherexception
Scheherexception
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.StringBuffer render() throws Scheherexception
Scheherexception
public static SCHSymbolTable mergeTables(SCHSymbolTable first, SCHSymbolTable second) throws Scheherexception
Scheherexception
public int numDeclarations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |