| Modifier and Type | Class and Description |
|---|---|
| protected static enum | Duplication.
A duplication that flips a value over the second value on the operand stack. |
| Modifier and Type | Field and Description |
|---|---|
| public static final Duplication | DOUBLE
A duplication of a double-sized stack value. |
| private final int | opcode
The opcode that represents the manipulation. |
| public static final Duplication | SINGLE
A duplication of a single-sized stack values. |
| protected final StackManipulation. | size
The size representing the impact of applying the duplication onto the operand stack. |
| public static final Duplication | ZERO
A duplication of no values. |
| Access | Constructor and Description |
|---|---|
| private | Duplication(StackSize
The size representing the impact of applying the duplication onto the operand stack. stackSize, int The opcode that represents the manipulation. opcode)Creates a new duplication. |
| 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 org. |
| public abstract StackManipulation | Returns: A stack manipulation that represents such a duplication flip.The type of the second element on the operand stack. typeDefinition)Creates a duplication that flips the stack's top value over the second stack element. |
| public boolean | isValid()
Implements org. |
| public static Duplication | Returns: A stack manipulation that duplicates the given type.The type to be duplicated. typeDefinition)Duplicates a value given its type. |
| public static Duplication | |
| public static Duplication[] |
| DOUBLE | back to summary |
|---|---|
| public static final Duplication DOUBLE A duplication of a double-sized stack value. | |
| opcode | back to summary |
|---|---|
| private final int opcode The opcode that represents the manipulation. | |
| SINGLE | back to summary |
|---|---|
| public static final Duplication SINGLE A duplication of a single-sized stack values. | |
| size | back to summary |
|---|---|
| protected final StackManipulation. The size representing the impact of applying the duplication onto the operand stack. | |
| ZERO | back to summary |
|---|---|
| public static final Duplication ZERO A duplication of no values. This corresponds a no-op instruction. | |
| Duplication | back to summary |
|---|---|
| private Duplication(StackSize stackSize, int opcode) Creates a new duplication.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements org. Doc from org. Applies the stack manipulation that is described by this instance.
| |
| flipOver | back to summary |
|---|---|
| public abstract StackManipulation flipOver(TypeDefinition typeDefinition) Creates a duplication that flips the stack's top value over the second stack element.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements org. Doc from org. Determines if this stack manipulation is valid.
| |
| of | back to summary |
|---|---|
| public static Duplication of(TypeDefinition typeDefinition) Duplicates a value given its type.
| |
| valueOf | back to summary |
|---|---|
| public static Duplication valueOf(String name) | |
| values | back to summary |
|---|---|
| public static Duplication[] values() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Duplication. | DOUBLE_DOUBLE
A flip instruction that flips a double-sized element over another double-size element. |
| public static final Duplication. | DOUBLE_SINGLE
A flip instruction that flips a single-sized element over a double-size element. |
| private final int | opcode
The opcode to apply. |
| public static final Duplication. | SINGLE_DOUBLE
A flip instruction that flips a double-sized element over a single-size element. |
| public static final Duplication. | SINGLE_SINGLE
A flip instruction that flips a single-sized element over another single-size element. |
| private final StackSize | stackSize
The size that is added to the operand stack. |
| Access | Constructor and Description |
|---|---|
| private |
| 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 org. |
| public boolean | isValid()
Implements org. |
| public static Duplication. | |
| public static Duplication. |
| DOUBLE_DOUBLE | back to summary |
|---|---|
| public static final Duplication. A flip instruction that flips a double-sized element over another double-size element. | |
| DOUBLE_SINGLE | back to summary |
|---|---|
| public static final Duplication. A flip instruction that flips a single-sized element over a double-size element. | |
| opcode | back to summary |
|---|---|
| private final int opcode The opcode to apply. | |
| SINGLE_DOUBLE | back to summary |
|---|---|
| public static final Duplication. A flip instruction that flips a double-sized element over a single-size element. | |
| SINGLE_SINGLE | back to summary |
|---|---|
| public static final Duplication. A flip instruction that flips a single-sized element over another single-size element. | |
| stackSize | back to summary |
|---|---|
| private final StackSize stackSize The size that is added to the operand stack. | |
| WithFlip | back to summary |
|---|---|
| private WithFlip(int opcode, StackSize stackSize) Creates a flip duplication.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements org. Doc from org. Applies the stack manipulation that is described by this instance.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements org. Doc from org. Determines if this stack manipulation is valid.
| |
| valueOf | back to summary |
|---|---|
| public static Duplication. | |
| values | back to summary |
|---|---|
| public static Duplication. | |