compiler.semantic.type
Class TypeFunction

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

public class TypeFunction
extends TypeProcedure

Clase que representa un tipo Función. Ha de ser implementada por el estudiante


Constructor Summary
TypeFunction(ScopeIF scope)
          Constructor for TypeBase.
TypeFunction(ScopeIF scope, java.lang.String name)
          Constructor for TypeBase.
 
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

TypeFunction

public TypeFunction(ScopeIF scope)
Constructor for TypeBase.

Parameters:
scope - The scope.

TypeFunction

public TypeFunction(ScopeIF scope,
                    java.lang.String name)
Constructor for TypeBase.

Parameters:
scope - The scope
name - The name.
Method Detail

equals

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

Overrides:
equals in class TypeProcedure
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 TypeProcedure

toString

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

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