| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | StackManipulation.
An abstract base implementation of a valid stack manipulation. |
| public static class | StackManipulation.
An immutable stack manipulation that aggregates a sequence of other stack manipulations. |
| public static enum | StackManipulation.
Canonical representation of an illegal stack manipulation. |
| public static class | StackManipulation.
An implementation of |
| public static class | StackManipulation.
A description of the size change that is imposed by some
|
| public static enum | StackManipulation.
Canonical representation of a legal stack manipulation which does not require any action. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | Returns: The changes to the size of the operand stack that are implied by this stack manipulation.The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextApplies the stack manipulation that is described by this instance. |
| public boolean | Returns: Iffalse, this manipulation cannot be applied and should throw an exception.Determines if this stack manipulation is valid. |
| apply | back to summary |
|---|---|
| public StackManipulation. Applies the stack manipulation that is described by this instance.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Determines if this stack manipulation is valid.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isValid()
Implements org. |
| AbstractBase | back to summary |
|---|---|
| public AbstractBase() | |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements org. Doc from org. Determines if this stack manipulation is valid.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | stackManipulations
The stack manipulations this compound operation represents in their application order. |
| Access | Constructor and Description |
|---|---|
| public | Compound(StackManipulation...
The stack manipulations to be composed in the order of their composition. stackManipulation)Creates a new compound stack manipulation. |
| public | Compound(List<? extends StackManipulation>
The stack manipulations to be composed in the order of their composition. stackManipulations)Creates a new compound stack manipulation. |
| 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. |
| stackManipulations | back to summary |
|---|---|
| private final List<StackManipulation> stackManipulations The stack manipulations this compound operation represents in their application order. | |
| Compound | back to summary |
|---|---|
| public Compound(StackManipulation... stackManipulation) Creates a new compound stack manipulation.
| |
| Compound | back to summary |
|---|---|
| public Compound(List<? extends StackManipulation> stackManipulations) Creates a new compound stack manipulation.
| |
| 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final StackManipulation. | INSTANCE
The singleton instance. |
| 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 StackManipulation. | |
| public static StackManipulation. |
| INSTANCE | back to summary |
|---|---|
| public static final StackManipulation. The singleton instance. | |
| Illegal | back to summary |
|---|---|
| private Illegal() | |
| 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 StackManipulation. | |
| values | back to summary |
|---|---|
| public static StackManipulation. | |
StackManipulation that simplifies functional invocations via lambda expressions.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | StackManipulation.
A dispatcher for an instance of |
| Modifier and Type | Field and Description |
|---|---|
| private final StackManipulation. | dispatcher
The dispatcher to use. |
| Access | Constructor and Description |
|---|---|
| public | Simple(StackManipulation.
The dispatcher to use. dispatcherCreates a new stack manipulation for a dispatcher. |
| 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. |
| dispatcher | back to summary |
|---|---|
| private final StackManipulation. The dispatcher to use. | |
| Simple | back to summary |
|---|---|
| public Simple(StackManipulation. Creates a new stack manipulation for a dispatcher.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements org. Doc from org. Applies the stack manipulation that is described by this instance.
| |
Simple.
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | Returns: The changes to the size of the operand stack that are implied by this stack manipulation.The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextA valid implementation of |
| apply | back to summary |
|---|---|
| public StackManipulation. A valid implementation of
| |
StackManipulation.
| Modifier and Type | Field and Description |
|---|---|
| private final int | maximalSize
The maximal size of stack slots this stack manipulation ever requires. |
| private final int | sizeImpact
The impact of any size operation onto the operand stack. |
| public static final StackManipulation. | ZERO
A size of zero. |
| Access | Constructor and Description |
|---|---|
| public | Size(int
The change of the size of the operand stack that is implied by some stack manipulation. sizeImpact, int The maximal stack size that is required for executing this stack manipulation. Should
never be negative number. maximalSize)Creates an immutable descriptor of the size change that is implied by some stack manipulation. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | Returns: A new size representation representing both stack size requirements.The other size representation. otherConcatenates this size representation with another size representation in order to represent the size change that is represented by both alterations of the operand stack size. |
| private StackManipulation. | Returns: The aggregated size.The change in size the other operation implies. sizeChange, int The interim maximal size of the operand stack that the other operation requires
at least to function. interimMaximalSize)Aggregates a size change with this stack manipulation size. |
| public int | Returns: The maximal interim size of the operand stack that is represented by this instance.Returns the maximal interim size of the operand stack that is represented by this instance. |
| public int | Returns: The size change on the operand stack that is represented by this instance.Returns the size change on the operand stack that is represented by this instance. |
| maximalSize | back to summary |
|---|---|
| private final int maximalSize The maximal size of stack slots this stack manipulation ever requires. If an operation for example pushes five values onto the stack and subsequently consumes three operations, this value should still be five to express that a stack operation requires at least five slots in order to be applicable. | |
| sizeImpact | back to summary |
|---|---|
| private final int sizeImpact The impact of any size operation onto the operand stack. This value can be negative if more values were consumed from the stack than added to it. | |
| ZERO | back to summary |
|---|---|
| public static final StackManipulation. A size of zero. | |
| Size | back to summary |
|---|---|
| public Size(int sizeImpact, int maximalSize) Creates an immutable descriptor of the size change that is implied by some stack manipulation.
| |
| aggregate | back to summary |
|---|---|
| public StackManipulation. Concatenates this size representation with another size representation in order to represent the size change that is represented by both alterations of the operand stack size.
| |
| aggregate | back to summary |
|---|---|
| private StackManipulation. Aggregates a size change with this stack manipulation size.
| |
| getMaximalSize | back to summary |
|---|---|
| public int getMaximalSize() Returns the maximal interim size of the operand stack that is represented by this instance.
| |
| getSizeImpact | back to summary |
|---|---|
| public int getSizeImpact() Returns the size change on the operand stack that is represented by this instance.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final StackManipulation. | INSTANCE
The singleton instance. |
| 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 StackManipulation. | |
| public static StackManipulation. |
| INSTANCE | back to summary |
|---|---|
| public static final StackManipulation. The singleton instance. | |
| Trivial | back to summary |
|---|---|
| private Trivial() | |
| 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 StackManipulation. | |
| values | back to summary |
|---|---|
| public static StackManipulation. | |