JML

org.multijava.util.backend
Class QOperand

java.lang.Object
  extended byorg.multijava.util.backend.QOperand
All Implemented Interfaces:
QOrigin
Direct Known Subclasses:
QLiteral, QTemporary

abstract class QOperand
extends Object
implements QOrigin

This class represents the origin of a quadruple


Constructor Summary
(package private) QOperand()
           
 
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
abstract  int getType()
          The type of this instruction
 QTemporary[] getUses()
          Returns the used temporaries.
 void setOrigin(QOrigin origin, int i)
          Sets the parameters of this instruction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QOperand

QOperand()
Method Detail

getType

public abstract int getType()
The type of this instruction

Specified by:
getType in interface QOrigin

getInstruction

public InstructionHandle getInstruction()
Returns the primitive instruction

Specified by:
getInstruction in interface QOrigin

getOrigins

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

Specified by:
getOrigins in interface QOrigin

setOrigin

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

Specified by:
setOrigin in interface QOrigin

duplicate

public QOrigin duplicate()
Duplicate this node


getUses

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


generate

public void generate(CodeSequence seq)
Generates instructions for this quadruple

Parameters:
seq - The code sequence of instruction

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.