|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.uned.compiler.semantic.type.TypeBase
public abstract class TypeBase
Clase de la que heredaran aquellas que representen los posibles tipos. Hereda de la clase TypeIF
Constructor Summary | |
---|---|
TypeBase(ScopeIF scope)
s Constructor for TypeBase. |
|
TypeBase(ScopeIF scope,
java.lang.String name)
Constructor for TypeBase. |
|
TypeBase(TypeIF type)
|
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. |
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. |
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 TypeBase(ScopeIF scope)
scope
- The scope.public TypeBase(ScopeIF scope, java.lang.String name)
scope
- The scopename
- The name.public TypeBase(TypeIF 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 TypeIF
public ScopeIF getScope()
getScope
in interface TypeIF
public int hashCode()
hashCode
in class java.lang.Object
public void setName(java.lang.String name)
setName
in interface TypeIF
name
- The name to set.public void setScope(ScopeIF scope)
setScope
in interface TypeIF
scope
- The scope 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 |