Uses of Interface
net.bytebuddy.implementation.bytecode.StackManipulation
Packages that use StackManipulation
Package
Description
Byte Buddy is a library for creating Java classes at runtime of a Java program.
An agent builder is used to easily implement load-time class-transformations using a Java agent.
The ASM package contains classes that are meant for direct interaction with the ASM API.
All classes and types in this package are related to creating a
DynamicType
by
enhancing a given type.The implementation package contains any logic for intercepting method calls.
Auxiliary types describe helper types that aid as a supplementary to a given
InstrumentedType
.The types and classes of this package are responsible for binding a method call to calling another method.
This package contains annotations, types and classes that are responsible for binding a method to calling another
method by interpreting annotations that indicate how a method should be bound to another method.
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
.An
Assigner
is responsible for transforming
a given TypeDescription
into another one.Assigner
implementations of this package
are capable of handling primitive types or the void
type.Assigner
implementations of this package
are capable of assigning non-primitive types to each other.This package is dedicated to creating
StackManipulation
s
that create collections or arrays from a given number of values.StackManipulation
s in this package are responsible for
creating compile-time constants and pushing them onto the operand stack.StackManipulation
s of this package are responsible for
accessing type or method members, i.e.This package contains utility classes for common use within any Byte Buddy logic.
-
Uses of StackManipulation in net.bytebuddy
Fields in net.bytebuddy declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulation
ByteBuddy.RecordObjectMethod.stackManipulation
The stack manipulation to append to the arguments.Constructors in net.bytebuddy with parameters of type StackManipulationModifierConstructorDescriptionprivate
RecordObjectMethod
(String name, StackManipulation stackManipulation, Class<?> returnType, Class<?>... arguments) Creates a new object method instance for a Java record. -
Uses of StackManipulation in net.bytebuddy.agent.builder
Classes in net.bytebuddy.agent.builder that implement StackManipulationModifier and TypeClassDescriptionstatic class
An invocation that is using an exact invocation of a method handle.Methods in net.bytebuddy.agent.builder that return StackManipulationModifier and TypeMethodDescriptionAgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.Dispatcher.initialize()
Initializes this invocation.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.Dispatcher.UsingDirectInvocation.initialize()
Initializes this invocation.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.Dispatcher.UsingMethodHandle.initialize()
Initializes this invocation.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.Dispatcher.invoke
(MethodDescription methodDescription) Invokes this invocation.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.Dispatcher.UsingDirectInvocation.invoke
(MethodDescription methodDescription) Invokes this invocation.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.Dispatcher.UsingMethodHandle.invoke
(MethodDescription methodDescription) Invokes this invocation. -
Uses of StackManipulation in net.bytebuddy.asm
Classes in net.bytebuddy.asm that implement StackManipulationModifier and TypeClassDescriptionprotected static class
A stack manipulation that applies a null-check on the returned value which indicates if an assignment should be skipped, if discovered.protected static class
An exception handler to handle exceptions during assignment.Fields in net.bytebuddy.asm declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulation
Advice.OffsetMapping.ForSerializedValue.deserialization
The stack manipulation deserializing the represented value.private final StackManipulation
Advice.OffsetMapping.ForSerializedValue.Factory.deserialization
The stack manipulation that loads the represented value.private final StackManipulation
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfSerializedConstant.deserialization
A stack manipulation that represents the deserialization.private final StackManipulation
Advice.AssignReturned.ExceptionHandler.exceptionHandler
The exception handler to apply.private final StackManipulation
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.exceptionHandler
The exception handler that is resolved for the instrumented method.private final StackManipulation
Advice.Dispatcher.Inlining.CodeTranslationVisitor.exceptionHandler
The exception handler that is resolved for the instrumented method.protected final StackManipulation
Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.exceptionHandler
The exception handler that is resolved for the instrumented method.private final StackManipulation
Advice.Dispatcher.SuppressionHandler.Suppressing.Bound.exceptionHandler
The stack manipulation to apply within a suppression handler.private final StackManipulation
Advice.OffsetMapping.Target.ForStackManipulation.Writable.read
The reading stack manipulation.protected final StackManipulation
Advice.OffsetMapping.Target.ForDefaultValue.readAssignment
A stack manipulation to apply after a read instruction.protected final StackManipulation
Advice.OffsetMapping.Target.ForField.readAssignment
The stack manipulation to apply upon a read.protected final StackManipulation
Advice.OffsetMapping.Target.ForVariable.readAssignment
An assignment to execute upon reading a value.private final StackManipulation
Advice.AssignReturned.DefaultValueSkip.stackManipulation
The wrapped stack manipulation in case the value is not a default value.private final StackManipulation
Advice.AssignReturned.ExceptionHandler.stackManipulation
The stack manipulation that represents the assignment.private final StackManipulation
Advice.ExceptionHandler.Simple.stackManipulation
The stack manipulation to execute.private final StackManipulation
Advice.OffsetMapping.ForStackManipulation.Factory.stackManipulation
The stack manipulation that loads the bound value.private final StackManipulation
Advice.OffsetMapping.ForStackManipulation.stackManipulation
The stack manipulation that loads the bound value.private final StackManipulation
Advice.OffsetMapping.Target.ForStackManipulation.stackManipulation
The represented stack manipulation.private final StackManipulation
MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory.stackManipulation
The stack manipulation that loads the substituted argument.private final StackManipulation
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.Factory.stackManipulation
The stack manipulation that produces the assigned value.private final StackManipulation
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.Resolved.stackManipulation
The stack manipulation to apply.private final StackManipulation
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.stackManipulation
The stack manipulation to apply.private final StackManipulation
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved.ForStackManipulation.stackManipulation
The stack manipulation to load.private final StackManipulation
MemberSubstitution.Substitution.Chain.Step.Simple.stackManipulation
The stack manipulation to apply.private final StackManipulation
MemberSubstitution.Substitution.ForValue.stackManipulation
The stack manipulation to load the value that represents the substitution.private final StackManipulation
MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.substitution
The stack manipulation that loads the substituted argument.private final StackManipulation
Advice.OffsetMapping.Target.ForStackManipulation.Writable.write
The writing stack manipulation.private final StackManipulation
Advice.OffsetMapping.Target.ForField.ReadWrite.writeAssignment
An assignment to apply prior to a field write.private final StackManipulation
Advice.OffsetMapping.Target.ForField.WriteOnly.writeAssignment
An assignment to apply prior to a field write.private final StackManipulation
Advice.OffsetMapping.Target.ForVariable.ReadWrite.writeAssignment
A stack manipulation to apply upon a write to the variable.Fields in net.bytebuddy.asm with type parameters of type StackManipulationModifier and TypeFieldDescriptionprotected final List
<? extends StackManipulation> Advice.OffsetMapping.Target.ForArray.valueReads
The stack manipulations to apply upon reading a variable array.private final List
<? extends StackManipulation> Advice.OffsetMapping.Target.ForArray.ReadWrite.valueWrites
The stack manipulations to apply upon writing to a variable array.Methods in net.bytebuddy.asm that return StackManipulationModifier and TypeMethodDescriptionAdvice.Delegator.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Materializes an invocation.Advice.Delegator.ForDynamicInvocation.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Materializes an invocation.Advice.Delegator.ForRegularInvocation.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Materializes an invocation.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.Resolved.apply
(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle) Creates a stack manipulation for a given substitution target.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation.apply
(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle) Creates a stack manipulation for a given substitution target.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved.apply
(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle) Creates a stack manipulation for a given substitution target.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Resolved.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument.Resolved.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForCurrent.Resolved.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Resolved.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.Bound.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.Unbound.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.Resolved.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Resolved.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved.ForStackManipulation.apply
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.protected abstract StackManipulation
Advice.OffsetMapping.ForSelfCallHandle.decorate
(MethodDescription methodDescription, StackManipulation stackManipulation) Resolves a stack manipulation.MemberSubstitution.Substitution.Chain.Step.Resolution.getStackManipulation()
Returns the stack manipulation to apply the substitution.MemberSubstitution.Substitution.Chain.Step.Simple.getStackManipulation()
Returns the stack manipulation to apply the substitution.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.Resolved.initialize()
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation.initialize()
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved.initialize()
MemberSubstitution.Replacement.Binding.ForDynamicInvocation.make
(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Creates a stack manipulation that represents the substitution.MemberSubstitution.Replacement.Binding.ForMember.make
(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Creates a stack manipulation that represents the substitution.MemberSubstitution.Replacement.Binding.make
(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Creates a stack manipulation that represents the substitution.MemberSubstitution.Replacement.Binding.Unresolved.make
(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Creates a stack manipulation that represents the substitution.protected static StackManipulation
Advice.AssignReturned.DefaultValueSkip.of
(StackManipulation stackManipulation, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, int offset, TypeDefinition typeDefinition) Resolves a skipping stack manipulation for the supplied type.Advice.AssignReturned.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.AssignReturned.ToAllArguments.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToArguments.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToFields.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToReturned.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToThis.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToThrown.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.ExceptionHandler.resolve
(MethodDescription instrumentedMethod, TypeDescription instrumentedType) Resolves a stack manipulation to apply.Advice.ExceptionHandler.Simple.resolve
(MethodDescription instrumentedMethod, TypeDescription instrumentedType) Resolves a stack manipulation to apply.Advice.PostProcessor.Compound.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.PostProcessor.NoOp.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.PostProcessor.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.protected abstract StackManipulation
MemberSubstitution.Source.resolve
(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort sort, MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, MethodDescription instrumentedMethod) Resolves a stack manipulation that loads the supplied sort of origin onto the operand stack.MemberSubstitution.Substitution.Chain.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.protected abstract StackManipulation
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort.resolve
(ByteCodeElement.Member member, List<TypeDescription> parameterTypes, TypeDescription returnType) Creates a stack manipulation for the supplied byte code element.MemberSubstitution.Substitution.ForFieldAccess.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.ForMethodInvocation.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.ForValue.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.Stubbing.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.Advice.OffsetMapping.Target.AbstractReadOnlyAdapter.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForArray.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForDefaultValue.ReadOnly.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForDefaultValue.ReadWrite.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForField.ReadOnly.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForField.ReadWrite.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForField.WriteOnly.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForStackManipulation.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForStackManipulation.Writable.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForVariable.ReadOnly.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForVariable.ReadWrite.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.resolveIncrement
(int value) Resolves an increment instruction.Advice.OffsetMapping.Target.ForArray.resolveRead()
Resolves a read instruction.Advice.OffsetMapping.Target.ForDefaultValue.resolveRead()
Resolves a read instruction.Advice.OffsetMapping.Target.ForField.resolveRead()
Resolves a read instruction.Advice.OffsetMapping.Target.ForField.WriteOnly.resolveRead()
Resolves a read instruction.Advice.OffsetMapping.Target.ForStackManipulation.resolveRead()
Resolves a read instruction.Advice.OffsetMapping.Target.ForStackManipulation.Writable.resolveRead()
Resolves a read instruction.Advice.OffsetMapping.Target.ForVariable.resolveRead()
Resolves a read instruction.Advice.OffsetMapping.Target.resolveRead()
Resolves a read instruction.Advice.OffsetMapping.Target.AbstractReadOnlyAdapter.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForArray.ReadOnly.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForArray.ReadWrite.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForDefaultValue.ReadOnly.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForDefaultValue.ReadWrite.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForField.ReadOnly.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForField.ReadWrite.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForField.WriteOnly.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForStackManipulation.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForStackManipulation.Writable.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForVariable.ReadOnly.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.ForVariable.ReadWrite.resolveWrite()
Resolves a write instruction.Advice.OffsetMapping.Target.resolveWrite()
Resolves a write instruction.protected StackManipulation
Advice.AssignReturned.ForArray.toLoadInstruction
(Advice.AssignReturned.Handler handler, int offset) protected StackManipulation
Advice.AssignReturned.ForScalar.toLoadInstruction
(Advice.AssignReturned.Handler handler, int offset) protected abstract StackManipulation
Advice.AssignReturned.toLoadInstruction
(Advice.AssignReturned.Handler handler, int offset) Creates a load instruction for the given handler.Advice.AssignReturned.ExceptionHandler.Factory.Enabled.wrap
(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Wraps the supplied stack manipulation.Advice.AssignReturned.ExceptionHandler.Factory.NoOp.wrap
(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Wraps the supplied stack manipulation.Advice.AssignReturned.ExceptionHandler.Factory.wrap
(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Wraps the supplied stack manipulation.Methods in net.bytebuddy.asm with parameters of type StackManipulationModifier and TypeMethodDescriptionprotected abstract org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Advice.Dispatcher.Delegating.Resolved.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.Dispatcher.Inactive.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.Dispatcher.Inlining.Resolved.ForMethodExit.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.Dispatcher.Resolved.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.Dispatcher.SuppressionHandler.bind
(StackManipulation exceptionHandler) Binds the suppression handler for instrumenting a specific method.Advice.Dispatcher.SuppressionHandler.NoOp.bind
(StackManipulation exceptionHandler) Binds the suppression handler for instrumenting a specific method.Advice.Dispatcher.SuppressionHandler.Suppressing.bind
(StackManipulation exceptionHandler) Binds the suppression handler for instrumenting a specific method.<T extends Annotation>
Advice.WithCustomMappingAdvice.WithCustomMapping.bind
(Class<T> type, StackManipulation stackManipulation, Type targetType) Binds the supplied annotation to the annotation's property of the specified name.<T extends Annotation>
Advice.WithCustomMappingAdvice.WithCustomMapping.bind
(Class<T> type, StackManipulation stackManipulation, TypeDescription.Generic targetType) Binds the supplied annotation to the annotation's property of the specified name.MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bind
(Class<T> type, StackManipulation stackManipulation, Type targetType) Binds the supplied annotation to the annotation's property of the specified name.MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bind
(Class<T> type, StackManipulation stackManipulation, TypeDescription.Generic targetType) Binds the supplied annotation to the annotation's property of the specified name.protected abstract StackManipulation
Advice.OffsetMapping.ForSelfCallHandle.decorate
(MethodDescription methodDescription, StackManipulation stackManipulation) Resolves a stack manipulation.protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.doApply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.WithDiscardedEnterType.doApply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.private org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.doApply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.doResolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Binds this dispatcher for resolution to a specific method.protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.WithDiscardedEnterType.doResolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Binds this dispatcher for resolution to a specific method.private Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.doResolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Binds this dispatcher for resolution to a specific method.protected abstract MemberSubstitution.Substitution.Chain.Step.Resolution
MemberSubstitution.Substitution.Chain.Step.ForField.doResolve
(MemberSubstitution.Target target, TypeList.Generic parameters, Map<Integer, Integer> offsets, StackManipulation stackManipulation) Completes the resolution.MemberSubstitution.Substitution.Chain.Step.ForField.Read.doResolve
(MemberSubstitution.Target target, TypeList.Generic parameters, Map<Integer, Integer> offsets, StackManipulation stackManipulation) Completes the resolution.MemberSubstitution.Substitution.Chain.Step.ForField.Write.doResolve
(MemberSubstitution.Target target, TypeList.Generic parameters, Map<Integer, Integer> offsets, StackManipulation stackManipulation) Completes the resolution.MemberSubstitution.Replacement.Binding.ForDynamicInvocation.make
(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Creates a stack manipulation that represents the substitution.MemberSubstitution.Replacement.Binding.ForMember.make
(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Creates a stack manipulation that represents the substitution.MemberSubstitution.Replacement.Binding.make
(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Creates a stack manipulation that represents the substitution.MemberSubstitution.Replacement.Binding.Unresolved.make
(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Creates a stack manipulation that represents the substitution.protected static StackManipulation
Advice.AssignReturned.DefaultValueSkip.of
(StackManipulation stackManipulation, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, int offset, TypeDefinition typeDefinition) Resolves a skipping stack manipulation for the supplied type.Advice.AssignReturned.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.AssignReturned.ToAllArguments.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToArguments.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToFields.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToReturned.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToThis.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToThrown.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) protected abstract Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.PostProcessor.Compound.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.PostProcessor.NoOp.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.PostProcessor.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.MemberSubstitution.Substitution.Chain.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.ForAssignment.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.ForDelegation.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.ForField.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.ForInvocation.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.Simple.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.ForFieldAccess.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.ForMethodInvocation.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.ForValue.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.Stubbing.resolve
(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.Advice.withExceptionHandler
(StackManipulation exceptionHandler) Configures this advice to execute the given stack manipulation upon a suppressed exception.Advice.AssignReturned.ExceptionHandler.Factory.Enabled.wrap
(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Wraps the supplied stack manipulation.Advice.AssignReturned.ExceptionHandler.Factory.NoOp.wrap
(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Wraps the supplied stack manipulation.Advice.AssignReturned.ExceptionHandler.Factory.wrap
(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Wraps the supplied stack manipulation.Constructors in net.bytebuddy.asm with parameters of type StackManipulationModifierConstructorDescriptionprotected
AdviceMethodInliner
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, AsmClassReader classReader) Creates a new advice method inliner.protected
AdviceMethodWriter
(MethodDescription.TypeToken typeToken, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
AdviceVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags) Creates a new advice visitor.protected
Bound
(TypeDescription suppressedType, StackManipulation exceptionHandler) Creates a new active, bound suppression handler.protected
CodeTranslationVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, MethodDescription.InDefinedShape adviceMethod, Map<Integer, Advice.OffsetMapping.Target> offsetMappings, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.PostProcessor postProcessor, boolean exit) Creates a new code translation visitor.protected
DefaultValueSkip
(StackManipulation stackManipulation, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, int offset, Advice.AssignReturned.DefaultValueSkip.Dispatcher dispatcher) Creates a null-check wrapper.protected
ExceptionHandler
(StackManipulation stackManipulation, StackManipulation exceptionHandler, TypeDescription exceptionType, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Creates a new exception handler for an assignment.protected
Factory
(Class<T> annotationType, TypeDescription typeDescription, StackManipulation deserialization) Creates a factory for loading a deserialized value.Factory
(Class<T> annotationType, StackManipulation stackManipulation, TypeDescription.Generic typeDescription) Creates a new factory for binding a stack manipulation.Factory
(StackManipulation stackManipulation, Type type, int index) Creates a factory for an argument substitution step.Factory
(StackManipulation stackManipulation, TypeDescription.Generic typeDescription, int index) Creates a factory for an argument substitution step.Factory
(Class<T> annotationType, StackManipulation stackManipulation, TypeDescription.Generic typeDescription) Creates a factory for a given stack manipulation.protected
ForArgumentSubstitution
(StackManipulation substitution, TypeDescription.Generic typeDescription, int index, Assigner assigner, Assigner.Typing typing) Creates an argument substitution step.protected
ForDefaultValue
(TypeDefinition typeDefinition, StackManipulation readAssignment) Creates a new target for a default value.protected
ForField
(FieldDescription fieldDescription, StackManipulation readAssignment) Creates a new target for a field value mapping.protected
ForMethodEnter
(MethodDescription.TypeToken typeToken, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
ForMethodExit
(MethodDescription.TypeToken typeToken, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.ForSerializedValue
(TypeDescription.Generic target, TypeDescription typeDescription, StackManipulation deserialization) Creates a new offset mapping for a serialized value.ForStackManipulation
(StackManipulation stackManipulation, TypeDescription.Generic typeDescription, TypeDescription.Generic targetType, Assigner.Typing typing) Creates an offset mapping that binds a stack manipulation.ForStackManipulation
(StackManipulation stackManipulation) Creates a new target for an offset mapping for a stack manipulation.ForStackManipulation
(StackManipulation stackManipulation, TypeDescription.Generic typeDescription, TypeDescription.Generic targetType) Creates a new offset mapping for a stack manipulation.ForStackManipulation
(StackManipulation stackManipulation) Creates a resolved offset mapping for a stack manipulation.ForValue
(StackManipulation stackManipulation, TypeDescription.Generic typeDescription) Creates a new substitution for loading a constant value.protected
ForVariable
(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment) Creates a new target for a local variable mapping.protected
OfSerializedConstant
(Class<T> annotationType, StackManipulation deserialization, TypeDescription.Generic typeDescription) Creates a factory that creates an offset mapping for a value that is deserialized.ReadOnly
(TypeDefinition typeDefinition, StackManipulation readAssignment) Creates a new -writable target for a default value.ReadOnly
(FieldDescription fieldDescription, StackManipulation readAssignment) Creates a new read-only mapping for a field.ReadOnly
(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment) Creates a read-only mapping for a local variable.ReadWrite
(TypeDefinition typeDefinition, StackManipulation readAssignment) Creates a new read-only target for a default value.ReadWrite
(FieldDescription fieldDescription, StackManipulation readAssignment, StackManipulation writeAssignment) Creates a new target for a writable field.ReadWrite
(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment, StackManipulation writeAssignment) Creates a new target mapping for a writable local variable.protected
Resolved
(Assigner assigner, Assigner.Typing typing, StackManipulation stackManipulation, TypeDescription.Generic typeDescription, TypeDescription.Generic targetType) Creates a resolved offset mapping for a given stack manipulation.Simple
(StackManipulation stackManipulation) Creates a new simple exception handler.Simple
(StackManipulation stackManipulation, Type resultType) Creates a new simple substitution step.Simple
(StackManipulation stackManipulation, TypeDescription.Generic resultType) Creates a new simple substitution step.protected
WithExceptionHandling
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, int writerFlags, int readerFlags, TypeDescription throwable) Creates a new advice visitor that captures exception by weaving try-catch blocks around user code.protected
WithExitAdvice
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags) Creates an advice visitor that applies exit advice.protected
WithoutExceptionHandling
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, int writerFlags, int readerFlags) Creates a new advice visitor that does not capture exceptions.protected
WithoutExitAdvice
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, int writerFlags, int readerFlags) Creates an advice visitor that does not apply exit advice.Writable
(StackManipulation read, StackManipulation write) Creates a writable target.protected
WriteOnly
(FieldDescription fieldDescription, StackManipulation writeAssignment) Creates a write-only mapping for a field value.Constructor parameters in net.bytebuddy.asm with type arguments of type StackManipulationModifierConstructorDescriptionprotected
ForArray
(TypeDescription.Generic target, List<? extends StackManipulation> valueReads) Creates a new target mapping for an array of all local variables.ReadOnly
(TypeDescription.Generic target, List<? extends StackManipulation> valueReads) Creates a read-only target mapping for an array of all local variables.ReadWrite
(TypeDescription.Generic target, List<? extends StackManipulation> valueReads, List<? extends StackManipulation> valueWrites) Creates a writable target mapping for an array of all local variables. -
Uses of StackManipulation in net.bytebuddy.dynamic.scaffold.inline
Classes in net.bytebuddy.dynamic.scaffold.inline that implement StackManipulationModifier and TypeClassDescriptionprotected static class
AImplementation.SpecialMethodInvocation
which invokes a rebased method as given by aMethodRebaseResolver
.Fields in net.bytebuddy.dynamic.scaffold.inline declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulation
RebaseImplementationTarget.RebasedMethodInvocation.stackManipulation
The stack manipulation to execute in order to invoke the rebased method.Constructors in net.bytebuddy.dynamic.scaffold.inline with parameters of type StackManipulationModifierConstructorDescriptionprotected
RebasedMethodInvocation
(MethodDescription.InDefinedShape methodDescription, TypeDescription instrumentedType, StackManipulation stackManipulation, TypeList prependedParameters) Creates a new rebased method invocation. -
Uses of StackManipulation in net.bytebuddy.implementation
Subinterfaces of StackManipulation in net.bytebuddy.implementationModifier and TypeInterfaceDescriptionstatic interface
Represents a type-specific method invocation on the current instrumented type which is not legal from outside the type such as a super method or default method invocation.Classes in net.bytebuddy.implementation that implement StackManipulationModifier and TypeClassDescriptionprotected static class
A conditional return aborts the equality computation if a given condition was reached.protected class
The stack manipulation to apply after the equality computation.protected class
The stack manipulation to apply before the equality computation.protected static enum
A value comparator is responsible to compare to values of a given type.protected class
The stack manipulation to apply after the hash value computation.protected class
The stack manipulation to apply before the hash value computation.protected static enum
A value transformer that is responsible for resolving a field value to anint
value.protected static class
A field cache entry for uniquely identifying a cached field.static class
An abstract base implementation of a valid special method invocation.static enum
A canonical implementation of an illegalImplementation.SpecialMethodInvocation
.static class
A canonical implementation of aImplementation.SpecialMethodInvocation
.protected static enum
A value consumer that is responsible for adding a field value to the string creatingStringBuilder
.Fields in net.bytebuddy.implementation declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulation
Implementation.Context.Default.AccessorMethodDelegation.accessorMethodInvocation
The stack manipulation that represents the requested special method invocation.private final StackManipulation
EqualsMethod.Appender.baseline
The baseline stack manipulation.private final StackManipulation
FixedValue.ForValue.StaticFieldByteCodeAppender.fieldGetAccess
The stack manipulation that loads the fixed value onto the operand stack.private final StackManipulation
Implementation.Context.Default.FieldCacheEntry.fieldValue
The field value that is represented by this field cache entry.private final StackManipulation
HashCodeMethod.Appender.initialValue
Loads the initial hash code onto the operand stack.private final StackManipulation
FieldAccessor.ForSetter.OfConstantValue.stackManipulation
A stack manipulation to load the constant value.private final StackManipulation
Implementation.SpecialMethodInvocation.Simple.stackManipulation
A stack manipulation representing the method's invocation on the type description.private final StackManipulation
InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper.WrappingArgumentProvider.stackManipulation
The stack manipulation that represents the loading of the primitive value.private final StackManipulation
InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.Simple.stackManipulation
A stack manipulation that loads the arguments onto the operand stack.private final StackManipulation
InvokeDynamic.InvocationProvider.Target.Resolved.Simple.stackManipulation
The stack manipulation that loads the arguments onto the operand stack.private final StackManipulation
MethodCall.ArgumentLoader.ForStackManipulation.stackManipulation
The stack manipulation to load.private final StackManipulation
MethodCall.TargetHandler.Simple.stackManipulation
The stack manipulation that loads a target for the method call.private final StackManipulation
FixedValue.ForConstantValue.valueLoadInstruction
The stack manipulation which is responsible for loading the fixed value onto the operand stack.Methods in net.bytebuddy.implementation that return StackManipulationModifier and TypeMethodDescriptionEqualsMethod.NullValueGuard.after()
Returns a stack manipulation to apply after computing equality.EqualsMethod.NullValueGuard.NoOp.after()
Returns a stack manipulation to apply after computing equality.EqualsMethod.NullValueGuard.UsingJump.after()
Returns a stack manipulation to apply after computing equality.HashCodeMethod.NullValueGuard.after()
Returns a stack manipulation to apply after computing a hash value.HashCodeMethod.NullValueGuard.NoOp.after()
Returns a stack manipulation to apply after computing a hash value.HashCodeMethod.NullValueGuard.UsingJump.after()
Returns a stack manipulation to apply after computing a hash value.Implementation.Simple.Dispatcher.apply
(Implementation.Target implementationTarget, MethodDescription instrumentedMethod) Creates a stack manipulation from a simple method dispatch.EqualsMethod.NullValueGuard.before()
Returns a stack manipulation to apply before computing equality.EqualsMethod.NullValueGuard.NoOp.before()
Returns a stack manipulation to apply before computing equality.EqualsMethod.NullValueGuard.UsingJump.before()
Returns a stack manipulation to apply before computing equality.HashCodeMethod.NullValueGuard.before()
Returns a stack manipulation to apply before computing a hash value.HashCodeMethod.NullValueGuard.NoOp.before()
Returns a stack manipulation to apply before computing a hash value.HashCodeMethod.NullValueGuard.UsingJump.before()
Returns a stack manipulation to apply before computing a hash value.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.getLoadInstruction()
Returns a stack manipulation that loads the arguments onto the operand stack.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.Simple.getLoadInstruction()
Returns a stack manipulation that loads the arguments onto the operand stack.InvokeDynamic.InvocationProvider.Target.Resolved.getStackManipulation()
Returns the stack manipulation that loads the arguments onto the operand stack.InvokeDynamic.InvocationProvider.Target.Resolved.Simple.getStackManipulation()
Returns the stack manipulation that loads the arguments onto the operand stack.private StackManipulation
DefaultMethodCall.Appender.locateDefault
(MethodDescription methodDescription) Locates a special method invocation to be invoked from a given method.ExceptionMethod.ConstructionDelegate.ForDefaultConstructor.make()
Creates a stack manipulation that creates pushes all constructor arguments onto the operand stack and subsequently calls the constructor.ExceptionMethod.ConstructionDelegate.ForStringConstructor.make()
Creates a stack manipulation that creates pushes all constructor arguments onto the operand stack and subsequently calls the constructor.ExceptionMethod.ConstructionDelegate.make()
Creates a stack manipulation that creates pushes all constructor arguments onto the operand stack and subsequently calls the constructor.static StackManipulation
EqualsMethod.ValueComparator.of
(TypeDefinition typeDefinition) Resolves a type definition to a equality comparison.static StackManipulation
HashCodeMethod.ValueTransformer.of
(TypeDefinition typeDefinition) Resolves a type definition to a hash code.protected abstract StackManipulation
SuperMethodCall.Appender.TerminationHandler.of
(MethodDescription methodDescription) Creates a stack manipulation that represents this handler's behavior.protected static StackManipulation
ToStringMethod.ValueConsumer.of
(TypeDescription typeDescription) Resolves an appropriate value resolver for a given type.MethodCall.TerminationHandler.FieldSetting.prepare()
Returns a preparing stack manipulation to apply prior to the method call.MethodCall.TerminationHandler.prepare()
Returns a preparing stack manipulation to apply prior to the method call.MethodCall.TerminationHandler.Simple.prepare()
Returns a preparing stack manipulation to apply prior to the method call.MethodDelegation.ImplementationDelegate.Compiled.ForConstruction.prepare
(MethodDescription instrumentedMethod) Resolves a stack manipulation that prepares the delegation invocation.MethodDelegation.ImplementationDelegate.Compiled.ForField.prepare
(MethodDescription instrumentedMethod) Resolves a stack manipulation that prepares the delegation invocation.MethodDelegation.ImplementationDelegate.Compiled.ForMethodReturn.prepare
(MethodDescription instrumentedMethod) Resolves a stack manipulation that prepares the delegation invocation.MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall.prepare
(MethodDescription instrumentedMethod) Resolves a stack manipulation that prepares the delegation invocation.MethodDelegation.ImplementationDelegate.Compiled.prepare
(MethodDescription instrumentedMethod) Resolves a stack manipulation that prepares the delegation invocation.protected abstract StackManipulation
EqualsMethod.SuperClassCheck.resolve
(TypeDescription instrumentedType) Resolves a stack manipulation for the required super class check.protected abstract StackManipulation
EqualsMethod.TypeCompatibilityCheck.resolve
(TypeDescription instrumentedType) Resolves a stack manipulation for the required type compatibility check.protected StackManipulation
FieldAccessor.ForSetter.OfConstantValue.resolve
(Void unused, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfDefaultValue.resolve
(Void initialized, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfFieldValue.resolve
(FieldAccessor.FieldLocation.Prepared target, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfParameterValue.resolve
(Void unused, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfReferenceValue.resolve
(FieldDescription.InDefinedShape target, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected abstract StackManipulation
FieldAccessor.ForSetter.resolve
(T initialized, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected abstract StackManipulation
FieldAccessor.ForSetter.TerminationHandler.resolve
(MethodDescription instrumentedMethod) Resolves the return instruction.HashCodeMethod.OffsetProvider.ForDynamicTypeHash.resolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.HashCodeMethod.OffsetProvider.ForFixedValue.resolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.HashCodeMethod.OffsetProvider.ForStaticTypeHash.resolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.HashCodeMethod.OffsetProvider.ForSuperMethodCall.resolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.HashCodeMethod.OffsetProvider.resolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.protected abstract StackManipulation
InvokeDynamic.TerminationHandler.resolve
(MethodDescription interceptedMethod, TypeDescription returnType, Assigner assigner, Assigner.Typing typing) Returns a stack manipulation that handles the method return.protected StackManipulation
EqualsMethod.ConditionalReturn.returningTrue()
Returns a new stack manipulation that returnstrue
for the given condition.protected StackManipulation
MethodCall.Appender.toStackManipulation
(MethodDescription instrumentedMethod, MethodDescription invokedMethod, MethodCall.TargetHandler.Resolved targetHandler) Resolves this appender to a stack manipulation.MethodCall.ArgumentLoader.ForField.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.ArgumentLoader.ForInstance.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.ArgumentLoader.ForInstrumentedType.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.ArgumentLoader.ForMethodCall.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.ArgumentLoader.ForMethodParameter.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.ArgumentLoader.ForMethodParameterArray.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.ArgumentLoader.ForMethodParameterArrayElement.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.ArgumentLoader.ForNullConstant.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.ArgumentLoader.ForStackManipulation.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.ArgumentLoader.ForThisReference.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.ArgumentLoader.toStackManipulation
(ParameterDescription target, Assigner assigner, Assigner.Typing typing) Loads the argument that is represented by this instance onto the operand stack.MethodCall.MethodInvoker.ForContextualInvocation.toStackManipulation
(MethodDescription invokedMethod, Implementation.Target implementationTarget) Invokes the method.MethodCall.MethodInvoker.ForDefaultMethodInvocation.toStackManipulation
(MethodDescription invokedMethod, Implementation.Target implementationTarget) Invokes the method.MethodCall.MethodInvoker.ForSuperMethodInvocation.toStackManipulation
(MethodDescription invokedMethod, Implementation.Target implementationTarget) Invokes the method.MethodCall.MethodInvoker.ForVirtualInvocation.toStackManipulation
(MethodDescription invokedMethod, Implementation.Target implementationTarget) Invokes the method.MethodCall.MethodInvoker.ForVirtualInvocation.WithImplicitType.toStackManipulation
(MethodDescription invokedMethod, Implementation.Target implementationTarget) Invokes the method.MethodCall.MethodInvoker.toStackManipulation
(MethodDescription invokedMethod, Implementation.Target implementationTarget) Invokes the method.MethodCall.TargetHandler.ForConstructingInvocation.toStackManipulation
(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing) Creates a stack manipulation to represent this resolved target handler.MethodCall.TargetHandler.ForField.toStackManipulation
(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing) Creates a stack manipulation to represent this resolved target handler.MethodCall.TargetHandler.ForMethodCall.Resolved.toStackManipulation
(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing) Creates a stack manipulation to represent this resolved target handler.MethodCall.TargetHandler.ForMethodParameter.Resolved.toStackManipulation
(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing) Creates a stack manipulation to represent this resolved target handler.MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved.toStackManipulation
(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing) Creates a stack manipulation to represent this resolved target handler.MethodCall.TargetHandler.ForValue.toStackManipulation
(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing) Creates a stack manipulation to represent this resolved target handler.MethodCall.TargetHandler.Resolved.toStackManipulation
(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing) Creates a stack manipulation to represent this resolved target handler.MethodCall.TargetHandler.Simple.toStackManipulation
(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing) Creates a stack manipulation to represent this resolved target handler.MethodCall.TerminationHandler.FieldSetting.toStackManipulation
(MethodDescription invokedMethod, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Returns a stack manipulation that handles the method return.MethodCall.TerminationHandler.toStackManipulation
(MethodDescription invokedMethod, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Returns a stack manipulation that handles the method return.Methods in net.bytebuddy.implementation that return types with arguments of type StackManipulationModifier and TypeMethodDescriptionprivate List
<StackManipulation> InvocationHandlerAdapter.argumentValuesOf
(MethodDescription instrumentedMethod) Returns a list of stack manipulations that loads all arguments of an instrumented method.Methods in net.bytebuddy.implementation with parameters of type StackManipulationModifier and TypeMethodDescriptionprotected ByteCodeAppender.Size
FixedValue.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod, TypeDescription.Generic typeDescription, StackManipulation stackManipulation) Blueprint method that for applying the actual implementation.protected ByteCodeAppender.Size
InvocationHandlerAdapter.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod, StackManipulation preparingManipulation, FieldDescription fieldDescription) Applies an implementation that delegates to a invocation handler.Implementation.Context.cache
(StackManipulation fieldValue, TypeDescription fieldType) Caches a single value by storing it in form of aprivate
,final
andstatic
field.Implementation.Context.Default.cache
(StackManipulation fieldValue, TypeDescription fieldType) Caches a single value by storing it in form of aprivate
,final
andstatic
field.Implementation.Context.Disabled.cache
(StackManipulation fieldValue, TypeDescription fieldType) Caches a single value by storing it in form of aprivate
,final
andstatic
field.InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.doResolve
(StackManipulation access, TypeDescription.Generic type, Assigner assigner, Assigner.Typing typing) Resolves this argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.WithExplicitType.doResolve
(StackManipulation access, TypeDescription.Generic typeDescription, Assigner assigner, Assigner.Typing typing) Resolves this argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForMethodParameter.doResolve
(StackManipulation access, TypeDescription.Generic type, Assigner assigner, Assigner.Typing typing) Resolves this argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForMethodParameter.WithExplicitType.doResolve
(StackManipulation access, TypeDescription.Generic type, Assigner assigner, Assigner.Typing typing) Resolves this argument provider.MethodCall.WithoutSpecifiedTarget.on
(StackManipulation stackManipulation, Class<?> type) Invokes the specified method on an instance that is loaded by the provided stack manipulation.MethodCall.WithoutSpecifiedTarget.on
(StackManipulation stackManipulation, TypeDescription typeDescription) Invokes the specified method on an instance that is loaded by the provided stack manipulation.FieldAccessor.ForImplicitProperty.setsValue
(StackManipulation stackManipulation, Type type) Defines a setter of a value that is represented by a stack manipulation.FieldAccessor.ForImplicitProperty.setsValue
(StackManipulation stackManipulation, TypeDescription.Generic typeDescription) Defines a setter of a value that is represented by a stack manipulation.FieldAccessor.PropertyConfigurable.setsValue
(StackManipulation stackManipulation, Type type) Defines a setter of a value that is represented by a stack manipulation.FieldAccessor.PropertyConfigurable.setsValue
(StackManipulation stackManipulation, TypeDescription.Generic typeDescription) Defines a setter of a value that is represented by a stack manipulation.MethodCall.with
(StackManipulation stackManipulation, Type type) Adds a stack manipulation as an assignment to the next parameter.MethodCall.with
(StackManipulation stackManipulation, TypeDefinition typeDefinition) Adds a stack manipulation as an assignment to the next parameter.Constructors in net.bytebuddy.implementation with parameters of type StackManipulationModifierConstructorDescriptionprivate
AccessorMethodDelegation
(MethodDescription.InDefinedShape methodDescription, Visibility visibility, StackManipulation accessorMethodInvocation) Creates a delegation to an accessor method.protected
Appender
(TypeDescription instrumentedType, StackManipulation baseline, List<FieldDescription.InDefinedShape> fieldDescriptions, ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable, ElementMatcher<? super FieldDescription.InDefinedShape> identity) Creates a new appender.protected
Appender
(StackManipulation initialValue, int multiplier, List<FieldDescription.InDefinedShape> fieldDescriptions, ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable, ElementMatcher<? super FieldDescription.InDefinedShape> identity) Creates a new appender for implementing a hash code method.protected
FieldCacheEntry
(StackManipulation fieldValue, TypeDescription fieldType) Creates a new field cache entry.private
ForConstantValue
(Assigner assigner, Assigner.Typing typing, StackManipulation valueLoadInstruction, TypeDescription loadedType) Creates a new constant pool fixed value implementation.protected
ForConstantValue
(StackManipulation valueLoadInstruction, Class<?> loadedType) Creates a new constant pool fixed value implementation.protected
ForConstantValue
(StackManipulation valueLoadInstruction, TypeDescription loadedType) Creates a new constant pool fixed value implementation.ForStackManipulation
(StackManipulation stackManipulation, Type type) Creates an argument loader that loads a stack manipulation as an argument.ForStackManipulation
(StackManipulation stackManipulation, TypeDefinition typeDefinition) Creates an argument loader that loads a stack manipulation as an argument.protected
OfConstantValue
(FieldAccessor.FieldLocation fieldLocation, Assigner assigner, Assigner.Typing typing, FieldAccessor.ForSetter.TerminationHandler terminationHandler, TypeDescription.Generic typeDescription, StackManipulation stackManipulation) Creates a setter instrumentation for setting a constant value.Simple
(StackManipulation... stackManipulation) Creates a new simple instrumentation for the given stack manipulations which are summarized in a byte code appender that defines any requested method by these manipulations.protected
Simple
(MethodDescription methodDescription, TypeDescription typeDescription, StackManipulation stackManipulation) Creates a new legal special method invocation.Simple
(StackManipulation stackManipulation, List<TypeDescription> loadedTypes) Creates a simple resolved argument provider.Simple
(StackManipulation stackManipulation, TypeDescription loadedType) Creates a simple resolved argument provider.Simple
(StackManipulation stackManipulation, String internalName, TypeDescription returnType, List<TypeDescription> parameterTypes) Creates a new simple instance.protected
Simple
(TypeDescription typeDescription, StackManipulation stackManipulation) Creates a simple target handler.protected
WrappingArgumentProvider
(StackManipulation stackManipulation) Creates a new wrapping argument provider. -
Uses of StackManipulation in net.bytebuddy.implementation.auxiliary
Classes in net.bytebuddy.implementation.auxiliary that implement StackManipulationModifier and TypeClassDescriptionstatic class
A stack manipulation that creates aMethodCallProxy
for a given method an pushes such an object onto the call stack.protected static enum
A stack manipulation that throws an abstract method error in case that a given super method cannot be invoked.static class
Creates a type proxy which delegates its super method calls to any invokable default method of a given interface and loads an instance of this proxy onto the operand stack.static class
Loads a type proxy onto the operand stack which is created by calling one of its constructors.static class
Loads a type proxy onto the operand stack which is created by constructing a serialization constructor using the Oracle JDK'sReflectionFactory.newConstructorForSerialization(Class, java.lang.reflect.Constructor)
method which might not be available in any Java runtime.protected class
Stack manipulation for invoking an accessor method.Fields in net.bytebuddy.implementation.auxiliary declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulation
TypeProxy.MethodCall.Appender.fieldLoadingInstruction
The stack manipulation for loading the proxied instance onto the stack.private final StackManipulation
TypeProxy.AbstractMethodErrorThrow.implementation
The stack manipulation that throws the abstract method error. -
Uses of StackManipulation in net.bytebuddy.implementation.bind
Subinterfaces of StackManipulation in net.bytebuddy.implementation.bindModifier and TypeInterfaceDescriptionstatic interface
A binding attempt created by aMethodDelegationBinder
.static interface
A binding attempt for a single parameter.Classes in net.bytebuddy.implementation.bind that implement StackManipulationModifier and TypeClassDescriptionprotected static class
A method binding that was created by aMethodDelegationBinder.MethodBinding.Builder
.static enum
Representation of an attempt to bind a source method to a target method that is not applicable.static class
An anonymous binding of a target method parameter.static enum
A singleton representation of an illegal binding for a method parameter.static class
A uniquely identifiable parameter binding for a target method.Fields in net.bytebuddy.implementation.bind declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulation
MethodDelegationBinder.ParameterBinding.Anonymous.delegate
The stack manipulation that represents the loading of the parameter binding onto the stack.private final StackManipulation
MethodDelegationBinder.ParameterBinding.Unique.delegate
The stack manipulation that represents the loading of the parameter binding onto the stack.private final StackManipulation
MethodDelegationBinder.MethodBinding.Builder.Build.methodInvocation
A stack manipulation that represents the actual method invocation.private final StackManipulation
MethodDelegationBinder.MethodBinding.Builder.Build.terminatingStackManipulation
The stack manipulation that is applied after the method invocation.Fields in net.bytebuddy.implementation.bind with type parameters of type StackManipulationModifier and TypeFieldDescriptionprivate final List
<StackManipulation> MethodDelegationBinder.MethodBinding.Builder.Build.parameterStackManipulations
A list of manipulations that each represent the loading of a parameter value onto the operand stack.private final List
<StackManipulation> MethodDelegationBinder.MethodBinding.Builder.parameterStackManipulations
The current list of stack manipulations for loading values for each parameter onto the operand stack.Methods in net.bytebuddy.implementation.bind that return StackManipulationModifier and TypeMethodDescriptionMethodDelegationBinder.MethodInvoker.invoke
(MethodDescription methodDescription) Creates a method invocation for a given method.MethodDelegationBinder.MethodInvoker.Simple.invoke
(MethodDescription methodDescription) Creates a method invocation for a given method.MethodDelegationBinder.MethodInvoker.Virtual.invoke
(MethodDescription methodDescription) Creates a method invocation for a given method.MethodDelegationBinder.TerminationHandler.resolve
(Assigner assigner, Assigner.Typing typing, MethodDescription source, MethodDescription target) Creates a stack manipulation that is to be applied after the method return.Methods in net.bytebuddy.implementation.bind with parameters of type StackManipulationModifier and TypeMethodDescriptionMethodDelegationBinder.MethodBinding.Builder.build
(StackManipulation terminatingManipulation) Creates a binding that represents the bindings collected by thisBuilder
.static <S> MethodDelegationBinder.ParameterBinding.Unique
<S> MethodDelegationBinder.ParameterBinding.Unique.of
(StackManipulation delegate, S identificationToken) A factory method for creating a unique binding that infers the tokens type.Constructors in net.bytebuddy.implementation.bind with parameters of type StackManipulationModifierConstructorDescriptionAnonymous
(StackManipulation delegate) Creates a new, anonymous parameter binding.protected
Build
(MethodDescription target, Map<?, Integer> registeredTargetIndices, StackManipulation methodInvocation, List<StackManipulation> parameterStackManipulations, StackManipulation terminatingStackManipulation) Creates a new method binding.Unique
(StackManipulation delegate, T identificationToken) Creates a new unique parameter binding representant.Constructor parameters in net.bytebuddy.implementation.bind with type arguments of type StackManipulationModifierConstructorDescriptionprotected
Build
(MethodDescription target, Map<?, Integer> registeredTargetIndices, StackManipulation methodInvocation, List<StackManipulation> parameterStackManipulations, StackManipulation terminatingStackManipulation) Creates a new method binding. -
Uses of StackManipulation in net.bytebuddy.implementation.bind.annotation
Classes in net.bytebuddy.implementation.bind.annotation that implement StackManipulationModifier and TypeClassDescriptionprotected static class
Loads the delegation method constant onto the stack.protected static class
A proxy type for accessing a field either by a getter or a setter.protected static class
A proxy that implements the installed interface in order to allow for a morphed super method invocation.protected static class
An auxiliary type for performing the redirection of a method invocation as requested by thePipe
annotation.protected static class
Loads the delegation method constant onto the stack.Methods in net.bytebuddy.implementation.bind.annotation that return StackManipulationModifier and TypeMethodDescriptionprivate static StackManipulation
Origin.Binder.methodConstant
(AnnotationDescription.Loadable<Origin> annotation, MethodDescription.InDefinedShape methodDescription) Loads a method constant onto the operand stack.protected abstract StackManipulation
Super.Instantiation.proxyFor
(TypeDescription proxyType, Implementation.Target implementationTarget, AnnotationDescription.Loadable<Super> annotation) Creates a stack manipulation which loads asuper
-call proxy onto the stack. -
Uses of StackManipulation in net.bytebuddy.implementation.bytecode
Classes in net.bytebuddy.implementation.bytecode that implement StackManipulationModifier and TypeClassDescriptionenum
A stack manipulation that adds two numbers on the operand stack.enum
A stack manipulation that divides two numbers on the operand stack.enum
Duplicates a value that is lying on top of the stack.protected static enum
A duplication that flips a value over the second value on the operand stack.enum
A stack manipulation that multiplies two numbers on the operand stack.enum
A stack manipulation that computes the remainder two numbers on the operand stack.enum
Removes a value from the operand stack.enum
A stack manipulation that shifts left two numbers on the operand stack.enum
A stack manipulation that shifts right two numbers on the operand stack.protected static enum
A stack manipulation that shifts right unsigned two numbers on the operand stack.static class
An abstract base implementation of a valid stack manipulation.static class
An immutable stack manipulation that aggregates a sequence of other stack manipulations.static enum
Canonical representation of an illegal stack manipulation.static class
An implementation ofStackManipulation
that simplifies functional invocations via lambda expressions.static enum
Canonical representation of a legal stack manipulation which does not require any action.enum
A stack manipulation that subtracts two numbers on the operand stack.enum
Throws aThrowable
which must lie on top of the stack when this stack manipulation is called.class
A stack manipulation for creating an undefined type on which a constructor is to be called.Fields in net.bytebuddy.implementation.bytecode declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulation
ByteCodeAppender.Simple.stackManipulation
A compound stack manipulation to be applied for this byte code appender.private final StackManipulation
ShiftRight.unsigned
The unsigned equivalent of this operation.Fields in net.bytebuddy.implementation.bytecode with type parameters of type StackManipulationModifier and TypeFieldDescriptionprivate final List
<StackManipulation> StackManipulation.Compound.stackManipulations
The stack manipulations this compound operation represents in their application order.Methods in net.bytebuddy.implementation.bytecode that return StackManipulationModifier and TypeMethodDescriptionabstract StackManipulation
Duplication.flipOver
(TypeDefinition typeDefinition) Creates a duplication that flips the stack's top value over the second stack element.static StackManipulation
Removal.of
(TypeDefinition typeDefinition) Removes a value from the operand stack dependant of its size.static StackManipulation
TypeCreation.of
(TypeDescription typeDescription) Creates a type creation for the given type.ShiftRight.toUnsigned()
Returns the unsigned equivalent of this operation.Constructors in net.bytebuddy.implementation.bytecode with parameters of type StackManipulationModifierConstructorDescriptionCompound
(StackManipulation... stackManipulation) Creates a new compound stack manipulation.private
ShiftRight
(int opcode, StackSize stackSize, StackManipulation unsigned) Creates a new shift right.Simple
(StackManipulation... stackManipulation) Creates a new simple byte code appender which represents the given stack manipulation.Constructor parameters in net.bytebuddy.implementation.bytecode with type arguments of type StackManipulationModifierConstructorDescriptionCompound
(List<? extends StackManipulation> stackManipulations) Creates a new compound stack manipulation.Simple
(List<? extends StackManipulation> stackManipulations) Creates a new simple byte code appender which represents the given stack manipulation. -
Uses of StackManipulation in net.bytebuddy.implementation.bytecode.assign
Classes in net.bytebuddy.implementation.bytecode.assign that implement StackManipulationModifier and TypeClassDescriptionclass
Implements aninstanceof
check.class
A stack manipulation for a type down casting.Methods in net.bytebuddy.implementation.bytecode.assign that return StackManipulationModifier and TypeMethodDescriptionAssigner.assign
(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing) Assigner.Refusing.assign
(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing) static StackManipulation
InstanceCheck.of
(TypeDescription typeDescription) Creates a new instance check.static StackManipulation
TypeCasting.to
(TypeDefinition typeDefinition) Creates a casting to the given, non-primitive type. -
Uses of StackManipulation in net.bytebuddy.implementation.bytecode.assign.primitive
Classes in net.bytebuddy.implementation.bytecode.assign.primitive that implement StackManipulationModifier and TypeClassDescriptionprivate class
A stack manipulation for boxing a primitive type into its wrapper type.enum
This delegate is responsible for unboxing a wrapper type to their primitive equivalents.protected static class
A stack manipulation that widens a primitive type into a more general primitive type.Fields in net.bytebuddy.implementation.bytecode.assign.primitive declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulation
PrimitiveBoxingDelegate.BoxingStackManipulation.stackManipulation
A stack manipulation that is applied after the boxing of the top-most value on the operand stack.private final StackManipulation
PrimitiveWideningDelegate.toBooleanStackManipulation
A stack manipulation that widens the type that is represented by this instance to aboolean
.private final StackManipulation
PrimitiveWideningDelegate.toByteStackManipulation
A stack manipulation that widens the type that is represented by this instance to abyte
.private final StackManipulation
PrimitiveWideningDelegate.toCharacterStackManipulation
A stack manipulation that widens the type that is represented by this instance to achar
.private final StackManipulation
PrimitiveWideningDelegate.toDoubleStackManipulation
A stack manipulation that widens the type that is represented by this instance to adouble
.private final StackManipulation
PrimitiveWideningDelegate.toFloatStackManipulation
A stack manipulation that widens the type that is represented by this instance to afloat
.private final StackManipulation
PrimitiveWideningDelegate.toIntegerStackManipulation
A stack manipulation that widens the type that is represented by this instance to aint
.private final StackManipulation
PrimitiveWideningDelegate.toLongStackManipulation
A stack manipulation that widens the type that is represented by this instance to along
.private final StackManipulation
PrimitiveWideningDelegate.toShortStackManipulation
A stack manipulation that widens the type that is represented by this instance to ashort
.Methods in net.bytebuddy.implementation.bytecode.assign.primitive that return StackManipulationModifier and TypeMethodDescriptionPrimitiveTypeAwareAssigner.assign
(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing) VoidAwareAssigner.assign
(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing) PrimitiveBoxingDelegate.assignBoxedTo
(TypeDescription.Generic target, Assigner chainedAssigner, Assigner.Typing typing) Creates a stack manipulation that boxes the represented primitive type and applies a chained assignment to the result of this boxing operation.PrimitiveUnboxingDelegate.ExplicitlyTypedUnboxingResponsible.assignUnboxedTo
(TypeDescription.Generic targetType, Assigner assigner, Assigner.Typing typing) Attempts to unbox the represented type in order to assign the unboxed value to the given target type while using the assigner that is provided by the method call.PrimitiveUnboxingDelegate.ImplicitlyTypedUnboxingResponsible.assignUnboxedTo
(TypeDescription.Generic target, Assigner assigner, Assigner.Typing typing) Attempts to unbox the represented type in order to assign the unboxed value to the given target type while using the assigner that is provided by the method call.PrimitiveUnboxingDelegate.UnboxingResponsible.assignUnboxedTo
(TypeDescription.Generic target, Assigner assigner, Assigner.Typing typing) Attempts to unbox the represented type in order to assign the unboxed value to the given target type while using the assigner that is provided by the method call.PrimitiveWideningDelegate.widenTo
(TypeDefinition typeDefinition) Attempts to widen the represented type into another type.Constructors in net.bytebuddy.implementation.bytecode.assign.primitive with parameters of type StackManipulationModifierConstructorDescriptionBoxingStackManipulation
(StackManipulation stackManipulation) Creates a new boxing stack manipulation.private
PrimitiveWideningDelegate
(StackManipulation toBooleanStackManipulation, StackManipulation toByteStackManipulation, StackManipulation toShortStackManipulation, StackManipulation toCharacterStackManipulation, StackManipulation toIntegerStackManipulation, StackManipulation toLongStackManipulation, StackManipulation toFloatStackManipulation, StackManipulation toDoubleStackManipulation) Creates a new primitive widening delegate. -
Uses of StackManipulation in net.bytebuddy.implementation.bytecode.assign.reference
Methods in net.bytebuddy.implementation.bytecode.assign.reference that return StackManipulationModifier and TypeMethodDescriptionGenericTypeAwareAssigner.assign
(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing) ReferenceTypeAwareAssigner.assign
(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing) -
Uses of StackManipulation in net.bytebuddy.implementation.bytecode.collection
Subinterfaces of StackManipulation in net.bytebuddy.implementation.bytecode.collectionModifier and TypeInterfaceDescriptionprotected static interface
An array creator is responsible for providing correct byte code instructions for creating an array and for storing values into it.Classes in net.bytebuddy.implementation.bytecode.collection that implement StackManipulationModifier and TypeClassDescriptionprotected class
A stack manipulation for loading an array's value.protected class
A stack manipulation for storing an array's value.static enum
An array creator implementation for primitive types.static class
An array creator implementation for reference types.protected class
A stack manipulation for creating an array as defined by the enclosing array factory.enum
Allows accessing the length of the array.Fields in net.bytebuddy.implementation.bytecode.collection with type parameters of type StackManipulationModifier and TypeFieldDescriptionprivate final List
<? extends StackManipulation> ArrayFactory.ArrayStackManipulation.stackManipulations
A list of value load instructions that are to be stored inside the created array.Methods in net.bytebuddy.implementation.bytecode.collection that return StackManipulationModifier and TypeMethodDescriptionArrayAccess.forEach
(List<? extends StackManipulation> processInstructions) Applies a stack manipulation to the values of an array.ArrayAccess.load()
Creates a value-loading stack manipulation.ArrayAccess.store()
Creates a value-storing stack manipulation.ArrayFactory.withValues
(List<? extends StackManipulation> stackManipulations) Applies this collection factory in order to build a new collection where each element is represented by the given stack manipulations.CollectionFactory.withValues
(List<? extends StackManipulation> stackManipulations) Applies this collection factory in order to build a new collection where each element is represented by the given stack manipulations.Method parameters in net.bytebuddy.implementation.bytecode.collection with type arguments of type StackManipulationModifier and TypeMethodDescriptionArrayAccess.forEach
(List<? extends StackManipulation> processInstructions) Applies a stack manipulation to the values of an array.ArrayFactory.withValues
(List<? extends StackManipulation> stackManipulations) Applies this collection factory in order to build a new collection where each element is represented by the given stack manipulations.CollectionFactory.withValues
(List<? extends StackManipulation> stackManipulations) Applies this collection factory in order to build a new collection where each element is represented by the given stack manipulations.Constructor parameters in net.bytebuddy.implementation.bytecode.collection with type arguments of type StackManipulationModifierConstructorDescriptionprotected
ArrayStackManipulation
(List<? extends StackManipulation> stackManipulations) Creates a new array loading instruction. -
Uses of StackManipulation in net.bytebuddy.implementation.bytecode.constant
Subinterfaces of StackManipulation in net.bytebuddy.implementation.bytecode.constantModifier and TypeInterfaceDescriptionstatic interface
Represents aMethodConstant
that is directly loaded onto the operand stack without caching the value.Classes in net.bytebuddy.implementation.bytecode.constant that implement StackManipulationModifier and TypeClassDescriptionenum
Represents a constant representing any loaded JavaClass
.protected static class
A class constant for a non-primitiveClass
.enum
Represents a stack assignment that loads the default value of a given type onto the stack.enum
This class is responsible for loading anydouble
constant onto the operand stack.protected static class
A stack manipulation for loading adouble
value from a class's constant pool onto the operand stack.class
Represents aField
constant for a given type.protected static class
A cached version of aFieldConstant
.enum
This class is responsible for loading anyfloat
constant onto the operand stack.protected static class
A stack manipulation for loading afloat
value from a class's constant pool onto the operand stack.enum
This class is responsible for loading anyint
constant onto the operand stack.protected static class
A stack manipulation that loads a JVM-integer value from a constant pool value onto the operand stack.protected static class
A stack manipulation that loads a JVM-integer value by aBIPUSH
operation which is legal for single byte integer values.protected static class
A stack manipulation that loads a JVM-integer value by aSIPUSH
operation which is legal for up to two byte integer values.class
A constant representing aJavaConstant
.enum
This class is responsible for loading anylong
constant onto the operand stack.protected static class
A stack manipulation for loading along
value from a class's constant pool onto the operand stack.class
Represents the creation of aMethod
value which can be created from a given set of constant pool values and can therefore be considered a constant in the broader meaning.protected static class
Represents a cached constructor for aMethodConstant
.protected static class
Represents a cached method for aMethodConstant
.protected static enum
Represents a method constant that cannot be represented by Java's reflection API.protected static class
Creates aMethodConstant
for loading aConstructor
instance onto the operand stack.protected static class
Creates aMethodConstant
for loading aMethod
instance onto the operand stack.protected static class
Performs a privileged lookup of a method constant by using anjava.security.AccessController
.enum
Represents a stack manipulation to load anull
pointer onto the operand stack.class
A constant that represents a value in its serialized form.class
Represents aString
value that is stored in a type's constant pool.Fields in net.bytebuddy.implementation.bytecode.constant declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulation
MethodConstant.CachedConstructor.constructorConstant
The stack manipulation that is represented by this caching wrapper.private final StackManipulation
FieldConstant.Cached.fieldConstant
The field constant stack manipulation.private final StackManipulation
MethodConstant.CachedMethod.methodConstant
The stack manipulation that is represented by this caching wrapper.private final StackManipulation
MethodConstant.PrivilegedLookup.methodName
The stack manipulation for locating the method name.private final StackManipulation
DefaultValue.stackManipulation
The stack manipulation that represents the loading of a given default value onto the operand stack.Methods in net.bytebuddy.implementation.bytecode.constant that return StackManipulationModifier and TypeMethodDescriptionFieldConstant.cached()
Returns a cached version of this field constant.MethodConstant.CanCache.cached()
Returns this method constant as a cached version.MethodConstant.CanCacheIllegal.cached()
Returns this method constant as a cached version.MethodConstant.ForConstructor.cached()
Returns this method constant as a cached version.MethodConstant.ForMethod.cached()
Returns this method constant as a cached version.MethodConstant.PrivilegedLookup.cached()
Returns this method constant as a cached version.static StackManipulation
DoubleConstant.forValue
(double value) Creates a stack manipulation for loading adouble
value onto the operand stack.static StackManipulation
FloatConstant.forValue
(float value) Creates a stack manipulation for loading afloat
value onto the operand stack.static StackManipulation
IntegerConstant.forValue
(boolean value) Creates a stack manipulation for loading a boolean value onto the stack.static StackManipulation
IntegerConstant.forValue
(int value) Creates a stack manipulation for loading anint
value onto the stack.static StackManipulation
LongConstant.forValue
(long value) Creates a stack manipulation for loading along
value onto the operand stack.protected StackManipulation
MethodConstant.ForConstructor.methodName()
protected StackManipulation
MethodConstant.ForMethod.methodName()
protected abstract StackManipulation
MethodConstant.methodName()
Returns a stack manipulation that loads the method name onto the operand stack if this is required.static StackManipulation
ClassConstant.of
(TypeDescription typeDescription) Returns a stack manipulation that loads aClass
type onto the operand stack which represents the given type.static StackManipulation
DefaultValue.of
(TypeDefinition typeDefinition) Creates a stack assignment that loads the default value for a given type.static StackManipulation
SerializedConstant.of
(Serializable value) Creates a new stack manipulation to load the supplied value onto the stack.Methods in net.bytebuddy.implementation.bytecode.constant that return types with arguments of type StackManipulationModifier and TypeMethodDescriptionprotected static List
<StackManipulation> MethodConstant.typeConstantsFor
(List<TypeDescription> parameterTypes) Returns a list of type constant load operations for the given list of parameters.Constructors in net.bytebuddy.implementation.bytecode.constant with parameters of type StackManipulationModifierConstructorDescriptionCached
(StackManipulation fieldConstant) Creates a new cached version of a field constant.protected
CachedConstructor
(StackManipulation constructorConstant) Creates a new cachedMethodConstant
.protected
CachedMethod
(StackManipulation methodConstant) Creates a new cachedMethodConstant
.private
DefaultValue
(StackManipulation stackManipulation) Creates a new default value load operation.protected
PrivilegedLookup
(MethodDescription.InDefinedShape methodDescription, StackManipulation methodName) Creates a new privileged lookup. -
Uses of StackManipulation in net.bytebuddy.implementation.bytecode.member
Subinterfaces of StackManipulation in net.bytebuddy.implementation.bytecode.memberModifier and TypeInterfaceDescriptionstatic interface
Represents a method invocation where the invocation type (static, virtual, special, interface) is derived from the given method's description.Classes in net.bytebuddy.implementation.bytecode.member that implement StackManipulationModifier and TypeClassDescriptionprivate class
An abstract base implementation for accessing a field value.protected class
A reading field access operation.protected class
A writing field access operation.class
An exact invocation of a method handle with a polymorphic signature.class
A stack manipulation for an invokedynamic invocation.protected static class
Performs a method invocation on a method handle with a polymorphic type signature.protected static enum
An illegal implicit method invocation.protected class
An implementation of a method invoking stack manipulation.protected static class
A method invocation of a generically resolved method.enum
A stack manipulation returning a value of a given type.static class
A stack manipulation that loads all parameters of a given method onto the operand stack.protected static class
A stack manipulation that increments an integer variable.protected class
A stack manipulation for loading a variable of a method's local variable array onto the operand stack.protected class
A stack manipulation for storing a variable into a method's local variable array.Methods in net.bytebuddy.implementation.bytecode.member that return StackManipulationModifier and TypeMethodDescriptionMethodInvocation.IllegalInvocation.dynamic
(String methodName, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.MethodInvocation.Invocation.dynamic
(String name, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.MethodInvocation.OfGenericMethod.dynamic
(String methodName, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.MethodInvocation.WithImplicitInvocationTargetType.dynamic
(String methodName, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.static StackManipulation
FieldAccess.forEnumeration
(EnumerationDescription enumerationDescription) Creates an accessor to read an enumeration value.MethodVariableAccess.increment
(int offset, int value) Creates a stack assignment for incrementing the given offset of the local variable array.static StackManipulation
MethodVariableAccess.increment
(ParameterDescription parameterDescription, int value) Increments the value of the supplied parameter.static StackManipulation
MethodVariableAccess.load
(ParameterDescription parameterDescription) Loads a parameter's value onto the operand stack.MethodVariableAccess.loadFrom
(int offset) Creates a stack assignment for a reading given offset of the local variable array.static StackManipulation
MethodVariableAccess.loadThis()
Loads a reference to thethis
reference what is only meaningful for a non-static method.static StackManipulation
MethodInvocation.lookup()
Returns a method invocation ofjava.lang.invoke.MethodHandles#lookup()
.static StackManipulation
MethodReturn.of
(TypeDefinition typeDefinition) Returns a method return corresponding to a given type.MethodVariableAccess.MethodLoading.TypeCastingHandler.ForBridgeTarget.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.MethodVariableAccess.MethodLoading.TypeCastingHandler.NoOp.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.MethodVariableAccess.MethodLoading.TypeCastingHandler.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.MethodInvocation.IllegalInvocation.onHandle
(MethodInvocation.HandleType type) Invokes the method via aMethodHandle
.MethodInvocation.Invocation.onHandle
(MethodInvocation.HandleType type) Invokes the method via aMethodHandle
.MethodInvocation.OfGenericMethod.onHandle
(MethodInvocation.HandleType type) Invokes the method via aMethodHandle
.MethodInvocation.WithImplicitInvocationTargetType.onHandle
(MethodInvocation.HandleType type) Invokes the method via aMethodHandle
.MethodVariableAccess.MethodLoading.prependThisReference()
Prepends a reference to thethis
instance to the loaded parameters if the represented method is non-static.FieldAccess.AccessDispatcher.read()
Creates a getter representation for a given field.FieldAccess.Defined.read()
Creates a getter representation for a given field.FieldAccess.OfGenericField.read()
Creates a getter representation for a given field.MethodInvocation.IllegalInvocation.special
(TypeDescription invocationTarget) Transforms this method invocation into a special invocation on the given type.MethodInvocation.Invocation.special
(TypeDescription invocationTarget) Transforms this method invocation into a special invocation on the given type.MethodInvocation.OfGenericMethod.special
(TypeDescription invocationTarget) Transforms this method invocation into a special invocation on the given type.MethodInvocation.WithImplicitInvocationTargetType.special
(TypeDescription invocationTarget) Transforms this method invocation into a special invocation on the given type.static StackManipulation
MethodVariableAccess.store
(ParameterDescription parameterDescription) Stores the top operand stack value at the supplied parameter.MethodVariableAccess.storeAt
(int offset) Creates a stack assignment for writing to a given offset of the local variable array.MethodInvocation.IllegalInvocation.virtual
(TypeDescription invocationTarget) Transforms this method invocation into a virtual (or interface) method invocation on the given type.MethodInvocation.Invocation.virtual
(TypeDescription invocationTarget) Transforms this method invocation into a virtual (or interface) method invocation on the given type.MethodInvocation.OfGenericMethod.virtual
(TypeDescription invocationTarget) Transforms this method invocation into a virtual (or interface) method invocation on the given type.MethodInvocation.WithImplicitInvocationTargetType.virtual
(TypeDescription invocationTarget) Transforms this method invocation into a virtual (or interface) method invocation on the given type.FieldAccess.AccessDispatcher.write()
Creates a setter representation for a given field.FieldAccess.Defined.write()
Creates a setter representation for a given field.FieldAccess.OfGenericField.write()
Creates a setter representation for a given field. -
Uses of StackManipulation in net.bytebuddy.utility
Fields in net.bytebuddy.utility declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulation
ConstantValue.Simple.stackManipulation
A stack manipulation that loads a constant.Methods in net.bytebuddy.utility that return StackManipulationModifier and TypeMethodDescriptionConstantValue.Simple.toStackManipulation()
Returns a stack manipulation loading this value.ConstantValue.toStackManipulation()
Returns a stack manipulation loading this value.JavaConstant.Dynamic.toStackManipulation()
Returns a stack manipulation loading this value.JavaConstant.MethodHandle.toStackManipulation()
Returns a stack manipulation loading this value.JavaConstant.MethodType.toStackManipulation()
Returns a stack manipulation loading this value.JavaConstant.Simple.OfTrivialValue.ForDouble.toStackManipulation()
Returns a stack manipulation loading this value.JavaConstant.Simple.OfTrivialValue.ForFloat.toStackManipulation()
Returns a stack manipulation loading this value.JavaConstant.Simple.OfTrivialValue.ForInteger.toStackManipulation()
Returns a stack manipulation loading this value.JavaConstant.Simple.OfTrivialValue.ForLong.toStackManipulation()
Returns a stack manipulation loading this value.JavaConstant.Simple.OfTrivialValue.ForString.toStackManipulation()
Returns a stack manipulation loading this value.JavaConstant.Simple.OfTypeDescription.toStackManipulation()
Returns a stack manipulation loading this value.Constructors in net.bytebuddy.utility with parameters of type StackManipulationModifierConstructorDescriptionprotected
Simple
(StackManipulation stackManipulation, TypeDescription typeDescription) Creates a simple constant value.