Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.description.type |
Contains descriptions of Java types and packages.
|
net.bytebuddy.implementation.bytecode |
Types and classes in this package are responsible for creating Java byte code for a given byte code target
which is represented by a
MethodDescription . |
net.bytebuddy.implementation.bytecode.assign.primitive |
Assigner implementations of this package
are capable of handling primitive types or the void type. |
net.bytebuddy.implementation.bytecode.collection |
This package is dedicated to creating
StackManipulation s
that create collections or arrays from a given number of values. |
net.bytebuddy.implementation.bytecode.constant |
StackManipulation s in this package are responsible for
creating compile-time constants and pushing them onto the operand stack. |
net.bytebuddy.implementation.bytecode.member |
StackManipulation s of this package are responsible for
accessing type or method members, i.e. |
net.bytebuddy.utility.visitor |
A package containing visitor classes for ASM.
|
Modifier and Type | Field and Description |
---|---|
private StackSize |
Advice.ArgumentHandler.ForAdvice.Default.ForMethodExit.throwableSize
The stack size of a possibly stored throwable.
|
Constructor and Description |
---|
ForMethodExit(MethodDescription instrumentedMethod,
MethodDescription adviceMethod,
TypeDefinition exitType,
java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes,
TypeDefinition enterType,
StackSize throwableSize)
Creates a new argument handler for an exit advice method.
|
Modifier and Type | Method and Description |
---|---|
StackSize |
TypeDefinition.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.Generic.OfNonGenericType.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.Generic.OfGenericArray.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.Generic.OfWildcardType.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.Generic.OfParameterizedType.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.Generic.OfTypeVariable.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.Generic.OfTypeVariable.Symbolic.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.Generic.LazyProjection.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.AbstractBase.OfSimpleType.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.ForLoadedType.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.ArrayProjection.getStackSize()
Returns the size of the type described by this instance.
|
StackSize |
TypeDescription.SuperTypeLoading.getStackSize()
Returns the size of the type described by this instance.
|
Modifier and Type | Field and Description |
---|---|
private StackSize |
Multiplication.stackSize
The stack size of the multiplied primitive.
|
private StackSize |
Addition.stackSize
The stack size of the added primitive.
|
private StackSize |
Duplication.WithFlip.stackSize
The size that is added to the operand stack.
|
Modifier and Type | Method and Description |
---|---|
StackSize |
StackSize.maximum(StackSize stackSize)
Determines the maximum of two stack size representations.
|
static StackSize |
StackSize.of(java.lang.Class<?> type)
Finds the operand stack size of a given Java type.
|
static StackSize |
StackSize.of(int size)
Represents a numeric size as a
StackSize . |
static StackSize |
StackSize.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StackSize[] |
StackSize.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
StackSize |
StackSize.maximum(StackSize stackSize)
Determines the maximum of two stack size representations.
|
Constructor and Description |
---|
Addition(int opcode,
StackSize stackSize)
Creates a new addition.
|
Duplication(StackSize stackSize,
int opcode)
Creates a new duplication.
|
Multiplication(int opcode,
StackSize stackSize)
Creates a new multiplication type.
|
Removal(StackSize stackSize,
int opcode)
Creates a new removal stack manipulation.
|
WithFlip(int opcode,
StackSize stackSize)
Creates a flip duplication.
|
Constructor and Description |
---|
PrimitiveBoxingDelegate(java.lang.Class<?> wrapperType,
StackSize sizeDifference,
java.lang.String boxingMethodName,
java.lang.String boxingMethodDescriptor)
Creates a new primitive boxing delegate.
|
PrimitiveUnboxingDelegate(java.lang.Class<?> wrapperType,
java.lang.Class<?> primitiveType,
StackSize sizeDifference,
java.lang.String unboxingMethodName,
java.lang.String unboxingMethodDescriptor)
Creates a new primitive unboxing delegate.
|
Modifier and Type | Field and Description |
---|---|
private StackSize |
ArrayAccess.stackSize
The size of the array's component value.
|
Constructor and Description |
---|
ArrayAccess(int loadOpcode,
int storeOpcode,
StackSize stackSize)
Creates a new array access.
|
Constructor and Description |
---|
NullConstant(StackSize size)
Creates a null constant.
|
Modifier and Type | Field and Description |
---|---|
private StackSize |
MethodVariableAccess.size
The size of the local variable on the JVM stack.
|
Modifier and Type | Method and Description |
---|---|
protected abstract StackManipulation.Size |
FieldAccess.AccessDispatcher.AbstractFieldInstruction.resolveSize(StackSize fieldSize)
Resolves the actual size of this field access operation.
|
protected StackManipulation.Size |
FieldAccess.AccessDispatcher.FieldGetInstruction.resolveSize(StackSize fieldSize) |
protected StackManipulation.Size |
FieldAccess.AccessDispatcher.FieldPutInstruction.resolveSize(StackSize fieldSize) |
Constructor and Description |
---|
FieldAccess(int putterOpcode,
int getterOpcode,
StackSize targetSizeChange)
Creates a new field access.
|
MethodReturn(int returnOpcode,
StackSize stackSize)
Creates a new method return manipulation.
|
MethodVariableAccess(int loadOpcode,
int storeOpcode,
StackSize stackSize)
Creates a new method variable access for a given JVM type.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<StackSize> |
StackAwareMethodVisitor.current
A list of the current elements on the operand stack.
|
private java.util.Map<org.objectweb.asm.Label,java.util.List<StackSize>> |
StackAwareMethodVisitor.sizes
A mapping of labels to the operand stack size that is expected at this label.
|
Modifier and Type | Method and Description |
---|---|
int |
StackAwareMethodVisitor.drainStack(int store,
int load,
StackSize size)
Drains the stack to only contain the top value.
|
Modifier and Type | Method and Description |
---|---|
private void |
StackAwareMethodVisitor.doDrain(java.util.List<StackSize> stackSizes)
Drains all supplied elements of the operand stack.
|
void |
StackAwareMethodVisitor.register(org.objectweb.asm.Label label,
java.util.List<StackSize> stackSizes)
Explicitly registers a label to define a given stack state.
|