compiler.semantic.type
Class TypeRecord

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

public class TypeRecord
extends TypeBase

Clase que representa un tipo registro Ha de implementarse por el estudiante


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

TypeRecord

public TypeRecord(ScopeIF scope)
Constructor for TypeBase.

Parameters:
scope - The scope.

TypeRecord

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

Parameters:
scope - The scope
name - The name.

TypeRecord

public TypeRecord(TypeRecord record)
Constructor for TypeBase.

Parameters:
record - The record to copy.
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.