Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class DE.fub.inf.JVM.ClassGen.PUSH

java.lang.Object
  |
  +--DE.fub.inf.JVM.ClassGen.PUSH

public final class PUSH
extends java.lang.Object
implements CompoundInstruction, VariableLengthInstruction
Wrapper class for push operations, which are implemented either as BIPUSH, LDC or xCONST_n instructions.

Version:
$Id: PUSH.java,v 1.2 1998/09/15 08:42:26 dahm Exp $
Author:
M. Dahm

Constructor Summary
PUSH(ConstantPoolGen cp, int value)
          This constructor also applies for values of type short, char, byte
PUSH(ConstantPoolGen cp, boolean value)
           
PUSH(ConstantPoolGen cp, float value)
           
PUSH(ConstantPoolGen cp, long value)
           
PUSH(ConstantPoolGen cp, double value)
           
PUSH(ConstantPoolGen cp, java.lang.String value)
           
 
Method Summary
InstructionList getInstructionList()
           
Instruction getInstruction()
           
java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

PUSH

public PUSH(ConstantPoolGen cp,
            int value)
This constructor also applies for values of type short, char, byte
Parameters:
cp - Constant pool
value - to be pushed

PUSH

public PUSH(ConstantPoolGen cp,
            boolean value)
Parameters:
cp - Constant pool
value - to be pushed

PUSH

public PUSH(ConstantPoolGen cp,
            float value)
Parameters:
cp - Constant pool
value - to be pushed

PUSH

public PUSH(ConstantPoolGen cp,
            long value)
Parameters:
cp - Constant pool
value - to be pushed

PUSH

public PUSH(ConstantPoolGen cp,
            double value)
Parameters:
cp - Constant pool
value - to be pushed

PUSH

public PUSH(ConstantPoolGen cp,
            java.lang.String value)
Parameters:
cp - Constant pool
value - to be pushed
Method Detail

getInstructionList

public final InstructionList getInstructionList()
Description copied from interface:
 
Specified by:
getInstructionList in interface CompoundInstruction

getInstruction

public final Instruction getInstruction()

toString

public java.lang.String toString()
Returns:
mnemonic for instruction
Overrides:
toString in class java.lang.Object

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD