|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jeops.expressions.SymbolicTable
This class models a symbolic table to be used by the rules.
Constructor Summary | |
SymbolicTable()
Class constructor. |
Method Summary | |
java.lang.Object |
clone()
Clones this table. |
void |
dump()
Prints this table. |
boolean |
equals(java.lang.Object obj)
Compares this table with the given object. |
java.lang.String |
getClassName(java.lang.String ident)
Returns the class of a variable, given its identifier. |
java.lang.Object |
getReference(java.lang.String ident)
Returns the value of a variable, given its identifier. |
java.util.Vector |
getTriples()
Returns the triples (class name, ident, value) of this symbolic table. |
int |
hashCode()
Returns a hash code for this table. |
void |
insert(java.lang.String className,
java.lang.String ident)
Inserts a new pair (class name, identifier) in this table. |
void |
remove(java.lang.String ident)
Removes a given identifier from this table. |
void |
setReference(java.lang.String ident,
java.lang.Object value)
Defines the value of a variable, given its identifier and the new value. |
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SymbolicTable()
Method Detail |
public java.lang.Object clone()
public void dump()
public boolean equals(java.lang.Object obj)
obj
- the object to be compared to this table.true
if the given object is a table identical
to this one; false
otherwise.public java.lang.String getClassName(java.lang.String ident)
null
will
be returned.ident
- the identifier of the variablepublic java.lang.Object getReference(java.lang.String ident)
ident
- the identifier of the needed variable.public java.util.Vector getTriples()
public int hashCode()
public void insert(java.lang.String className, java.lang.String ident)
className
- the class name of the variable.ident
- the identifier of the variable.public void remove(java.lang.String ident)
ident
- the identifier of the entry being removed.public void setReference(java.lang.String ident, java.lang.Object value)
ident
- the identifier of the variablevalue
- the value of the variable.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |