compiler.intermediate
Class Label

java.lang.Object
  extended by compiler.intermediate.Label
All Implemented Interfaces:
OperandIF

public class Label
extends java.lang.Object
implements OperandIF

Clase que representa un operando etiqueta del código intermedio


Constructor Summary
Label(java.lang.String name)
          Constructor for Variable.
 
Method Summary
 boolean equals(java.lang.Object other)
          Compares this object with another one.
 java.lang.String getName()
          Returns the name.
 int hashCode()
          Returns a hash code for the object.
 void setName(java.lang.String name)
          Sets The name.
 java.lang.String toString()
          Return a string representing the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Label

public Label(java.lang.String name)
Constructor for Variable.

Parameters:
name - The name.
Method Detail

equals

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

Overrides:
equals in class java.lang.Object
Parameters:
other - the other object.
Returns:
true if two objects has the same properties.

getName

public java.lang.String getName()
Returns the name.

Returns:
Returns the name.

hashCode

public int hashCode()
Returns a hash code for the object.

Overrides:
hashCode in class java.lang.Object

setName

public void setName(java.lang.String name)
Sets The name.

Parameters:
name - The name to set.

toString

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

Overrides:
toString in class java.lang.Object
Returns:
a string representing the object.