All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.fub.bytecode.generic.PUSH

java.lang.Object
   |
   +----de.fub.bytecode.generic.PUSH

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

Version:
$Id: PUSH.java,v 1.6 1999/05/04 13:14:45 dahm Exp $
Author:
M. Dahm

Constructor Index

 o PUSH(ConstantPoolGen, boolean)
 o PUSH(ConstantPoolGen, Boolean)
 o PUSH(ConstantPoolGen, Character)
 o PUSH(ConstantPoolGen, double)
 o PUSH(ConstantPoolGen, float)
 o PUSH(ConstantPoolGen, int)
This constructor also applies for values of type short, char, byte
 o PUSH(ConstantPoolGen, long)
 o PUSH(ConstantPoolGen, Number)
 o PUSH(ConstantPoolGen, String)

Method Index

 o getInstruction()
 o getInstructionList()
 o toString()

Constructors

 o 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
 o PUSH
 public PUSH(ConstantPoolGen cp,
             boolean value)
Parameters:
cp - Constant pool
value - to be pushed
 o PUSH
 public PUSH(ConstantPoolGen cp,
             float value)
Parameters:
cp - Constant pool
value - to be pushed
 o PUSH
 public PUSH(ConstantPoolGen cp,
             long value)
Parameters:
cp - Constant pool
value - to be pushed
 o PUSH
 public PUSH(ConstantPoolGen cp,
             double value)
Parameters:
cp - Constant pool
value - to be pushed
 o PUSH
 public PUSH(ConstantPoolGen cp,
             String value)
Parameters:
cp - Constant pool
value - to be pushed
 o PUSH
 public PUSH(ConstantPoolGen cp,
             Number value)
Parameters:
cp - Constant pool
value - to be pushed
 o PUSH
 public PUSH(ConstantPoolGen cp,
             Character value)
Parameters:
cp - Constant pool
value - to be pushed
 o PUSH
 public PUSH(ConstantPoolGen cp,
             Boolean value)
Parameters:
cp - Constant pool
value - to be pushed

Methods

 o getInstructionList
 public final InstructionList getInstructionList()
 o getInstruction
 public final Instruction getInstruction()
 o toString
 public String toString()
Returns:
mnemonic for instruction
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index