compiler.semantic.type
Class TypeArray

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

public class TypeArray
extends TypeBase

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


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

TypeArray

public TypeArray(ScopeIF scope)
Constructor for TypeArray

Parameters:
scope -

TypeArray

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

Parameters:
scope -
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.