JML

org.multijava.util.backend
Class QLiteral

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

class QLiteral
extends QOperand

This class represents a literal


Field Summary
private  InstructionHandle insn
           
 
Constructor Summary
(package private) QLiteral(InstructionHandle insn)
           
 
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 size (in instruction) of the subtree
 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

insn

private InstructionHandle insn
Constructor Detail

QLiteral

QLiteral(InstructionHandle insn)
Method Detail

getType

public int getType()
The size (in instruction) of the subtree


toString

public String toString()
Human readable form

Overrides:
toString in class Object

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

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

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.