compiler.semantic.symbol
Class SymbolParameter

java.lang.Object
  extended by es.uned.compiler.semantic.symbol.SymbolBase
      extended by compiler.semantic.symbol.SymbolParameter
All Implemented Interfaces:
SymbolIF

public class SymbolParameter
extends SymbolBase

Clase que representa una variable en la tabla de símbolos Ha de ser implementada por el estudiante


Constructor Summary
SymbolParameter(ScopeIF scope, java.lang.String name, TypeIF type)
          Constructor for SymbolBase.
 
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.symbol.SymbolBase
getName, getScope, getType, setName, setScope, setType
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SymbolParameter

public SymbolParameter(ScopeIF scope,
                       java.lang.String name,
                       TypeIF type)
Constructor for SymbolBase.

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

equals

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

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

toString

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

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