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
StackManipulations
that create collections or arrays from a given number of values.StackManipulations in this package are responsible for
creating compile-time constants and pushing them onto the operand stack.StackManipulations 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 StackManipulationByteBuddy.RecordObjectMethod.stackManipulationThe stack manipulation to append to the arguments.Constructors in net.bytebuddy with parameters of type StackManipulationModifierConstructorDescriptionprivateRecordObjectMethod(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 classAn 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 classA stack manipulation that applies a null-check on the returned value which indicates if an assignment should be skipped, if discovered.protected static classAn exception handler to handle exceptions during assignment.Fields in net.bytebuddy.asm declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulationAdvice.OffsetMapping.ForSerializedValue.deserializationThe stack manipulation deserializing the represented value.private final StackManipulationAdvice.OffsetMapping.ForSerializedValue.Factory.deserializationThe stack manipulation that loads the represented value.private final StackManipulationMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfSerializedConstant.deserializationA stack manipulation that represents the deserialization.private final StackManipulationAdvice.AssignReturned.ExceptionHandler.exceptionHandlerThe exception handler to apply.private final StackManipulationAdvice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.exceptionHandlerThe exception handler that is resolved for the instrumented method.private final StackManipulationAdvice.Dispatcher.Inlining.CodeTranslationVisitor.exceptionHandlerThe exception handler that is resolved for the instrumented method.protected final StackManipulationAdvice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.exceptionHandlerThe exception handler that is resolved for the instrumented method.private final StackManipulationAdvice.Dispatcher.SuppressionHandler.Suppressing.Bound.exceptionHandlerThe stack manipulation to apply within a suppression handler.private final StackManipulationAdvice.OffsetMapping.Target.ForStackManipulation.Writable.readThe reading stack manipulation.protected final StackManipulationAdvice.OffsetMapping.Target.ForDefaultValue.readAssignmentA stack manipulation to apply after a read instruction.protected final StackManipulationAdvice.OffsetMapping.Target.ForField.readAssignmentThe stack manipulation to apply upon a read.protected final StackManipulationAdvice.OffsetMapping.Target.ForVariable.readAssignmentAn assignment to execute upon reading a value.private final StackManipulationAdvice.AssignReturned.DefaultValueSkip.stackManipulationThe wrapped stack manipulation in case the value is not a default value.private final StackManipulationAdvice.AssignReturned.ExceptionHandler.stackManipulationThe stack manipulation that represents the assignment.private final StackManipulationAdvice.ExceptionHandler.Simple.stackManipulationThe stack manipulation to execute.private final StackManipulationAdvice.OffsetMapping.ForStackManipulation.Factory.stackManipulationThe stack manipulation that loads the bound value.private final StackManipulationAdvice.OffsetMapping.ForStackManipulation.stackManipulationThe stack manipulation that loads the bound value.private final StackManipulationAdvice.OffsetMapping.Target.ForStackManipulation.stackManipulationThe represented stack manipulation.private final StackManipulationMemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory.stackManipulationThe stack manipulation that loads the substituted argument.private final StackManipulationMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.Factory.stackManipulationThe stack manipulation that produces the assigned value.private final StackManipulationMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.Resolved.stackManipulationThe stack manipulation to apply.private final StackManipulationMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.stackManipulationThe stack manipulation to apply.private final StackManipulationMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved.ForStackManipulation.stackManipulationThe stack manipulation to load.private final StackManipulationMemberSubstitution.Substitution.Chain.Step.Simple.stackManipulationThe stack manipulation to apply.private final StackManipulationMemberSubstitution.Substitution.ForValue.stackManipulationThe stack manipulation to load the value that represents the substitution.private final StackManipulationMemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.substitutionThe stack manipulation that loads the substituted argument.private final StackManipulationAdvice.OffsetMapping.Target.ForStackManipulation.Writable.writeThe writing stack manipulation.private final StackManipulationAdvice.OffsetMapping.Target.ForField.ReadWrite.writeAssignmentAn assignment to apply prior to a field write.private final StackManipulationAdvice.OffsetMapping.Target.ForField.WriteOnly.writeAssignmentAn assignment to apply prior to a field write.private final StackManipulationAdvice.OffsetMapping.Target.ForVariable.ReadWrite.writeAssignmentA 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.valueReadsThe stack manipulations to apply upon reading a variable array.private final List<? extends StackManipulation> Advice.OffsetMapping.Target.ForArray.ReadWrite.valueWritesThe 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 StackManipulationAdvice.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 StackManipulationAdvice.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 StackManipulationMemberSubstitution.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(S target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.protected abstract StackManipulationMemberSubstitution.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(T 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 StackManipulationAdvice.AssignReturned.ForArray.toLoadInstruction(Advice.AssignReturned.Handler handler, int offset) protected StackManipulationAdvice.AssignReturned.ForScalar.toLoadInstruction(Advice.AssignReturned.Handler handler, int offset) protected abstract StackManipulationAdvice.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.MethodVisitorAdvice.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.MethodVisitorAdvice.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.MethodVisitorAdvice.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 StackManipulationAdvice.OffsetMapping.ForSelfCallHandle.decorate(MethodDescription methodDescription, StackManipulation stackManipulation) Resolves a stack manipulation.protected org.objectweb.asm.MethodVisitorAdvice.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.MethodVisitorAdvice.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.MethodVisitorAdvice.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.BoundAdvice.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.BoundAdvice.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.BoundAdvice.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.ResolutionMemberSubstitution.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 StackManipulationAdvice.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.BoundAdvice.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.BoundAdvice.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.BoundAdvice.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(S 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(U 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(T 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 StackManipulationModifierConstructorDescriptionprotectedAdviceMethodInliner(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.protectedAdviceMethodWriter(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.protectedAdviceVisitor(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.protectedBound(TypeDescription suppressedType, StackManipulation exceptionHandler) Creates a new active, bound suppression handler.protectedCodeTranslationVisitor(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.protectedDefaultValueSkip(StackManipulation stackManipulation, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, int offset, Advice.AssignReturned.DefaultValueSkip.Dispatcher dispatcher) Creates a null-check wrapper.protectedExceptionHandler(StackManipulation stackManipulation, StackManipulation exceptionHandler, TypeDescription exceptionType, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Creates a new exception handler for an assignment.protectedFactory(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.protectedForArgumentSubstitution(StackManipulation substitution, TypeDescription.Generic typeDescription, int index, Assigner assigner, Assigner.Typing typing) Creates an argument substitution step.protectedForDefaultValue(TypeDefinition typeDefinition, StackManipulation readAssignment) Creates a new target for a default value.protectedForField(FieldDescription fieldDescription, StackManipulation readAssignment) Creates a new target for a field value mapping.protectedForMethodEnter(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.protectedForMethodExit(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.protectedForVariable(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment) Creates a new target for a local variable mapping.protectedOfSerializedConstant(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.protectedResolved(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.protectedWithExceptionHandling(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.protectedWithExitAdvice(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.protectedWithoutExceptionHandling(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.protectedWithoutExitAdvice(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.protectedWriteOnly(FieldDescription fieldDescription, StackManipulation writeAssignment) Creates a write-only mapping for a field value.Constructor parameters in net.bytebuddy.asm with type arguments of type StackManipulationModifierConstructorDescriptionprotectedForArray(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 classAImplementation.SpecialMethodInvocationwhich invokes a rebased method as given by aMethodRebaseResolver.Fields in net.bytebuddy.dynamic.scaffold.inline declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulationRebaseImplementationTarget.RebasedMethodInvocation.stackManipulationThe stack manipulation to execute in order to invoke the rebased method.Constructors in net.bytebuddy.dynamic.scaffold.inline with parameters of type StackManipulationModifierConstructorDescriptionprotectedRebasedMethodInvocation(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 interfaceRepresents 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 classA conditional return aborts the equality computation if a given condition was reached.protected classThe stack manipulation to apply after the equality computation.protected classThe stack manipulation to apply before the equality computation.protected static enumA value comparator is responsible to compare to values of a given type.protected classThe stack manipulation to apply after the hash value computation.protected classThe stack manipulation to apply before the hash value computation.protected static enumA value transformer that is responsible for resolving a field value to anintvalue.protected static classA field cache entry for uniquely identifying a cached field.static classAn abstract base implementation of a valid special method invocation.static enumA canonical implementation of an illegalImplementation.SpecialMethodInvocation.static classA canonical implementation of aImplementation.SpecialMethodInvocation.protected static enumA 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 StackManipulationImplementation.Context.Default.AccessorMethodDelegation.accessorMethodInvocationThe stack manipulation that represents the requested special method invocation.private final StackManipulationEqualsMethod.Appender.baselineThe baseline stack manipulation.private final StackManipulationFixedValue.ForValue.StaticFieldByteCodeAppender.fieldGetAccessThe stack manipulation that loads the fixed value onto the operand stack.private final StackManipulationImplementation.Context.Default.FieldCacheEntry.fieldValueThe field value that is represented by this field cache entry.private final StackManipulationHashCodeMethod.Appender.initialValueLoads the initial hash code onto the operand stack.private final StackManipulationFieldAccessor.ForSetter.OfConstantValue.stackManipulationA stack manipulation to load the constant value.private final StackManipulationImplementation.SpecialMethodInvocation.Simple.stackManipulationA stack manipulation representing the method's invocation on the type description.private final StackManipulationInvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper.WrappingArgumentProvider.stackManipulationThe stack manipulation that represents the loading of the primitive value.private final StackManipulationInvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.Simple.stackManipulationA stack manipulation that loads the arguments onto the operand stack.private final StackManipulationInvokeDynamic.InvocationProvider.Target.Resolved.Simple.stackManipulationThe stack manipulation that loads the arguments onto the operand stack.private final StackManipulationMethodCall.ArgumentLoader.ForStackManipulation.stackManipulationThe stack manipulation to load.private final StackManipulationMethodCall.TargetHandler.Simple.stackManipulationThe stack manipulation that loads a target for the method call.private final StackManipulationFixedValue.ForConstantValue.valueLoadInstructionThe 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 StackManipulationDefaultMethodCall.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 StackManipulationEqualsMethod.ValueComparator.of(TypeDefinition typeDefinition) Resolves a type definition to a equality comparison.static StackManipulationHashCodeMethod.ValueTransformer.of(TypeDefinition typeDefinition) Resolves a type definition to a hash code.protected abstract StackManipulationSuperMethodCall.Appender.TerminationHandler.of(MethodDescription methodDescription) Creates a stack manipulation that represents this handler's behavior.protected static StackManipulationToStringMethod.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 StackManipulationEqualsMethod.SuperClassCheck.resolve(TypeDescription instrumentedType) Resolves a stack manipulation for the required super class check.protected abstract StackManipulationEqualsMethod.TypeCompatibilityCheck.resolve(TypeDescription instrumentedType) Resolves a stack manipulation for the required type compatibility check.protected StackManipulationFieldAccessor.ForSetter.OfConstantValue.resolve(Void unused, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulationFieldAccessor.ForSetter.OfDefaultValue.resolve(Void initialized, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulationFieldAccessor.ForSetter.OfFieldValue.resolve(FieldAccessor.FieldLocation.Prepared target, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulationFieldAccessor.ForSetter.OfParameterValue.resolve(Void unused, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulationFieldAccessor.ForSetter.OfReferenceValue.resolve(FieldDescription.InDefinedShape target, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected abstract StackManipulationFieldAccessor.ForSetter.resolve(T initialized, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected abstract StackManipulationFieldAccessor.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 StackManipulationInvokeDynamic.TerminationHandler.resolve(MethodDescription interceptedMethod, TypeDescription returnType, Assigner assigner, Assigner.Typing typing) Returns a stack manipulation that handles the method return.protected StackManipulationEqualsMethod.ConditionalReturn.returningTrue()Returns a new stack manipulation that returnstruefor the given condition.protected StackManipulationMethodCall.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.SizeFixedValue.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.SizeInvocationHandlerAdapter.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,finalandstaticfield.Implementation.Context.Default.cache(StackManipulation fieldValue, TypeDescription fieldType) Caches a single value by storing it in form of aprivate,finalandstaticfield.Implementation.Context.Disabled.cache(StackManipulation fieldValue, TypeDescription fieldType) Caches a single value by storing it in form of aprivate,finalandstaticfield.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 StackManipulationModifierConstructorDescriptionprivateAccessorMethodDelegation(MethodDescription.InDefinedShape methodDescription, Visibility visibility, StackManipulation accessorMethodInvocation) Creates a delegation to an accessor method.protectedAppender(TypeDescription instrumentedType, StackManipulation baseline, List<FieldDescription.InDefinedShape> fieldDescriptions, ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable, ElementMatcher<? super FieldDescription.InDefinedShape> identity) Creates a new appender.protectedAppender(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.protectedFieldCacheEntry(StackManipulation fieldValue, TypeDescription fieldType) Creates a new field cache entry.privateForConstantValue(Assigner assigner, Assigner.Typing typing, StackManipulation valueLoadInstruction, TypeDescription loadedType) Creates a new constant pool fixed value implementation.protectedForConstantValue(StackManipulation valueLoadInstruction, Class<?> loadedType) Creates a new constant pool fixed value implementation.protectedForConstantValue(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.protectedOfConstantValue(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.protectedSimple(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.protectedSimple(TypeDescription typeDescription, StackManipulation stackManipulation) Creates a simple target handler.protectedWrappingArgumentProvider(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 classA stack manipulation that creates aMethodCallProxyfor a given method an pushes such an object onto the call stack.protected static enumA stack manipulation that throws an abstract method error in case that a given super method cannot be invoked.static classCreates 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 classLoads a type proxy onto the operand stack which is created by calling one of its constructors.static classLoads 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 classStack manipulation for invoking an accessor method.Fields in net.bytebuddy.implementation.auxiliary declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulationTypeProxy.MethodCall.Appender.fieldLoadingInstructionThe stack manipulation for loading the proxied instance onto the stack.private final StackManipulationTypeProxy.AbstractMethodErrorThrow.implementationThe 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 interfaceA binding attempt created by aMethodDelegationBinder.static interfaceA binding attempt for a single parameter.Classes in net.bytebuddy.implementation.bind that implement StackManipulationModifier and TypeClassDescriptionprotected static classA method binding that was created by aMethodDelegationBinder.MethodBinding.Builder.static enumRepresentation of an attempt to bind a source method to a target method that is not applicable.static classAn anonymous binding of a target method parameter.static enumA singleton representation of an illegal binding for a method parameter.static classA uniquely identifiable parameter binding for a target method.Fields in net.bytebuddy.implementation.bind declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulationMethodDelegationBinder.ParameterBinding.Anonymous.delegateThe stack manipulation that represents the loading of the parameter binding onto the stack.private final StackManipulationMethodDelegationBinder.ParameterBinding.Unique.delegateThe stack manipulation that represents the loading of the parameter binding onto the stack.private final StackManipulationMethodDelegationBinder.MethodBinding.Builder.Build.methodInvocationA stack manipulation that represents the actual method invocation.private final StackManipulationMethodDelegationBinder.MethodBinding.Builder.Build.terminatingStackManipulationThe 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.parameterStackManipulationsA list of manipulations that each represent the loading of a parameter value onto the operand stack.private final List<StackManipulation> MethodDelegationBinder.MethodBinding.Builder.parameterStackManipulationsThe 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.protectedBuild(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 StackManipulationModifierConstructorDescriptionprotectedBuild(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 classLoads the delegation method constant onto the stack.protected static classA proxy type for accessing a field either by a getter or a setter.protected static classA proxy that implements the installed interface in order to allow for a morphed super method invocation.protected static classAn auxiliary type for performing the redirection of a method invocation as requested by thePipeannotation.protected static classLoads the delegation method constant onto the stack.Methods in net.bytebuddy.implementation.bind.annotation that return StackManipulationModifier and TypeMethodDescriptionprivate static StackManipulationOrigin.Binder.methodConstant(AnnotationDescription.Loadable<Origin> annotation, MethodDescription.InDefinedShape methodDescription) Loads a method constant onto the operand stack.protected abstract StackManipulationSuper.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 TypeClassDescriptionenumA stack manipulation that adds two numbers on the operand stack.enumA stack manipulation that divides two numbers on the operand stack.enumDuplicates a value that is lying on top of the stack.protected static enumA duplication that flips a value over the second value on the operand stack.enumA stack manipulation that multiplies two numbers on the operand stack.enumA stack manipulation that negates a number on the operand stack.enumA stack manipulation that computes the remainder two numbers on the operand stack.enumRemoves a value from the operand stack.enumA stack manipulation that shifts left two numbers on the operand stack.enumA stack manipulation that shifts right two numbers on the operand stack.protected static enumA stack manipulation that shifts right unsigned two numbers on the operand stack.static classAn abstract base implementation of a valid stack manipulation.static classAn immutable stack manipulation that aggregates a sequence of other stack manipulations.static enumCanonical representation of an illegal stack manipulation.static classAn implementation ofStackManipulationthat simplifies functional invocations via lambda expressions.static enumCanonical representation of a legal stack manipulation which does not require any action.enumA stack manipulation that subtracts two numbers on the operand stack.enumThrows aThrowablewhich must lie on top of the stack when this stack manipulation is called.classA 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 StackManipulationByteCodeAppender.Simple.stackManipulationA compound stack manipulation to be applied for this byte code appender.private final StackManipulationShiftRight.unsignedThe unsigned equivalent of this operation.Fields in net.bytebuddy.implementation.bytecode with type parameters of type StackManipulationModifier and TypeFieldDescriptionprivate final List<StackManipulation> StackManipulation.Compound.stackManipulationsThe stack manipulations this compound operation represents in their application order.Methods in net.bytebuddy.implementation.bytecode that return StackManipulationModifier and TypeMethodDescriptionabstract StackManipulationDuplication.flipOver(TypeDefinition typeDefinition) Creates a duplication that flips the stack's top value over the second stack element.static StackManipulationRemoval.of(TypeDefinition typeDefinition) Removes a value from the operand stack dependant of its size.static StackManipulationTypeCreation.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.privateShiftRight(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 TypeClassDescriptionclassImplements aninstanceofcheck.classA 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 StackManipulationInstanceCheck.of(TypeDescription typeDescription) Creates a new instance check.static StackManipulationTypeCasting.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 classA stack manipulation for boxing a primitive type into its wrapper type.protected static classA stack manipulation that narrows a primitive type into a smaller primitive type.enumThis delegate is responsible for unboxing a wrapper type to their primitive equivalents.protected static classA 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 StackManipulationPrimitiveBoxingDelegate.BoxingStackManipulation.stackManipulationA stack manipulation that is applied after the boxing of the top-most value on the operand stack.private final StackManipulationPrimitiveNarrowingDelegate.toBooleanStackManipulationA stack manipulation that narrows the type that is represented by this instance to aboolean.private final StackManipulationPrimitiveWideningDelegate.toBooleanStackManipulationA stack manipulation that widens the type that is represented by this instance to aboolean.private final StackManipulationPrimitiveNarrowingDelegate.toByteStackManipulationA stack manipulation that narrows the type that is represented by this instance to abyte.private final StackManipulationPrimitiveWideningDelegate.toByteStackManipulationA stack manipulation that widens the type that is represented by this instance to abyte.private final StackManipulationPrimitiveNarrowingDelegate.toCharacterStackManipulationA stack manipulation that narrows the type that is represented by this instance to achar.private final StackManipulationPrimitiveWideningDelegate.toCharacterStackManipulationA stack manipulation that widens the type that is represented by this instance to achar.private final StackManipulationPrimitiveNarrowingDelegate.toDoubleStackManipulationA stack manipulation that narrows the type that is represented by this instance to adouble.private final StackManipulationPrimitiveWideningDelegate.toDoubleStackManipulationA stack manipulation that widens the type that is represented by this instance to adouble.private final StackManipulationPrimitiveNarrowingDelegate.toFloatStackManipulationA stack manipulation that narrows the type that is represented by this instance to afloat.private final StackManipulationPrimitiveWideningDelegate.toFloatStackManipulationA stack manipulation that widens the type that is represented by this instance to afloat.private final StackManipulationPrimitiveNarrowingDelegate.toIntegerStackManipulationA stack manipulation that narrows the type that is represented by this instance to aint.private final StackManipulationPrimitiveWideningDelegate.toIntegerStackManipulationA stack manipulation that widens the type that is represented by this instance to aint.private final StackManipulationPrimitiveNarrowingDelegate.toLongStackManipulationA stack manipulation that narrows the type that is represented by this instance to along.private final StackManipulationPrimitiveWideningDelegate.toLongStackManipulationA stack manipulation that widens the type that is represented by this instance to along.private final StackManipulationPrimitiveNarrowingDelegate.toShortStackManipulationA stack manipulation that narrows the type that is represented by this instance to ashort.private final StackManipulationPrimitiveWideningDelegate.toShortStackManipulationA 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.PrimitiveNarrowingDelegate.narrowTo(TypeDefinition typeDefinition) Attempts to narrow the represented type into another type.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.privatePrimitiveNarrowingDelegate(StackManipulation toBooleanStackManipulation, StackManipulation toByteStackManipulation, StackManipulation toShortStackManipulation, StackManipulation toCharacterStackManipulation, StackManipulation toIntegerStackManipulation, StackManipulation toLongStackManipulation, StackManipulation toFloatStackManipulation, StackManipulation toDoubleStackManipulation) Creates a new primitive narrowing delegate.privatePrimitiveWideningDelegate(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 interfaceAn 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 classA stack manipulation for loading an array's value.protected classA stack manipulation for storing an array's value.static enumAn array creator implementation for primitive types.static classAn array creator implementation for reference types.protected classA stack manipulation for creating an array as defined by the enclosing array factory.enumAllows 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.stackManipulationsA 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 StackManipulationModifierConstructorDescriptionprotectedArrayStackManipulation(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 interfaceRepresents aMethodConstantthat is directly loaded onto the operand stack without caching the value.Classes in net.bytebuddy.implementation.bytecode.constant that implement StackManipulationModifier and TypeClassDescriptionenumRepresents a constant representing any loaded JavaClass.protected static classA class constant for a non-primitiveClass.enumRepresents a stack assignment that loads the default value of a given type onto the stack.enumThis class is responsible for loading anydoubleconstant onto the operand stack.protected static classA stack manipulation for loading adoublevalue from a class's constant pool onto the operand stack.classRepresents aFieldconstant for a given type.protected static classA cached version of aFieldConstant.enumThis class is responsible for loading anyfloatconstant onto the operand stack.protected static classA stack manipulation for loading afloatvalue from a class's constant pool onto the operand stack.enumThis class is responsible for loading anyintconstant onto the operand stack.protected static classA stack manipulation that loads a JVM-integer value from a constant pool value onto the operand stack.protected static classA stack manipulation that loads a JVM-integer value by aBIPUSHoperation which is legal for single byte integer values.protected static classA stack manipulation that loads a JVM-integer value by aSIPUSHoperation which is legal for up to two byte integer values.classA constant representing aJavaConstant.enumThis class is responsible for loading anylongconstant onto the operand stack.protected static classA stack manipulation for loading alongvalue from a class's constant pool onto the operand stack.classRepresents the creation of aMethodvalue 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 classRepresents a cached constructor for aMethodConstant.protected static classRepresents a cached method for aMethodConstant.protected static enumRepresents a method constant that cannot be represented by Java's reflection API.protected static classCreates aMethodConstantfor loading aConstructorinstance onto the operand stack.protected static classCreates aMethodConstantfor loading aMethodinstance onto the operand stack.protected static classPerforms a privileged lookup of a method constant by using anjava.security.AccessController.enumRepresents a stack manipulation to load anullpointer onto the operand stack.classA constant that represents a value in its serialized form.classRepresents aStringvalue that is stored in a type's constant pool.Fields in net.bytebuddy.implementation.bytecode.constant declared as StackManipulationModifier and TypeFieldDescriptionprivate final StackManipulationMethodConstant.CachedConstructor.constructorConstantThe stack manipulation that is represented by this caching wrapper.private final StackManipulationFieldConstant.Cached.fieldConstantThe field constant stack manipulation.private final StackManipulationMethodConstant.CachedMethod.methodConstantThe stack manipulation that is represented by this caching wrapper.private final StackManipulationMethodConstant.PrivilegedLookup.methodNameThe stack manipulation for locating the method name.private final StackManipulationDefaultValue.stackManipulationThe 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 StackManipulationDoubleConstant.forValue(double value) Creates a stack manipulation for loading adoublevalue onto the operand stack.static StackManipulationFloatConstant.forValue(float value) Creates a stack manipulation for loading afloatvalue onto the operand stack.static StackManipulationIntegerConstant.forValue(boolean value) Creates a stack manipulation for loading a boolean value onto the stack.static StackManipulationIntegerConstant.forValue(int value) Creates a stack manipulation for loading anintvalue onto the stack.static StackManipulationLongConstant.forValue(long value) Creates a stack manipulation for loading alongvalue onto the operand stack.protected StackManipulationMethodConstant.ForConstructor.methodName()protected StackManipulationMethodConstant.ForMethod.methodName()protected abstract StackManipulationMethodConstant.methodName()Returns a stack manipulation that loads the method name onto the operand stack if this is required.static StackManipulationClassConstant.of(TypeDescription typeDescription) Returns a stack manipulation that loads aClasstype onto the operand stack which represents the given type.static StackManipulationDefaultValue.of(TypeDefinition typeDefinition) Creates a stack assignment that loads the default value for a given type.static StackManipulationSerializedConstant.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.protectedCachedConstructor(StackManipulation constructorConstant) Creates a new cachedMethodConstant.protectedCachedMethod(StackManipulation methodConstant) Creates a new cachedMethodConstant.privateDefaultValue(StackManipulation stackManipulation) Creates a new default value load operation.protectedPrivilegedLookup(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 interfaceRepresents 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 classAn abstract base implementation for accessing a field value.protected classA reading field access operation.protected classA writing field access operation.classAn exact invocation of a method handle with a polymorphic signature.classA stack manipulation for an invokedynamic invocation.protected static classPerforms a method invocation on a method handle with a polymorphic type signature.protected static enumAn illegal implicit method invocation.protected classAn implementation of a method invoking stack manipulation.protected static classA method invocation of a generically resolved method.enumA stack manipulation returning a value of a given type.static classA stack manipulation that loads all parameters of a given method onto the operand stack.protected static classA stack manipulation that increments an integer variable.protected classA stack manipulation for loading a variable of a method's local variable array onto the operand stack.protected classA 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 StackManipulationFieldAccess.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 StackManipulationMethodVariableAccess.increment(ParameterDescription parameterDescription, int value) Increments the value of the supplied parameter.static StackManipulationMethodVariableAccess.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 StackManipulationMethodVariableAccess.loadThis()Loads a reference to thethisreference what is only meaningful for a non-static method.static StackManipulationMethodInvocation.lookup()Returns a method invocation ofjava.lang.invoke.MethodHandles#lookup().static StackManipulationMethodReturn.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 thethisinstance 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 StackManipulationMethodVariableAccess.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 StackManipulationConstantValue.Simple.stackManipulationA 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 StackManipulationModifierConstructorDescriptionprotectedSimple(StackManipulation stackManipulation, TypeDescription typeDescription) Creates a simple constant value.