|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.uned.compiler.intermediate.Cuadruple
public class Cuadruple
Clase que representa un cuarteto del código intermedio
Constructor Summary | |
---|---|
Cuadruple(java.lang.String operation)
Constructor for CuadrupleIF. |
|
Cuadruple(java.lang.String operation,
OperandIF result)
Constructor for CuadrupleIF. |
|
Cuadruple(java.lang.String operation,
OperandIF result,
OperandIF firstOperand)
Constructor for CuadrupleIF. |
|
Cuadruple(java.lang.String operation,
OperandIF result,
OperandIF firstOperand,
OperandIF secondOperand)
Constructor for CuadrupleIF. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Compares this object with another one. |
OperandIF |
getFirstOperand()
Returns the firstOperand. |
java.lang.String |
getOperation()
Returns the operation. |
OperandIF |
getResult()
Returns the result. |
OperandIF |
getSecondOperand()
Returns the secondOperand. |
int |
hashCode()
Returns a hash code for the object. |
void |
setFirstOperand(OperandIF firstOperand)
Sets The firstOperand. |
void |
setOperation(java.lang.String operation)
Sets The operation. |
void |
setResult(OperandIF result)
Sets The result. |
void |
setSecondOperand(OperandIF secondOperand)
Sets The secondOperand. |
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 |
---|
public Cuadruple(java.lang.String operation)
operation
- The operation.public Cuadruple(java.lang.String operation, OperandIF result)
operation
- The operation.result
- The result.public Cuadruple(java.lang.String operation, OperandIF result, OperandIF firstOperand)
operation
- The operation.firstOperand
- The first operannd.result
- The result.public Cuadruple(java.lang.String operation, OperandIF result, OperandIF firstOperand, OperandIF secondOperand)
operation
- The operation.firstOperand
- The first operannd.secondOperand
- The second operand.result
- The result.Method Detail |
---|
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other object.
public OperandIF getFirstOperand()
getFirstOperand
in interface CuadrupleIF
public java.lang.String getOperation()
getOperation
in interface CuadrupleIF
public OperandIF getResult()
getResult
in interface CuadrupleIF
public OperandIF getSecondOperand()
getSecondOperand
in interface CuadrupleIF
public int hashCode()
hashCode
in class java.lang.Object
public void setFirstOperand(OperandIF firstOperand)
setFirstOperand
in interface CuadrupleIF
firstOperand
- The firstOperand to set.public void setOperation(java.lang.String operation)
setOperation
in interface CuadrupleIF
operation
- The operation to set.public void setResult(OperandIF result)
setResult
in interface CuadrupleIF
result
- The result to set.public void setSecondOperand(OperandIF secondOperand)
setSecondOperand
in interface CuadrupleIF
secondOperand
- The secondOperand to set.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |