at.dms.backend
Class QLiteral

java.lang.Object
  |
  +--at.dms.backend.QOperand
        |
        +--at.dms.backend.QLiteral
All Implemented Interfaces:
QOrigin

class QLiteral
extends QOperand

This class represents a literal.


Constructor Summary
(package private) QLiteral(InstructionHandle instruction)
           
 
Method Summary
 QOrigin duplicate()
          Duplicate this node.
 void generate(CodeSequence seq)
          Generates instructions for this quadruple.
 int getType()
          The size (in instruction) of the subtree.
 QTemporary[] getUses()
          Returns the used temporaries.
 java.lang.String toString()
          Human readable form.
 
Methods inherited from class at.dms.backend.QOperand
getInstruction, getOrigins, setOrigin
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QLiteral

QLiteral(InstructionHandle instruction)
Method Detail

getType

public int getType()
The size (in instruction) of the subtree.
Overrides:
getType in class QOperand

toString

public java.lang.String toString()
Human readable form.
Overrides:
toString in class java.lang.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.