at.dms.backend
Interface QOrigin

All Known Implementing Classes:
QOperand, QOperator, QQuadruple

interface QOrigin

This class represents the origin of a quadruple.


Method Summary
 QOrigin duplicate()
          Duplicate this node.
 void generate(CodeSequence seq)
          Generates instructions for this quadruple.
 InstructionHandle getInstruction()
          Returns the primitive instruction.
 QOrigin[] getOrigins()
          Returns the parameters of this instruction.
 int getType()
          Returns the type of this instruction.
 QTemporary[] getUses()
          Returns the used temporaries.
 void setOrigin(QOrigin origin, int i)
          Sets the parameters of this instruction.
 

Method Detail

getType

public int getType()
Returns the type of this instruction.

getInstruction

public InstructionHandle getInstruction()
Returns the primitive instruction.

duplicate

public QOrigin duplicate()
Duplicate this node.

getUses

public QTemporary[] getUses()
Returns the used temporaries.

getOrigins

public QOrigin[] getOrigins()
Returns the parameters of this instruction.

setOrigin

public void setOrigin(QOrigin origin,
                      int i)
Sets the parameters of this instruction.

generate

public void generate(CodeSequence seq)
Generates instructions for this quadruple.
Parameters:
seq - The code sequence of instruction.