| Modifier and Type | Class and Description |
|---|---|
| public static class | MethodVariableAccess.MethodLoading
A stack manipulation that loads all parameters of a given method onto the operand stack. |
| protected static class | MethodVariableAccess.OffsetIncrementing
A stack manipulation that increments an integer variable. |
| protected class | MethodVariableAccess.OffsetLoading
A stack manipulation for loading a variable of a method's local variable array onto the operand stack. |
| protected class | MethodVariableAccess.OffsetWriting
A stack manipulation for storing a variable into a method's local variable array. |
| Modifier and Type | Field and Description |
|---|---|
| public static final MethodVariableAccess | DOUBLE
The accessor handler for a |
| public static final MethodVariableAccess | FLOAT
The accessor handler for a |
| public static final MethodVariableAccess | INTEGER
The accessor handler for a JVM-integer. |
| private final int | loadOpcode
The opcode for loading this variable type. |
| public static final MethodVariableAccess | LONG
The accessor handler for a |
| public static final MethodVariableAccess | REFERENCE
The accessor handler for a reference type. |
| private final StackSize | size
The size of the local variable on the JVM stack. |
| private final int | storeOpcode
The opcode for storing a local variable type. |
| Access | Constructor and Description |
|---|---|
| private | MethodVariableAccess(int
The opcode for loading this variable type. loadOpcode, int The opcode for storing this variable type. storeOpcode, StackSize The size of the JVM type. stackSize)Creates a new method variable access for a given JVM type. |
| Modifier and Type | Method and Description |
|---|---|
| public static MethodVariableAccess. | Returns: A stack manipulation that loads all parameters of the provided method onto the operand stack.The method for which all parameters are to be loaded onto the operand stack. methodDescription)Loads all arguments of the provided method onto the operand stack. |
| public StackManipulation | Returns: A stack manipulation representing the variable write.The offset of the variable where offset, int double and long types count two slots.The incremented value. value)Creates a stack assignment for incrementing the given offset of the local variable array. |
| public static StackManipulation | Returns: A stack manipulation incrementing the supplied parameter.The parameter which to increment. parameterDescription, int The value to increment with. value)Increments the value of the supplied parameter. |
| public static StackManipulation | Returns: A stack manipulation loading a parameter onto the operand stack.The parameter which to load onto the operand stack. parameterDescription)Loads a parameter's value onto the operand stack. |
| public StackManipulation | Returns: A stack manipulation representing the variable read.The offset of the variable where offset)double and long types count two slots.Creates a stack assignment for a reading given offset of the local variable array. |
| public static StackManipulation | Returns: A stack manipulation loading thethis reference.Loads a reference to the |
| public static MethodVariableAccess | Returns: An accessor for the given type.The type of the variable to be loaded. typeDefinition)Locates the correct accessor for a variable of a given type. |
| public static StackManipulation | Returns: A stack manipulation storing the top operand stack value at this parameter.The parameter which to store a value for. parameterDescription)Stores the top operand stack value at the supplied parameter. |
| public StackManipulation | Returns: A stack manipulation representing the variable write.The offset of the variable where offset)double and long types count two slots.Creates a stack assignment for writing to a given offset of the local variable array. |
| public static MethodVariableAccess | |
| public static MethodVariableAccess[] |
| DOUBLE | back to summary |
|---|---|
| public static final MethodVariableAccess DOUBLE The accessor handler for a | |
| FLOAT | back to summary |
|---|---|
| public static final MethodVariableAccess FLOAT The accessor handler for a | |
| INTEGER | back to summary |
|---|---|
| public static final MethodVariableAccess INTEGER The accessor handler for a JVM-integer. | |
| loadOpcode | back to summary |
|---|---|
| private final int loadOpcode The opcode for loading this variable type. | |
| LONG | back to summary |
|---|---|
| public static final MethodVariableAccess LONG The accessor handler for a | |
| REFERENCE | back to summary |
|---|---|
| public static final MethodVariableAccess REFERENCE The accessor handler for a reference type. | |
| size | back to summary |
|---|---|
| private final StackSize size The size of the local variable on the JVM stack. | |
| storeOpcode | back to summary |
|---|---|
| private final int storeOpcode The opcode for storing a local variable type. | |
| MethodVariableAccess | back to summary |
|---|---|
| private MethodVariableAccess(int loadOpcode, int storeOpcode, StackSize stackSize) Creates a new method variable access for a given JVM type.
| |
| allArgumentsOf | back to summary |
|---|---|
| public static MethodVariableAccess. Loads all arguments of the provided method onto the operand stack.
| |
| increment | back to summary |
|---|---|
| public StackManipulation increment(int offset, int value) Creates a stack assignment for incrementing the given offset of the local variable array.
| |
| increment | back to summary |
|---|---|
| public static StackManipulation increment(ParameterDescription parameterDescription, int value) Increments the value of the supplied parameter.
| |
| load | back to summary |
|---|---|
| public static StackManipulation load(ParameterDescription parameterDescription) Loads a parameter's value onto the operand stack.
| |
| loadFrom | back to summary |
|---|---|
| public StackManipulation loadFrom(int offset) Creates a stack assignment for a reading given offset of the local variable array.
| |
| loadThis | back to summary |
|---|---|
| public static StackManipulation loadThis() Loads a reference to the
| |
| of | back to summary |
|---|---|
| public static MethodVariableAccess of(TypeDefinition typeDefinition) Locates the correct accessor for a variable of a given type.
| |
| store | back to summary |
|---|---|
| public static StackManipulation store(ParameterDescription parameterDescription) Stores the top operand stack value at the supplied parameter.
| |
| storeAt | back to summary |
|---|---|
| public StackManipulation storeAt(int offset) Creates a stack assignment for writing to a given offset of the local variable array.
| |
| valueOf | back to summary |
|---|---|
| public static MethodVariableAccess valueOf(String name) | |
| values | back to summary |
|---|---|
| public static MethodVariableAccess[] values() | |
| Modifier and Type | Class and Description |
|---|---|
| protected static interface | MethodVariableAccess.MethodLoading.TypeCastingHandler
A type casting handler allows a type transformation of all arguments of a method after loading them onto the operand stack. |
| Modifier and Type | Field and Description |
|---|---|
| private final MethodDescription | methodDescription
The method for which all parameters are loaded onto the operand stack. |
| private final MethodVariableAccess. | typeCastingHandler
A type casting handler which is capable of transforming all method parameters. |
| Access | Constructor and Description |
|---|---|
| protected | MethodLoading(MethodDescription
The method for which all parameters are loaded onto the operand stack. methodDescription, MethodVariableAccess.A type casting handler which is capable of transforming all method parameters. typeCastingHandlerCreates a new method loading 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 net. |
| public MethodVariableAccess. | Returns: A stack manipulation that loads all parameters casted to the types of the supplied bridge target.The method that is the target of the bridge method for which the parameters are being loaded. bridgeTarget)Applies a transformation to all loaded arguments of the method being loaded to be casted to the corresponding parameter of the provided method. |
| public StackManipulation | Returns: A stack manipulation that loads all method parameters onto the operand stack while additionally loading a reference tothis if the represented is non-static. Any potential parameter transformation is preserved.Prepends a reference to the |
| methodDescription | back to summary |
|---|---|
| private final MethodDescription methodDescription The method for which all parameters are loaded onto the operand stack. | |
| typeCastingHandler | back to summary |
|---|---|
| private final MethodVariableAccess. A type casting handler which is capable of transforming all method parameters. | |
| MethodLoading | back to summary |
|---|---|
| protected MethodLoading(MethodDescription methodDescription, MethodVariableAccess. Creates a new method loading stack manipulation.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |
| asBridgeOf | back to summary |
|---|---|
| public MethodVariableAccess. Applies a transformation to all loaded arguments of the method being loaded to be casted to the corresponding parameter of the provided method. This way, the parameters can be used for invoking a bridge target method.
| |
| prependThisReference | back to summary |
|---|---|
| public StackManipulation prependThisReference() Prepends a reference to the
| |
| Modifier and Type | Class and Description |
|---|---|
| public static class | MethodVariableAccess.MethodLoading.TypeCastingHandler.ForBridgeTarget
A type casting handler that casts all parameters of a method to the parameter types of a compatible method with covariant parameter types. |
| public static enum | MethodVariableAccess.MethodLoading.TypeCastingHandler.NoOp
A non-operative type casting handler. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation | Returns: A transformation to apply after loading the parameter onto the operand stack.The parameter type that is to be transformed. parameterType, int The index of the transformed parameter. index)Yields a stack transformation to transform the given argument of the method for which the arguments are loaded onto the operand stack. |
| ofIndex | back to summary |
|---|---|
| public StackManipulation ofIndex(TypeDescription parameterType, int index) Yields a stack transformation to transform the given argument of the method for which the arguments are loaded onto the operand stack.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final MethodDescription | bridgeTarget
The target of the method bridge. |
| Access | Constructor and Description |
|---|---|
| public | ForBridgeTarget(MethodDescription
The target of the method bridge. bridgeTarget)Creates a new type casting handler for a bridge target. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation | ofIndex(TypeDescription
The parameter type that is to be transformed. parameterType, int The index of the transformed parameter. index)Implements net. |
| bridgeTarget | back to summary |
|---|---|
| private final MethodDescription bridgeTarget The target of the method bridge. | |
| ForBridgeTarget | back to summary |
|---|---|
| public ForBridgeTarget(MethodDescription bridgeTarget) Creates a new type casting handler for a bridge target.
| |
| ofIndex | back to summary |
|---|---|
| public StackManipulation ofIndex(TypeDescription parameterType, int index) Implements net. Yields a stack transformation to transform the given argument of the method for which the arguments are loaded onto the operand stack.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final MethodVariableAccess. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation | ofIndex(TypeDescription
The parameter type that is to be transformed. parameterType, int The index of the transformed parameter. index)Implements net. |
| public static MethodVariableAccess. | |
| public static MethodVariableAccess. |
| INSTANCE | back to summary |
|---|---|
| public static final MethodVariableAccess. The singleton instance. | |
| NoOp | back to summary |
|---|---|
| private NoOp() | |
| ofIndex | back to summary |
|---|---|
| public StackManipulation ofIndex(TypeDescription parameterType, int index) Implements net. Yields a stack transformation to transform the given argument of the method for which the arguments are loaded onto the operand stack.
| |
| valueOf | back to summary |
|---|---|
| public static MethodVariableAccess. | |
| values | back to summary |
|---|---|
| public static MethodVariableAccess. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | offset
The index of the local variable array from which the variable should be loaded. |
| private final int | value
The value to increment. |
| Access | Constructor and Description |
|---|---|
| protected | OffsetIncrementing(int
The index of the local variable array from which the variable should be loaded. offset, int The value to increment. value)Creates a new argument loading 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 net. |
| offset | back to summary |
|---|---|
| private final int offset The index of the local variable array from which the variable should be loaded. | |
| value | back to summary |
|---|---|
| private final int value The value to increment. | |
| OffsetIncrementing | back to summary |
|---|---|
| protected OffsetIncrementing(int offset, int value) Creates a new argument loading stack manipulation.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | offset
The offset of the local variable array from which the variable should be loaded. |
| Access | Constructor and Description |
|---|---|
| protected | OffsetLoading(int
The offset of the local variable array from which the variable should be loaded. offset)Creates a new argument loading 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 net. |
| offset | back to summary |
|---|---|
| private final int offset The offset of the local variable array from which the variable should be loaded. | |
| OffsetLoading | back to summary |
|---|---|
| protected OffsetLoading(int offset) Creates a new argument loading stack manipulation.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | offset
The offset of the local variable array to which the value should be written. |
| Access | Constructor and Description |
|---|---|
| protected | OffsetWriting(int
The offset of the local variable array to which the value should be written. offset)Creates a new argument writing 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 net. |
| offset | back to summary |
|---|---|
| private final int offset The offset of the local variable array to which the value should be written. | |
| OffsetWriting | back to summary |
|---|---|
| protected OffsetWriting(int offset) Creates a new argument writing stack manipulation.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |