JML

org.multijava.util.backend
Class QOperator

java.lang.Object
  extended byorg.multijava.util.backend.QOperator
All Implemented Interfaces:
QOrigin

class QOperator
extends Object
implements QOrigin

This class represents the origin of a quadruple


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

Field Detail

operator

private InstructionHandle operator

operands

private QOrigin[] operands
Constructor Detail

QOperator

public QOperator(InstructionHandle operator,
                 QOrigin[] operands)
Method Detail

toString

public String toString()
Human readable form

Overrides:
toString in class Object

getType

public 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

duplicate

public QOrigin duplicate()
Duplicate this node

Specified by:
duplicate in interface QOrigin

getUses

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

Specified by:
getUses 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

generate

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

Specified by:
generate in interface QOrigin
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.