compiler.semantic.type
Class TypeProcedure

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

public class TypeProcedure
extends TypeBase

Clase que representa un tipo procedimiento. Ha de ser implementada por el estudiante


Constructor Summary
TypeProcedure(ScopeIF scope)
          Constructor for TypeBase.
TypeProcedure(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

TypeProcedure

public TypeProcedure(ScopeIF scope)
Constructor for TypeBase.

Parameters:
scope - The scope.

TypeProcedure

public TypeProcedure(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 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.