JML

org.multijava.util.backend
Class QIinc

java.lang.Object
  extended byorg.multijava.util.backend.QNode
      extended byorg.multijava.util.backend.QIinc

class QIinc
extends QNode

This class represents a quadruple: a source and a destination


Field Summary
private  IincInstruction iinc
           
private  QTemporary temp
           
 
Constructor Summary
QIinc(Instruction insn, QTemporary temp)
           
 
Method Summary
 QOrigin duplicate()
          Duplicate this node
 void generate(CodeSequence seq)
          Generates instructions for this quadruple
 QTemporary getDef()
          Returns the defined temporary.
 InstructionHandle getInstruction()
          Returns the primitive instruction
 QJump getJump()
          Returns this node a a jump
 QTemporary[] getLivein()
          Returns the livein temporary.
 QTemporary[] getLiveout()
          Returns the liveout temporary.
 QOrigin[] getOrigins()
          returns the parameters of this instruction
 QQuadruple getStore()
          Returns this node a a jump
 QSwitch getSwitch()
          Returns this node a a jump
 int getType()
          The type of this instruction
 QTemporary[] getUses()
          Returns the used temporaries.
 boolean hasSideEffect()
          Returns this node a a jump
 boolean isJump()
          isJump
 boolean isLive(QTemporary temp)
          Is a temporary live at a certin point
 boolean isStore()
          isStore
 boolean isSwitch()
          isJump
 void setLivein(QTemporary[] livein)
          Sets the livein temporary.
 void setLiveout(QTemporary[] liveout)
          Sets the liveout temporary.
 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

iinc

private IincInstruction iinc

temp

private QTemporary temp
Constructor Detail

QIinc

public QIinc(Instruction insn,
             QTemporary temp)
Method Detail

toString

public String toString()
Human readable form

Overrides:
toString in class Object

getType

public int getType()
The type of this instruction


duplicate

public QOrigin duplicate()
Duplicate this node


getDef

public QTemporary getDef()
Returns the defined temporary.


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

isJump

public boolean isJump()
isJump


getJump

public QJump getJump()
Returns this node a a jump


isSwitch

public boolean isSwitch()
isJump


getSwitch

public QSwitch getSwitch()
Returns this node a a jump


isStore

public boolean isStore()
isStore


getStore

public QQuadruple getStore()
Returns this node a a jump


hasSideEffect

public boolean hasSideEffect()
Returns this node a a jump


getInstruction

public InstructionHandle getInstruction()
Returns the primitive instruction


getLivein

public QTemporary[] getLivein()
Returns the livein temporary.


setLivein

public void setLivein(QTemporary[] livein)
Sets the livein temporary.


getLiveout

public QTemporary[] getLiveout()
Returns the liveout temporary.


setLiveout

public void setLiveout(QTemporary[] liveout)
Sets the liveout temporary.


isLive

public boolean isLive(QTemporary temp)
Is a temporary live at a certin point


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.