|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.uned.compiler.semantic.symbol.SymbolBase
public abstract class SymbolBase
Clase de la que deben heredar todos los objetos que almacene la tabla de símbolos
Constructor Summary | |
---|---|
SymbolBase(ScopeIF scope,
java.lang.String name,
TypeIF type)
Constructor for SymbolBase. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Compares this object with another one. |
java.lang.String |
getName()
Returns the name. |
ScopeIF |
getScope()
Returns the scope. |
TypeIF |
getType()
Returns the type. |
int |
hashCode()
Returns a hash code for the object. |
void |
setName(java.lang.String name)
Sets The name. |
void |
setScope(ScopeIF scope)
Sets The scope. |
void |
setType(TypeIF type)
Sets The type. |
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 SymbolBase(ScopeIF scope, java.lang.String name, TypeIF type)
scope
- The symbol scope.name
- The symbol name.type
- The symbol type.Method Detail |
---|
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other object.
public java.lang.String getName()
getName
in interface SymbolIF
public ScopeIF getScope()
getScope
in interface SymbolIF
public TypeIF getType()
getType
in interface SymbolIF
public int hashCode()
hashCode
in class java.lang.Object
public void setName(java.lang.String name)
setName
in interface SymbolIF
name
- The name to set.public void setScope(ScopeIF scope)
setScope
in interface SymbolIF
scope
- The scope to set.public void setType(TypeIF type)
setType
in interface SymbolIF
type
- The type 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 |