Uses of Interface
net.bytebuddy.implementation.bytecode.StackManipulation
-
Packages that use StackManipulation Package Description net.bytebuddy.agent.builder An agent builder is used to easily implement load-time class-transformations using a Java agent.net.bytebuddy.asm The ASM package contains classes that are meant for direct interaction with the ASM API.net.bytebuddy.dynamic.scaffold.inline All classes and types in this package are related to creating aDynamicTypeby enhancing a given type.net.bytebuddy.implementation The implementation package contains any logic for intercepting method calls.net.bytebuddy.implementation.auxiliary Auxiliary types describe helper types that aid as a supplementary to a givenInstrumentedType.net.bytebuddy.implementation.bind The types and classes of this package are responsible for binding a method call to calling another method.net.bytebuddy.implementation.bind.annotation 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.net.bytebuddy.implementation.bytecode Types and classes in this package are responsible for creating Java byte code for a given byte code target which is represented by aMethodDescription.net.bytebuddy.implementation.bytecode.assign AnAssigneris responsible for transforming a givenTypeDescriptioninto another one.net.bytebuddy.implementation.bytecode.assign.primitive Assignerimplementations of this package are capable of handling primitive types or thevoidtype.net.bytebuddy.implementation.bytecode.assign.reference Assignerimplementations of this package are capable of assigning non-primitive types to each other.net.bytebuddy.implementation.bytecode.collection This package is dedicated to creatingStackManipulations that create collections or arrays from a given number of values.net.bytebuddy.implementation.bytecode.constant StackManipulations in this package are responsible for creating compile-time constants and pushing them onto the operand stack.net.bytebuddy.implementation.bytecode.member StackManipulations of this package are responsible for accessing type or method members, i.e.net.bytebuddy.utility This package contains utility classes for common use within any Byte Buddy logic. -
-
Uses of StackManipulation in net.bytebuddy.agent.builder
Methods in net.bytebuddy.agent.builder with parameters of type StackManipulation Modifier and Type Method Description AgentBuilder.Transformer.ForAdviceAgentBuilder.Transformer.ForAdvice. withExceptionHandler(StackManipulation exceptionHandler)Registers an exception handler for suppressed exceptions to use by the registered advice.Constructors in net.bytebuddy.agent.builder with parameters of type StackManipulation Constructor Description ForAdvice(Advice.WithCustomMapping advice, StackManipulation exceptionHandler, Assigner assigner, ClassFileLocator classFileLocator, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, java.util.List<AgentBuilder.Transformer.ForAdvice.Entry> entries)Creates a new advice transformer. -
Uses of StackManipulation in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as StackManipulation Modifier and Type Field Description protected StackManipulationAdvice.OffsetMapping.Target.ForDefaultValue. readAssignmentA stack manipulation to apply after a read instruction.protected StackManipulationAdvice.OffsetMapping.Target.ForField. readAssignmentThe stack manipulation to apply upon a read.protected StackManipulationAdvice.OffsetMapping.Target.ForVariable. readAssignmentAn assignment to execute upon reading a value.Fields in net.bytebuddy.asm with type parameters of type StackManipulation Modifier and Type Field Description protected java.util.List<? extends StackManipulation>Advice.OffsetMapping.Target.ForArray. valueReadsThe stack manipulations to apply upon reading a variable array.Methods in net.bytebuddy.asm that return StackManipulation Modifier and Type Method Description StackManipulationMemberSubstitution.Substitution.Resolver. apply(TypeDescription instrumentedType, ByteCodeElement target, TypeList.Generic arguments, TypeDescription.Generic result)Applies this resolver.StackManipulationMemberSubstitution.Substitution.Resolver.FieldAccessing. apply(TypeDescription instrumentedType, ByteCodeElement target, TypeList.Generic arguments, TypeDescription.Generic result)StackManipulationMemberSubstitution.Substitution.Resolver.MethodInvoking. apply(TypeDescription instrumentedType, ByteCodeElement target, TypeList.Generic arguments, TypeDescription.Generic result)StackManipulationMemberSubstitution.Substitution.Resolver.Stubbing. apply(TypeDescription instrumentedType, ByteCodeElement target, TypeList.Generic arguments, TypeDescription.Generic result)StackManipulationMemberSubstitution.Substitution.Resolver.Unresolved. apply(TypeDescription instrumentedType, ByteCodeElement target, TypeList.Generic arguments, TypeDescription.Generic result)StackManipulationAdvice.OffsetMapping.Target.AbstractReadOnlyAdapter. resolveIncrement(int value)StackManipulationAdvice.OffsetMapping.Target.ForArray. resolveIncrement(int value)StackManipulationAdvice.OffsetMapping.Target.ForDefaultValue.ReadOnly. resolveIncrement(int value)StackManipulationAdvice.OffsetMapping.Target.ForDefaultValue.ReadWrite. resolveIncrement(int value)StackManipulationAdvice.OffsetMapping.Target.ForField.ReadOnly. resolveIncrement(int value)StackManipulationAdvice.OffsetMapping.Target.ForField.ReadWrite. resolveIncrement(int value)StackManipulationAdvice.OffsetMapping.Target.ForStackManipulation. resolveIncrement(int value)StackManipulationAdvice.OffsetMapping.Target.ForVariable.ReadOnly. resolveIncrement(int value)StackManipulationAdvice.OffsetMapping.Target.ForVariable.ReadWrite. resolveIncrement(int value)StackManipulationAdvice.OffsetMapping.Target. resolveIncrement(int value)Resolves an increment instruction.StackManipulationAdvice.OffsetMapping.Target.ForArray. resolveRead()StackManipulationAdvice.OffsetMapping.Target.ForDefaultValue. resolveRead()StackManipulationAdvice.OffsetMapping.Target.ForField. resolveRead()StackManipulationAdvice.OffsetMapping.Target.ForStackManipulation. resolveRead()StackManipulationAdvice.OffsetMapping.Target.ForVariable. resolveRead()StackManipulationAdvice.OffsetMapping.Target. resolveRead()Resolves a read instruction.StackManipulationAdvice.OffsetMapping.Target.AbstractReadOnlyAdapter. resolveWrite()StackManipulationAdvice.OffsetMapping.Target.ForArray.ReadOnly. resolveWrite()StackManipulationAdvice.OffsetMapping.Target.ForArray.ReadWrite. resolveWrite()StackManipulationAdvice.OffsetMapping.Target.ForDefaultValue.ReadOnly. resolveWrite()StackManipulationAdvice.OffsetMapping.Target.ForDefaultValue.ReadWrite. resolveWrite()StackManipulationAdvice.OffsetMapping.Target.ForField.ReadOnly. resolveWrite()StackManipulationAdvice.OffsetMapping.Target.ForField.ReadWrite. resolveWrite()StackManipulationAdvice.OffsetMapping.Target.ForStackManipulation. resolveWrite()StackManipulationAdvice.OffsetMapping.Target.ForVariable.ReadOnly. resolveWrite()StackManipulationAdvice.OffsetMapping.Target.ForVariable.ReadWrite. resolveWrite()StackManipulationAdvice.OffsetMapping.Target. resolveWrite()Resolves a write instruction.Methods in net.bytebuddy.asm with parameters of type StackManipulation Modifier and Type Method Description Advice.Dispatcher.BoundAdvice.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)Advice.Dispatcher.BoundAdvice.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)Advice.Dispatcher.BoundAdvice.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)Advice.Dispatcher.BoundAdvice.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)Advice.Dispatcher.BoundAdvice.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.BoundAdvice.Dispatcher.SuppressionHandler. bind(StackManipulation exceptionHandler)Binds the suppression handler for instrumenting a specific method.Advice.Dispatcher.SuppressionHandler.BoundAdvice.Dispatcher.SuppressionHandler.NoOp. bind(StackManipulation exceptionHandler)Advice.Dispatcher.SuppressionHandler.BoundAdvice.Dispatcher.SuppressionHandler.Suppressing. bind(StackManipulation exceptionHandler)<T extends java.lang.annotation.Annotation>
Advice.WithCustomMappingAdvice.WithCustomMapping. bind(java.lang.Class<T> type, StackManipulation stackManipulation, java.lang.reflect.Type targetType)Binds the supplied annotation to the annotation's property of the specified name.<T extends java.lang.annotation.Annotation>
Advice.WithCustomMappingAdvice.WithCustomMapping. bind(java.lang.Class<T> type, StackManipulation stackManipulation, TypeDescription.Generic targetType)Binds the supplied annotation to the annotation's property of the specified name.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.AdviceAdvice. withExceptionHandler(StackManipulation exceptionHandler)Configures this advice to execute the given stack manipulation upon a suppressed exception.Constructors in net.bytebuddy.asm with parameters of type StackManipulation Constructor Description AdviceVisitor(org.objectweb.asm.MethodVisitor methodVisitor, org.objectweb.asm.MethodVisitor delegate, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, java.util.List<? extends TypeDescription> exitTypes, int writerFlags, int readerFlags)Creates a new advice visitor.Bound(TypeDescription suppressedType, StackManipulation exceptionHandler)Creates a new active, bound suppression handler.Factory(java.lang.Class<T> annotationType, TypeDescription typeDescription, StackManipulation deserialization)Creates a factory for loading a deserialized value.Factory(java.lang.Class<T> annotationType, StackManipulation stackManipulation, TypeDescription.Generic typeDescription)Creates a new factory for binding a stack manipulation.ForDefaultValue(TypeDefinition typeDefinition, StackManipulation readAssignment)Creates a new target for a default value.ForField(FieldDescription fieldDescription, StackManipulation readAssignment)Creates a new target for a field value mapping.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.ForVariable(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment)Creates a new target for a local variable mapping.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.WithExceptionHandling(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, int writerFlags, int readerFlags, TypeDescription throwable)Creates a new advice visitor that captures exception by weaving try-catch blocks around user code.WithExitAdvice(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, java.util.List<? extends TypeDescription> exitTypes, int writerFlags, int readerFlags)Creates an advice visitor that applies exit advice.WithoutExceptionHandling(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, int writerFlags, int readerFlags)Creates a new advice visitor that does not capture exceptions.WithoutExitAdvice(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, int writerFlags, int readerFlags)Creates an advice visitor that does not apply exit advice.Constructor parameters in net.bytebuddy.asm with type arguments of type StackManipulation Constructor Description ForArray(TypeDescription.Generic target, java.util.List<? extends StackManipulation> valueReads)Creates a new target mapping for an array of all local variables.ReadOnly(TypeDescription.Generic target, java.util.List<? extends StackManipulation> valueReads)Creates a read-only target mapping for an array of all local variables.ReadWrite(TypeDescription.Generic target, java.util.List<? extends StackManipulation> valueReads, java.util.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 StackManipulation Modifier and Type Class Description protected static classRebaseImplementationTarget.RebasedMethodInvocationAImplementation.SpecialMethodInvocationwhich invokes a rebased method as given by aMethodRebaseResolver.Methods in net.bytebuddy.dynamic.scaffold.inline that return StackManipulation Modifier and Type Method Description StackManipulationMethodRebaseResolver.Resolution.ForRebasedConstructor. getAdditionalArguments()StackManipulationMethodRebaseResolver.Resolution.ForRebasedMethod. getAdditionalArguments()StackManipulationMethodRebaseResolver.Resolution. getAdditionalArguments()A rebased method might require additional arguments in order to create a distinct signature.StackManipulationMethodRebaseResolver.Resolution.Preserved. getAdditionalArguments()Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type StackManipulation Modifier and Type Method Description protected static Implementation.SpecialMethodInvocationRebaseImplementationTarget.RebasedMethodInvocation. of(MethodDescription resolvedMethod, TypeDescription instrumentedType, StackManipulation additionalArguments)Creates a special method invocation for the given method.Constructors in net.bytebuddy.dynamic.scaffold.inline with parameters of type StackManipulation Constructor Description RebasedMethodInvocation(MethodDescription methodDescription, TypeDescription instrumentedType, StackManipulation stackManipulation)Creates a new rebased method invocation. -
Uses of StackManipulation in net.bytebuddy.implementation
Subinterfaces of StackManipulation in net.bytebuddy.implementation Modifier and Type Interface Description static interfaceImplementation.SpecialMethodInvocationRepresents an 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 StackManipulation Modifier and Type Class Description protected static classEqualsMethod.ConditionalReturnA conditional return aborts the equality computation if a given condition was reached.protected static classEqualsMethod.NullValueGuard.UsingJump.AfterInstructionThe stack manipulation to apply after the equality computation.protected static classEqualsMethod.NullValueGuard.UsingJump.BeforeInstructionThe stack manipulation to apply before the equality computation.protected static classEqualsMethod.ValueComparatorA value comparator is responsible to compare to values of a given type.protected static classHashCodeMethod.NullValueGuard.UsingJump.AfterInstructionThe stack manipulation to apply after the hash value computation.protected static classHashCodeMethod.NullValueGuard.UsingJump.BeforeInstructionThe stack manipulation to apply before the hash value computation.protected static classHashCodeMethod.ValueTransformerA value transformer that is responsible for resolving a field value to anintvalue.protected static classImplementation.Context.Default.FieldCacheEntryA field cache entry for uniquely identifying a cached field.static classImplementation.SpecialMethodInvocation.AbstractBaseAn abstract base implementation of a valid special method invocation.static classImplementation.SpecialMethodInvocation.IllegalA canonical implementation of an illegalImplementation.SpecialMethodInvocation.static classImplementation.SpecialMethodInvocation.SimpleA canonical implementation of aImplementation.SpecialMethodInvocation.protected static classToStringMethod.ValueConsumerA value consumer that is responsible for adding a field value to the string creatingStringBuilder.Methods in net.bytebuddy.implementation that return StackManipulation Modifier and Type Method Description StackManipulationEqualsMethod.NullValueGuard. after()Returns a stack manipulation to apply after computing equality.StackManipulationEqualsMethod.NullValueGuard.NoOp. after()StackManipulationEqualsMethod.NullValueGuard.UsingJump. after()StackManipulationHashCodeMethod.NullValueGuard. after()Returns a stack manipulation to apply after computing a hash value.StackManipulationHashCodeMethod.NullValueGuard.NoOp. after()StackManipulationHashCodeMethod.NullValueGuard.UsingJump. after()StackManipulationEqualsMethod.NullValueGuard. before()Returns a stack manipulation to apply before computing equality.StackManipulationEqualsMethod.NullValueGuard.NoOp. before()StackManipulationEqualsMethod.NullValueGuard.UsingJump. before()StackManipulationHashCodeMethod.NullValueGuard. before()Returns a stack manipulation to apply before computing a hash value.StackManipulationHashCodeMethod.NullValueGuard.NoOp. before()StackManipulationHashCodeMethod.NullValueGuard.UsingJump. before()StackManipulationInvokeDynamic.InvocationProvider.ArgumentProvider.Resolved. getLoadInstruction()Returns a stack manipulation that loads the arguments onto the operand stack.StackManipulationInvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.Simple. getLoadInstruction()StackManipulationInvokeDynamic.InvocationProvider.Target.ForMethodDescription. getStackManipulation()StackManipulationInvokeDynamic.InvocationProvider.Target.Resolved. getStackManipulation()Returns the stack manipulation that loads the arguments onto the operand stack.StackManipulationInvokeDynamic.InvocationProvider.Target.Resolved.Simple. getStackManipulation()protected StackManipulationFieldAccessor. getter(FieldDescription fieldDescription, MethodDescription instrumentedMethod)Creates a getter getter.StackManipulationMethodCall.MethodInvoker.ForContextualInvocation. invoke(MethodDescription invokedMethod, Implementation.Target implementationTarget)StackManipulationMethodCall.MethodInvoker.ForDefaultMethodInvocation. invoke(MethodDescription invokedMethod, Implementation.Target implementationTarget)StackManipulationMethodCall.MethodInvoker.ForSuperMethodInvocation. invoke(MethodDescription invokedMethod, Implementation.Target implementationTarget)StackManipulationMethodCall.MethodInvoker.ForVirtualInvocation. invoke(MethodDescription invokedMethod, Implementation.Target implementationTarget)StackManipulationMethodCall.MethodInvoker.ForVirtualInvocation.WithImplicitType. invoke(MethodDescription invokedMethod, Implementation.Target implementationTarget)StackManipulationMethodCall.MethodInvoker. invoke(MethodDescription invokedMethod, Implementation.Target implementationTarget)Invokes the method.StackManipulationExceptionMethod.ConstructionDelegate.ForDefaultConstructor. make()StackManipulationExceptionMethod.ConstructionDelegate.ForStringConstructor. make()StackManipulationExceptionMethod.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.StackManipulationMethodDelegation.ImplementationDelegate.Compiled.ForConstruction. prepare(MethodDescription instrumentedMethod)StackManipulationMethodDelegation.ImplementationDelegate.Compiled.ForField. prepare(MethodDescription instrumentedMethod)StackManipulationMethodDelegation.ImplementationDelegate.Compiled.ForStaticCall. prepare(MethodDescription instrumentedMethod)StackManipulationMethodDelegation.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 abstract StackManipulationFieldAccessor.ForParameterSetter.TerminationHandler. resolve(MethodDescription instrumentedMethod)Resolves the return instruction.StackManipulationHashCodeMethod.OffsetProvider.ForFixedValue. resolve(TypeDescription instrumentedType)StackManipulationHashCodeMethod.OffsetProvider.ForSuperMethodCall. resolve(TypeDescription instrumentedType)StackManipulationHashCodeMethod.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.StackManipulationMethodCall.ArgumentLoader.ForField. resolve(ParameterDescription target, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.ArgumentLoader.ForInstance. resolve(ParameterDescription target, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.ArgumentLoader.ForInstrumentedType. resolve(ParameterDescription target, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.ArgumentLoader.ForMethodParameter. resolve(ParameterDescription target, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.ArgumentLoader.ForMethodParameterArray. resolve(ParameterDescription target, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.ArgumentLoader.ForMethodParameterArrayElement. resolve(ParameterDescription target, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.ArgumentLoader.ForNullConstant. resolve(ParameterDescription target, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.ArgumentLoader.ForStackManipulation. resolve(ParameterDescription target, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.ArgumentLoader.ForThisReference. resolve(ParameterDescription target, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.ArgumentLoader. resolve(ParameterDescription target, Assigner assigner, Assigner.Typing typing)Loads the argument that is represented by this instance onto the operand stack.StackManipulationMethodCall.TargetHandler.ForConstructingInvocation. resolve(MethodDescription invokedMethod, MethodDescription instrumentedMethod, TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.TargetHandler.ForField. resolve(MethodDescription invokedMethod, MethodDescription instrumentedMethod, TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.TargetHandler.ForMethodParameter. resolve(MethodDescription invokedMethod, MethodDescription instrumentedMethod, TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.TargetHandler.ForSelfOrStaticInvocation. resolve(MethodDescription invokedMethod, MethodDescription instrumentedMethod, TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.TargetHandler.ForValue. resolve(MethodDescription invokedMethod, MethodDescription instrumentedMethod, TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)StackManipulationMethodCall.TargetHandler. resolve(MethodDescription invokedMethod, MethodDescription instrumentedMethod, TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)Creates a stack manipulation that represents the method's invocation.protected abstract StackManipulationMethodCall.TerminationHandler. resolve(MethodDescription invokedMethod, MethodDescription instrumentedMethod, 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 StackManipulationFieldAccessor. setter(FieldDescription fieldDescription, ParameterDescription parameterDescription)Creates a setter instruction.Methods in net.bytebuddy.implementation with parameters of type StackManipulation Modifier and Type Method Description protected ByteCodeAppender.SizeFixedValue. apply(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod, TypeDescription.Generic fixedValueType, StackManipulation valueLoadingInstruction)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.FieldDescription.InDefinedShapeImplementation.Context. cache(StackManipulation fieldValue, TypeDescription fieldType)Caches a single value by storing it in form of aprivate,finalandstaticfield.FieldDescription.InDefinedShapeImplementation.Context.Default. cache(StackManipulation fieldValue, TypeDescription fieldType)FieldDescription.InDefinedShapeImplementation.Context.Disabled. cache(StackManipulation fieldValue, TypeDescription fieldType)protected InvokeDynamic.InvocationProvider.ArgumentProvider.ResolvedInvokeDynamic.InvocationProvider.ArgumentProvider.ForField. doResolve(StackManipulation access, TypeDescription.Generic type, Assigner assigner, Assigner.Typing typing)Resolves this argument provider.protected InvokeDynamic.InvocationProvider.ArgumentProvider.ResolvedInvokeDynamic.InvocationProvider.ArgumentProvider.ForField.WithExplicitType. doResolve(StackManipulation access, TypeDescription.Generic typeDescription, Assigner assigner, Assigner.Typing typing)protected InvokeDynamic.InvocationProvider.ArgumentProvider.ResolvedInvokeDynamic.InvocationProvider.ArgumentProvider.ForMethodParameter. doResolve(StackManipulation access, TypeDescription.Generic type, Assigner assigner, Assigner.Typing typing)Resolves this argument provider.protected InvokeDynamic.InvocationProvider.ArgumentProvider.ResolvedInvokeDynamic.InvocationProvider.ArgumentProvider.ForMethodParameter.WithExplicitType. doResolve(StackManipulation access, TypeDescription.Generic type, Assigner assigner, Assigner.Typing typing)MethodCallMethodCall. with(StackManipulation stackManipulation, java.lang.reflect.Type type)Adds a stack manipulation as an assignment to the next parameter.MethodCallMethodCall. 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 StackManipulation Constructor Description Appender(TypeDescription instrumentedType, StackManipulation baseline, java.util.List<FieldDescription.InDefinedShape> fieldDescriptions, ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)Creates a new appender.Appender(StackManipulation initialValue, int multiplier, java.util.List<FieldDescription.InDefinedShape> fieldDescriptions, ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)Creates a new appender for implementing a hash code method.FieldCacheEntry(StackManipulation fieldValue, TypeDescription fieldType)Creates a new field cache entry.ForPoolValue(StackManipulation valueLoadInstruction, java.lang.Class<?> loadedType)Creates a new constant pool fixed value implementation.ForPoolValue(StackManipulation valueLoadInstruction, TypeDescription loadedType)Creates a new constant pool fixed value implementation.ForStackManipulation(StackManipulation stackManipulation, java.lang.reflect.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.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.Simple(MethodDescription methodDescription, TypeDescription typeDescription, StackManipulation stackManipulation)Creates a new legal special method invocation.Simple(StackManipulation stackManipulation, java.util.List<TypeDescription> loadedTypes)Creates a simple resolved argument provider.Simple(StackManipulation stackManipulation, TypeDescription loadedType)Creates a simple resolved argument provider.Simple(StackManipulation stackManipulation, java.lang.String internalName, TypeDescription returnType, java.util.List<TypeDescription> parameterTypes)Creates a new simple instance.WrappingArgumentProvider(StackManipulation stackManipulation)Creates a new wrapping argument provider. -
Uses of StackManipulation in net.bytebuddy.implementation.auxiliary
Classes in net.bytebuddy.implementation.auxiliary that implement StackManipulation Modifier and Type Class Description static classMethodCallProxy.AssignableSignatureCallA stack manipulation that creates aMethodCallProxyfor a given method an pushes such an object onto the call stack.protected static classTypeProxy.AbstractMethodErrorThrowA stack manipulation that throws an abstract method error in case that a given super method cannot be invoked.static classTypeProxy.ForDefaultMethodCreates 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 classTypeProxy.ForSuperMethodByConstructorLoads a type proxy onto the operand stack which is created by calling one of its constructors.static classTypeProxy.ForSuperMethodByReflectionFactoryLoads 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 classTypeProxy.MethodCall.Appender.AccessorMethodInvocationStack manipulation for invoking an accessor method. -
Uses of StackManipulation in net.bytebuddy.implementation.bind
Subinterfaces of StackManipulation in net.bytebuddy.implementation.bind Modifier and Type Interface Description static interfaceMethodDelegationBinder.MethodBindingA binding attempt created by aMethodDelegationBinder.static interfaceMethodDelegationBinder.ParameterBinding<T>A binding attempt for a single parameter.Classes in net.bytebuddy.implementation.bind that implement StackManipulation Modifier and Type Class Description protected static classMethodDelegationBinder.MethodBinding.Builder.BuildA method binding that was created by aMethodDelegationBinder.MethodBinding.Builder.static classMethodDelegationBinder.MethodBinding.IllegalRepresentation of an attempt to bind a source method to a target method that is not applicable.static classMethodDelegationBinder.ParameterBinding.AnonymousAn anonymous binding of a target method parameter.static classMethodDelegationBinder.ParameterBinding.IllegalA singleton representation of an illegal binding for a method parameter.static classMethodDelegationBinder.ParameterBinding.Unique<T>A uniquely identifiable parameter binding for a target method.Methods in net.bytebuddy.implementation.bind that return StackManipulation Modifier and Type Method Description StackManipulationMethodDelegationBinder.MethodInvoker. invoke(MethodDescription methodDescription)Creates a method invocation for a given method.StackManipulationMethodDelegationBinder.MethodInvoker.Simple. invoke(MethodDescription methodDescription)StackManipulationMethodDelegationBinder.MethodInvoker.Virtual. invoke(MethodDescription methodDescription)StackManipulationMethodDelegationBinder.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 StackManipulation Modifier and Type Method Description MethodDelegationBinder.MethodBindingMethodDelegationBinder.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 StackManipulation Constructor Description Anonymous(StackManipulation delegate)Creates a new, anonymous parameter binding.Build(MethodDescription target, java.util.Map<?,java.lang.Integer> registeredTargetIndices, StackManipulation methodInvocation, java.util.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 StackManipulation Constructor Description Build(MethodDescription target, java.util.Map<?,java.lang.Integer> registeredTargetIndices, StackManipulation methodInvocation, java.util.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 StackManipulation Modifier and Type Class Description protected static classDefaultMethod.Binder.DelegationMethodLoads the delegation method constant onto the stack.protected classFieldProxy.Binder.AccessorProxyA proxy type for accessing a field either by a getter or a setter.protected static classMorph.Binder.RedirectionProxyA proxy that implements the installed interface in order to allow for a morphed super method invocation.protected static classPipe.Binder.RedirectionAn auxiliary type for performing the redirection of a method invocation as requested by thePipeannotation.protected static classSuperMethod.Binder.DelegationMethodLoads the delegation method constant onto the stack.Methods in net.bytebuddy.implementation.bind.annotation that return StackManipulation Modifier and Type Method Description protected abstract StackManipulationSuper.Instantiation. proxyFor(TypeDescription parameterType, 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 StackManipulation Modifier and Type Class Description classAdditionA stack manipulation that adds to numbers on the operand stack.classDuplicationDuplicates a value that is lying on top of the stack.protected static classDuplication.WithFlipA duplication that flips a value over the second value on the operand stack.classMultiplicationA stack manipulation that multiplies to numbers on the operand stack.classRemovalRemoves a value from the operand stack.static classStackManipulation.CompoundAn immutable stack manipulation that aggregates a sequence of other stack manipulations.static classStackManipulation.IllegalCanonical representation of an illegal stack manipulation.static classStackManipulation.TrivialCanonical representation of a legal stack manipulation which does not require any action.classThrowThrows aThrowablewhich must lie on top of the stack when this stack manipulation is called.classTypeCreationA stack manipulation for creating an undefined type on which a constructor is to be called.Methods in net.bytebuddy.implementation.bytecode that return StackManipulation Modifier and Type Method Description abstract 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.Constructors in net.bytebuddy.implementation.bytecode with parameters of type StackManipulation Constructor Description Compound(StackManipulation... stackManipulation)Creates a new compound stack manipulation.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 StackManipulation Constructor Description Compound(java.util.List<? extends StackManipulation> stackManipulations)Creates a new compound stack manipulation.Simple(java.util.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 StackManipulation Modifier and Type Class Description classInstanceCheckImplements aninstanceofcheck.classTypeCastingA stack manipulation for a type down casting.Methods in net.bytebuddy.implementation.bytecode.assign that return StackManipulation Modifier and Type Method Description StackManipulationAssigner. assign(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing)StackManipulationAssigner.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 StackManipulation Modifier and Type Class Description classPrimitiveUnboxingDelegateThis delegate is responsible for unboxing a wrapper type to their primitive equivalents.protected static classPrimitiveWideningDelegate.WideningStackManipulationA stack manipulation that widens a primitive type into a more general primitive type.Methods in net.bytebuddy.implementation.bytecode.assign.primitive that return StackManipulation Modifier and Type Method Description StackManipulationPrimitiveTypeAwareAssigner. assign(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing)StackManipulationVoidAwareAssigner. assign(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing)StackManipulationPrimitiveBoxingDelegate. 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.StackManipulationPrimitiveUnboxingDelegate.ExplicitlyTypedUnboxingResponsible. assignUnboxedTo(TypeDescription.Generic targetType, Assigner assigner, Assigner.Typing typing)StackManipulationPrimitiveUnboxingDelegate.ImplicitlyTypedUnboxingResponsible. assignUnboxedTo(TypeDescription.Generic target, Assigner assigner, Assigner.Typing typing)StackManipulationPrimitiveUnboxingDelegate.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.StackManipulationPrimitiveWideningDelegate. widenTo(TypeDefinition typeDefinition)Attempts to widen the represented type into another type. -
Uses of StackManipulation in net.bytebuddy.implementation.bytecode.assign.reference
Methods in net.bytebuddy.implementation.bytecode.assign.reference that return StackManipulation Modifier and Type Method Description StackManipulationReferenceTypeAwareAssigner. 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.collection Modifier and Type Interface Description protected static interfaceArrayFactory.ArrayCreatorAn 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 StackManipulation Modifier and Type Class Description protected classArrayAccess.LoaderA stack manipulation for loading an array's value.protected classArrayAccess.PutterA stack manipulation for storing an array's value.static classArrayFactory.ArrayCreator.ForPrimitiveTypeAn array creator implementation for primitive types.static classArrayFactory.ArrayCreator.ForReferenceTypeAn array creator implementation for reference types.protected classArrayFactory.ArrayStackManipulationA stack manipulation for creating an array as defined by the enclosing array factory.Methods in net.bytebuddy.implementation.bytecode.collection that return StackManipulation Modifier and Type Method Description StackManipulationArrayAccess. forEach(java.util.List<? extends StackManipulation> processInstructions)Applies a stack manipulation to the values of an array.StackManipulationArrayAccess. load()Creates a value-loading stack manipulation.StackManipulationArrayAccess. store()Creates a value-storing stack manipulation.StackManipulationArrayFactory. withValues(java.util.List<? extends StackManipulation> stackManipulations)StackManipulationCollectionFactory. withValues(java.util.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 StackManipulation Modifier and Type Method Description StackManipulationArrayAccess. forEach(java.util.List<? extends StackManipulation> processInstructions)Applies a stack manipulation to the values of an array.StackManipulationArrayFactory. withValues(java.util.List<? extends StackManipulation> stackManipulations)StackManipulationCollectionFactory. withValues(java.util.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 StackManipulation Constructor Description ArrayStackManipulation(java.util.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.constant Modifier and Type Interface Description static interfaceMethodConstant.CanCacheRepresents aMethodConstantthat is directly loaded onto the operand stack without caching the value.Classes in net.bytebuddy.implementation.bytecode.constant that implement StackManipulation Modifier and Type Class Description classClassConstantRepresents a constant representing any loaded JavaClass.protected static classClassConstant.ForReferenceTypeA class constant for a non-primitiveClass.classDefaultValueRepresents a stack assignment that loads the default value of a given type onto the stack.classDoubleConstantThis class is responsible for loading anydoubleconstant onto the operand stack.protected static classDoubleConstant.ConstantPoolA stack manipulation for loading adoublevalue from a class's constant pool onto the operand stack.classFieldConstantRepresents aFieldconstant for a given type.protected static classFieldConstant.CachedA cached version of aFieldConstant.classFloatConstantThis class is responsible for loading anyfloatconstant onto the operand stack.protected static classFloatConstant.ConstantPoolA stack manipulation for loading afloatvalue from a class's constant pool onto the operand stack.classIntegerConstantThis class is responsible for loading anyintconstant onto the operand stack.protected static classIntegerConstant.ConstantPoolA stack manipulation that loads a JVM-integer value from a constant pool value onto the operand stack.protected static classIntegerConstant.SingleBytePushA stack manipulation that loads a JVM-integer value by aBIPUSHoperation which is legal for single byte integer values.protected static classIntegerConstant.TwoBytePushA stack manipulation that loads a JVM-integer value by aSIPUSHoperation which is legal for up to two byte integer values.classJavaConstantValueA constant representing aJavaConstant.classLongConstantThis class is responsible for loading anylongconstant onto the operand stack.protected static classLongConstant.ConstantPoolA stack manipulation for loading alongvalue from a class's constant pool onto the operand stack.classMethodConstantRepresents 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 classMethodConstant.CachedConstructorRepresents a cached constructor for aMethodConstant.protected static classMethodConstant.CachedMethodRepresents a cached method for aMethodConstant.protected static classMethodConstant.CanCacheIllegalRepresents a method constant that cannot be represented by Java's reflection API.protected static classMethodConstant.ForConstructorCreates aMethodConstantfor loading aConstructorinstance onto the operand stack.protected static classMethodConstant.ForMethodCreates aMethodConstantfor loading aMethodinstance onto the operand stack.classNullConstantRepresents a stack manipulation to load anullpointer onto the operand stack.classSerializedConstantA constant that represents a value in its serialized form.classTextConstantRepresents aStringvalue that is stored in a type's constant pool.Methods in net.bytebuddy.implementation.bytecode.constant that return StackManipulation Modifier and Type Method Description StackManipulationFieldConstant. cached()Returns a cached version of this field constant.StackManipulationMethodConstant. cached()Returns a cached version of this method constant as specified byMethodConstant.CachedMethodandMethodConstant.CachedConstructor.StackManipulationMethodConstant.CanCache. cached()Returns this method constant as a cached version.StackManipulationMethodConstant.CanCacheIllegal. cached()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.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(java.io.Serializable value)Creates a new stack manipulation to load the supplied value onto the stack.protected StackManipulationMethodConstant.ForConstructor. preparation()protected StackManipulationMethodConstant.ForMethod. preparation()protected abstract StackManipulationMethodConstant. preparation()Returns a stack manipulation that loads the values that are required for loading a method constant onto the operand stack.Constructors in net.bytebuddy.implementation.bytecode.constant with parameters of type StackManipulation Constructor Description Cached(StackManipulation fieldConstant)Creates a new cached version of a field constant.CachedConstructor(StackManipulation constructorConstant)Creates a new cachedMethodConstant.CachedMethod(StackManipulation methodConstant)Creates a new cachedMethodConstant. -
Uses of StackManipulation in net.bytebuddy.implementation.bytecode.member
Subinterfaces of StackManipulation in net.bytebuddy.implementation.bytecode.member Modifier and Type Interface Description static interfaceMethodInvocation.WithImplicitInvocationTargetTypeRepresents 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 StackManipulation Modifier and Type Class Description protected classFieldAccess.AccessDispatcher.FieldGetInstructionA reading field access operation.protected classFieldAccess.AccessDispatcher.FieldPutInstructionA writing field access operation.classHandleInvocationAn exact invocation of a method handle with a polymorphic signature.protected classMethodInvocation.DynamicInvocationPerforms a dynamic method invocation of the given method.protected static classMethodInvocation.HandleInvocationPerforms a method invocation on a method handle with a polymorphic type signature.protected static classMethodInvocation.IllegalInvocationAn illegal implicit method invocation.protected classMethodInvocation.InvocationAn implementation of a method invoking stack manipulation.protected static classMethodInvocation.OfGenericMethodA method invocation of a generically resolved method.classMethodReturnA stack manipulation returning a value of a given type.static classMethodVariableAccess.MethodLoadingA stack manipulation that loads all parameters of a given method onto the operand stack.protected static classMethodVariableAccess.OffsetIncrementingA stack manipulation that increments an integer variable.protected classMethodVariableAccess.OffsetLoadingA stack manipulation for loading a variable of a method's local variable array onto the operand stack.protected classMethodVariableAccess.OffsetWritingA stack manipulation for storing a variable into a method's local variable array.Methods in net.bytebuddy.implementation.bytecode.member that return StackManipulation Modifier and Type Method Description StackManipulationMethodInvocation.IllegalInvocation. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> arguments)StackManipulationMethodInvocation.Invocation. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> arguments)StackManipulationMethodInvocation.OfGenericMethod. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> arguments)StackManipulationMethodInvocation.WithImplicitInvocationTargetType. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> 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.StackManipulationMethodVariableAccess. 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.StackManipulationMethodVariableAccess. 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 StackManipulationMethodReturn. of(TypeDefinition typeDefinition)Returns a method return corresponding to a given type.StackManipulationMethodVariableAccess.MethodLoading.TypeCastingHandler.ForBridgeTarget. ofIndex(TypeDescription parameterType, int index)StackManipulationMethodVariableAccess.MethodLoading.TypeCastingHandler.NoOp. ofIndex(TypeDescription parameterType, int index)StackManipulationMethodVariableAccess.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.StackManipulationMethodInvocation.IllegalInvocation. onHandle(MethodInvocation.HandleType type)StackManipulationMethodInvocation.Invocation. onHandle(MethodInvocation.HandleType type)StackManipulationMethodInvocation.OfGenericMethod. onHandle(MethodInvocation.HandleType type)StackManipulationMethodInvocation.WithImplicitInvocationTargetType. onHandle(MethodInvocation.HandleType type)Invokes the method via aMethodHandle.StackManipulationMethodVariableAccess.MethodLoading. prependThisReference()Prepends a reference to thethisinstance to the loaded parameters if the represented method is non-static.StackManipulationFieldAccess.AccessDispatcher. read()StackManipulationFieldAccess.Defined. read()Creates a getter representation for a given field.StackManipulationFieldAccess.OfGenericField. read()StackManipulationMethodInvocation.IllegalInvocation. special(TypeDescription invocationTarget)StackManipulationMethodInvocation.Invocation. special(TypeDescription invocationTarget)StackManipulationMethodInvocation.OfGenericMethod. special(TypeDescription invocationTarget)StackManipulationMethodInvocation.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.StackManipulationMethodVariableAccess. storeAt(int offset)Creates a stack assignment for writing to a given offset of the local variable array.StackManipulationMethodInvocation.IllegalInvocation. virtual(TypeDescription invocationTarget)StackManipulationMethodInvocation.Invocation. virtual(TypeDescription invocationTarget)StackManipulationMethodInvocation.OfGenericMethod. virtual(TypeDescription invocationTarget)StackManipulationMethodInvocation.WithImplicitInvocationTargetType. virtual(TypeDescription invocationTarget)Transforms this method invocation into a virtual (or interface) method invocation on the given type.StackManipulationFieldAccess.AccessDispatcher. write()StackManipulationFieldAccess.Defined. write()Creates a setter representation for a given field.StackManipulationFieldAccess.OfGenericField. write() -
Uses of StackManipulation in net.bytebuddy.utility
Methods in net.bytebuddy.utility that return StackManipulation Modifier and Type Method Description StackManipulationJavaConstant. asStackManipulation()Returns the instance as loadable onto the operand stack.StackManipulationJavaConstant.MethodHandle. asStackManipulation()StackManipulationJavaConstant.MethodType. asStackManipulation()
-