public interface StackManipulation
Modifier and Type | Interface and Description |
---|---|
static class |
StackManipulation.AbstractBase
An abstract base implementation of a valid stack manipulation.
|
static class |
StackManipulation.Compound
An immutable stack manipulation that aggregates a sequence of other stack manipulations.
|
static class |
StackManipulation.Illegal
Canonical representation of an illegal stack manipulation.
|
static class |
StackManipulation.Simple
An implementation of
StackManipulation that simplifies functional invocations via lambda expressions. |
static class |
StackManipulation.Size
A description of the size change that is imposed by some
StackManipulation . |
static class |
StackManipulation.Trivial
Canonical representation of a legal stack manipulation which does not require any action.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation.Size |
apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance.
|
boolean |
isValid()
Determines if this stack manipulation is valid.
|
boolean isValid()
false
, this manipulation cannot be applied and should throw an exception.StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)
methodVisitor
- The method visitor used to write the method implementation to.implementationContext
- The context of the current implementation.Copyright © 2014–2025. All rights reserved.