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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
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
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