|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.uned.compiler.semantic.symbol.Scope
public class Scope
Clase que implementa un ámbito. Al crearse un objeto de tipo Scope se crea también una tabla de símbolos asociada (SymbolTable) y una tabla de temporales (TemporalTable)
Constructor Summary | |
---|---|
Scope(java.lang.String name)
Constructor for Scope. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Compares this object with another one. |
int |
getId()
Returns the id. |
int |
getLevel()
Returns the scope level. |
java.lang.String |
getName()
Returns the scopeName. |
SymbolTableIF |
getSymbolTable()
Returns the symbolTable. |
TemporalTableIF |
getTemporalTable()
Returns the temporalTable. |
TypeTableIF |
getTypeTable()
Returns the typeTable. |
int |
hashCode()
Returns a hash code for the object. |
void |
setId(int id)
Sets The id. |
void |
setLevel(int scope)
Sets The scope level. |
void |
setName(java.lang.String scopeName)
Sets The scopeName. |
void |
setSymbolTable(SymbolTableIF symbolTable)
Sets The symbolTable. |
void |
setTemporalTable(TemporalTableIF temporalTable)
Sets The temporalTable. |
void |
setTypeTable(TypeTableIF typeTable)
Sets The typeTable. |
java.lang.String |
toString()
Return a string representing the object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Scope(java.lang.String name)
the
- name of the scope.Method Detail |
---|
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other object.
public int getId()
getId
in interface ScopeIF
public int getLevel()
getLevel
in interface ScopeIF
public java.lang.String getName()
getName
in interface ScopeIF
public SymbolTableIF getSymbolTable()
getSymbolTable
in interface ScopeIF
public TemporalTableIF getTemporalTable()
getTemporalTable
in interface ScopeIF
public TypeTableIF getTypeTable()
public int hashCode()
hashCode
in class java.lang.Object
public void setId(int id)
setId
in interface ScopeIF
id
- The id to set.public void setLevel(int scope)
setLevel
in interface ScopeIF
scope
- The scope level to set.public void setName(java.lang.String scopeName)
setName
in interface ScopeIF
scopeName
- The scopeName to set.public void setSymbolTable(SymbolTableIF symbolTable)
setSymbolTable
in interface ScopeIF
symbolTable
- The symbolTable to set.public void setTemporalTable(TemporalTableIF temporalTable)
setTemporalTable
in interface ScopeIF
temporalTable
- The temporalTable to set.public void setTypeTable(TypeTableIF typeTable)
typeTable
- The typeTable to set.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |