compiler.semantic.type
Class TypeSimple

java.lang.Object
  extended by es.uned.compiler.semantic.type.TypeBase
      extended by compiler.semantic.type.TypeSimple
All Implemented Interfaces:
TypeIF

public class TypeSimple
extends TypeBase

Clase que representa un tipo simple (Boolean, Integer, ..) Ha de ser implementada por el estudiante


Constructor Summary
TypeSimple(ScopeIF scope)
          Constructor for TypeSimple.
 
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.type.TypeBase
getName, getScope, setName, setScope
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeSimple

public TypeSimple(ScopeIF scope)
Constructor for TypeSimple.

Parameters:
scope - The scope.
Method Detail

equals

public boolean equals(java.lang.Object other)
Compares this object with another one.

Overrides:
equals in class TypeBase
Parameters:
other - the other object.
Returns:
true if two objects has the same properties.

hashCode

public int hashCode()
Returns a hash code for the object.

Overrides:
hashCode in class TypeBase

toString

public java.lang.String toString()
Return a string representing the object.

Overrides:
toString in class TypeBase
Returns:
a string representing the object.