int constant onto the operand stack. Note that within the JVM,
boolean, byte, short and char values are represented by integers and can therefore
be loaded by using this class.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | IntegerConstant.ConstantPool
A stack manipulation that loads a JVM-integer value from a constant pool value onto the operand stack. |
| protected static class | IntegerConstant.SingleBytePush
A stack manipulation that loads a JVM-integer value by a |
| protected static class | IntegerConstant.TwoBytePush
A stack manipulation that loads a JVM-integer value by a |
| Modifier and Type | Field and Description |
|---|---|
| public static final IntegerConstant | FIVE
A JVM-type |
| public static final IntegerConstant | FOUR
A JVM-type |
| public static final IntegerConstant | MINUS_ONE
A JVM-type |
| public static final IntegerConstant | ONE
A JVM-type |
| private final int | opcode
The shortcut opcode for loading a common |
| private static final StackManipulation. | SIZE
The size impact of loading an |
| public static final IntegerConstant | THREE
A JVM-type |
| public static final IntegerConstant | TWO
A JVM-type |
| public static final IntegerConstant | ZERO
A JVM-type |
| Access | Constructor and Description |
|---|---|
| private | IntegerConstant(int
The shortcut opcode for loading a common opcode)int-compatible JVM value onto the operand stack.Creates a new JVM-integer constant loading stack manipulation for a given shortcut opcode. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | apply(MethodVisitor
The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextImplements net. |
| public static StackManipulation | Returns: The stack manipulation for loading thisboolean.The value)boolean to load onto the stack.Creates a stack manipulation for loading a boolean value onto the stack. |
| public static StackManipulation | Returns: A stack manipulation for loading the given value.The value)int (or byte, short, char) value to load onto the stack.Creates a stack manipulation for loading an |
| public boolean | isValid()
Implements net. |
| public static IntegerConstant | |
| public static IntegerConstant[] |
| FIVE | back to summary |
|---|---|
| public static final IntegerConstant FIVE A JVM-type | |
| FOUR | back to summary |
|---|---|
| public static final IntegerConstant FOUR A JVM-type | |
| MINUS_ONE | back to summary |
|---|---|
| public static final IntegerConstant MINUS_ONE A JVM-type | |
| ONE | back to summary |
|---|---|
| public static final IntegerConstant ONE A JVM-type | |
| opcode | back to summary |
|---|---|
| private final int opcode The shortcut opcode for loading a common | |
| SIZE | back to summary |
|---|---|
| private static final StackManipulation. The size impact of loading an | |
| THREE | back to summary |
|---|---|
| public static final IntegerConstant THREE A JVM-type | |
| TWO | back to summary |
|---|---|
| public static final IntegerConstant TWO A JVM-type | |
| ZERO | back to summary |
|---|---|
| public static final IntegerConstant ZERO A JVM-type | |
| IntegerConstant | back to summary |
|---|---|
| private IntegerConstant(int opcode) Creates a new JVM-integer constant loading stack manipulation for a given shortcut opcode.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |
| forValue | back to summary |
|---|---|
| public static StackManipulation forValue(boolean value) Creates a stack manipulation for loading a boolean value onto the stack.
| |
| forValue | back to summary |
|---|---|
| public static StackManipulation forValue(int value) Creates a stack manipulation for loading an This is achieved either by invoking a constant opcode, if any, or by creating a binary push operation.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements net. Doc from net. Determines if this stack manipulation is valid.
| |
| valueOf | back to summary |
|---|---|
| public static IntegerConstant valueOf(String name) | |
| values | back to summary |
|---|---|
| public static IntegerConstant[] values() | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | value
The JVM-integer value to load onto the operand stack. |
| Access | Constructor and Description |
|---|---|
| protected | ConstantPool(int
The JVM-integer value to load onto the operand stack. value)Creates a new constant pool loading operation for a given JVM-integer. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | apply(MethodVisitor
The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextImplements net. |
| value | back to summary |
|---|---|
| private final int value The JVM-integer value to load onto the operand stack. | |
| ConstantPool | back to summary |
|---|---|
| protected ConstantPool(int value) Creates a new constant pool loading operation for a given JVM-integer.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |
BIPUSH operation which is
legal for single byte integer values.
| Modifier and Type | Field and Description |
|---|---|
| private final byte | value
The single byte value to be loaded onto the operand stack. |
| Access | Constructor and Description |
|---|---|
| protected | SingleBytePush(byte
The single byte value to be loaded onto the operand stack. value)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | apply(MethodVisitor
The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextImplements net. |
| value | back to summary |
|---|---|
| private final byte value The single byte value to be loaded onto the operand stack. | |
| SingleBytePush | back to summary |
|---|---|
| protected SingleBytePush(byte value) Creates a new
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |
SIPUSH operation which is
legal for up to two byte integer values.
| Modifier and Type | Field and Description |
|---|---|
| private final short | value
The two byte value to be loaded onto the operand stack. |
| Access | Constructor and Description |
|---|---|
| protected | TwoBytePush(short
The two byte value to be loaded onto the operand stack. value)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | apply(MethodVisitor
The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextImplements net. |
| value | back to summary |
|---|---|
| private final short value The two byte value to be loaded onto the operand stack. | |
| TwoBytePush | back to summary |
|---|---|
| protected TwoBytePush(short value) Creates a new
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |