|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.uned.compiler.semantic.symbol.SymbolBase
compiler.semantic.symbol.SymbolConstant
public class SymbolConstant
Representa una constante en la tabla de símbolos. Ha de ser implementada por el estudiante.
Constructor Summary | |
---|---|
SymbolConstant(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. |
int |
hashCode()
Returns a hash code for the object. |
java.lang.String |
toString()
Return a string representing the object. |
Methods inherited from class es.uned.compiler.semantic.symbol.SymbolBase |
---|
getName, getScope, getType, setName, setScope, setType |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SymbolConstant(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 SymbolBase
other
- the other object.
public int hashCode()
hashCode
in class SymbolBase
public java.lang.String toString()
toString
in class SymbolBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |