Uses of Interface
net.bytebuddy.description.method.MethodDescription
Packages that use MethodDescription
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.
A package for types that allow for applying Byte Buddy transformation during a build process.
Contains descriptions of Java methods and constructors as well as their parameters.
Contains descriptions of Java types and packages.
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
All classes and types in this package are related to creating a
DynamicType
by
enhancing a given type.All classes and types in this package are related to creating a
DynamicType
by
creating a subclass of a given type.The implementation package contains any logic for intercepting method calls.
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e.
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
.StackManipulation
s of this package are responsible for
accessing type or method members, i.e.Contains an API for matching Java byte code entities.
Classes of this package allow for the creating
TypeDescription
s without
loading any classes.This package contains utility classes for common use within any Byte Buddy logic.
A package containing visitor classes for ASM.
-
Uses of MethodDescription in net.bytebuddy
Fields in net.bytebuddy with type parameters of type MethodDescriptionModifier and TypeFieldDescriptionprotected final LatentMatcher
<? super MethodDescription> ByteBuddy.ignoredMethods
A matcher for identifying methods that should be excluded from instrumentation.Methods in net.bytebuddy with parameters of type MethodDescriptionModifier and TypeMethodDescriptionByteBuddy.EnumerationImplementation.InitializationAppender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ByteBuddy.EnumerationImplementation.ValuesMethodAppender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ByteBuddy.RecordConstructorStrategy.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.Method parameters in net.bytebuddy with type arguments of type MethodDescriptionModifier and TypeMethodDescriptionByteBuddy.ignore
(ElementMatcher<? super MethodDescription> ignoredMethods) Creates a new configuration where anyMethodDescription
that matches the provided method matcher is excluded from instrumentation.ByteBuddy.ignore
(LatentMatcher<? super MethodDescription> ignoredMethods) Creates a new configuration where anyMethodDescription
that matches the provided method matcher is excluded from instrumentation.Constructor parameters in net.bytebuddy with type arguments of type MethodDescriptionModifierConstructorDescriptionprotected
ByteBuddy
(ClassFileVersion classFileVersion, NamingStrategy namingStrategy, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, InstrumentedType.Factory instrumentedTypeFactory, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods) Creates a new Byte Buddy instance. -
Uses of MethodDescription in net.bytebuddy.agent.builder
Fields in net.bytebuddy.agent.builder declared as MethodDescriptionModifier and TypeFieldDescriptionprivate final MethodDescription
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.targetMethod
The target method of the lambda expression.Fields in net.bytebuddy.agent.builder with type parameters of type MethodDescriptionModifier and TypeFieldDescriptionprivate final LatentMatcher
<? super MethodDescription> AgentBuilder.Transformer.ForAdvice.Entry.matcher
The matcher for advised methods.Methods in net.bytebuddy.agent.builder that return types with arguments of type MethodDescriptionModifier and TypeMethodDescriptionprotected LatentMatcher
<? super MethodDescription> AgentBuilder.Transformer.ForAdvice.Entry.getMatcher()
Returns the matcher for advised methods.Methods in net.bytebuddy.agent.builder with parameters of type MethodDescriptionModifier and TypeMethodDescriptionAgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.BridgeMethodImplementation.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.ConstructorImplementation.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.FactoryImplementation.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.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.protected static ByteCodeAppender
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.of
(MethodDescription targetMethod, JavaConstant.MethodType specializedLambdaMethod, List<FieldDescription.InDefinedShape> declaredFields, JavaConstant.MethodHandle.HandleType handleType, TypeDescription targetType) Resolves an appropriate appender for this lambda expression.Method parameters in net.bytebuddy.agent.builder with type arguments of type MethodDescriptionModifier and TypeMethodDescriptionAgentBuilder.Transformer.ForAdvice.advice
(ElementMatcher<? super MethodDescription> matcher, String name) Applies the given advice class onto all methods that satisfy the supplied matcher.AgentBuilder.Transformer.ForAdvice.advice
(ElementMatcher<? super MethodDescription> matcher, String enter, String exit) Applies the given advice class onto all methods that satisfy the supplied matcher.AgentBuilder.Transformer.ForAdvice.advice
(LatentMatcher<? super MethodDescription> matcher, String name) Applies the given advice class onto all methods that satisfy the supplied matcher.AgentBuilder.Transformer.ForAdvice.advice
(LatentMatcher<? super MethodDescription> matcher, String enter, String exit) Applies the given advice class onto all methods that satisfy the supplied matcher.Constructors in net.bytebuddy.agent.builder with parameters of type MethodDescriptionModifierConstructorDescriptionprotected
Appender
(MethodDescription targetMethod, JavaConstant.MethodType specializedLambdaMethod, List<FieldDescription.InDefinedShape> declaredFields, AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.Dispatcher dispatcher) Creates an appender of a lambda expression's functional method.Constructor parameters in net.bytebuddy.agent.builder with type arguments of type MethodDescriptionModifierConstructorDescriptionprotected
Entry
(LatentMatcher<? super MethodDescription> matcher) Creates a new entry.protected
ForSplitAdvice
(LatentMatcher<? super MethodDescription> matcher, String enter, String exit) Creates a new entry for an advice class with explicit entry and exit advice classes.protected
ForUnifiedAdvice
(LatentMatcher<? super MethodDescription> matcher, String name) Creates a new entry for an advice class where both the (optional) entry and exit advice methods are declared by the same class. -
Uses of MethodDescription in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as MethodDescriptionModifier and TypeFieldDescriptionprotected final MethodDescription
Advice.ArgumentHandler.ForAdvice.Default.adviceMethod
The advice method.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation.delegate
The delegation method.protected final MethodDescription
Advice.AdviceVisitor.instrumentedMethod
A description of the instrumented method.protected final MethodDescription
Advice.ArgumentHandler.ForAdvice.Default.instrumentedMethod
The instrumented method.protected final MethodDescription
Advice.ArgumentHandler.ForInstrumentedMethod.Default.instrumentedMethod
The instrumented method.private final MethodDescription
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.instrumentedMethod
The instrumented method.private final MethodDescription
Advice.Dispatcher.Inlining.CodeTranslationVisitor.instrumentedMethod
The instrumented method.protected final MethodDescription
Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.instrumentedMethod
The instrumented method.private final MethodDescription
Advice.Dispatcher.RelocationHandler.ForType.Bound.instrumentedMethod
The instrumented method.private final MethodDescription
Advice.Dispatcher.RelocationHandler.ForValue.Bound.instrumentedMethod
The instrumented method.protected final MethodDescription
Advice.MethodSizeHandler.Default.instrumentedMethod
The instrumented method.protected final MethodDescription
Advice.StackMapFrameHandler.Default.instrumentedMethod
The instrumented method.private final MethodDescription
MemberSubstitution.SubstitutingMethodVisitor.instrumentedMethod
The instrumented method.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.Resolved.instrumentedMethod
The instrumented method.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Resolved.instrumentedMethod
The instrumented method.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument.Resolved.instrumentedMethod
The instrumented method.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Resolved.instrumentedMethod
The instrumented method.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.Bound.instrumentedMethod
The instrumented method.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.Unbound.instrumentedMethod
The instrumented method.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Resolved.instrumentedMethod
The instrumented method.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved.instrumentedMethod
The instrumented method.private final MethodDescription
MemberAttributeExtension.ForMethod.AttributeAppendingMethodVisitor.methodDescription
The instrumented method.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory.methodDescription
The invoked method or constructor.private final MethodDescription
MemberSubstitution.Substitution.Chain.Step.ForInvocation.methodDescription
The invoked method or constructor.private final MethodDescription
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple.methodDescription
The method to substitute with.private final MethodDescription
MemberSubstitution.Substitution.ForMethodInvocation.OfGivenMethod.methodDescription
The method to invoke.Fields in net.bytebuddy.asm with type parameters of type MethodDescriptionModifier and TypeFieldDescriptionprivate final ElementMatcher
<? super MethodDescription> AsmVisitorWrapper.ForDeclaredMethods.Entry.matcher
The matcher to identify methods to be wrapped.private final ElementMatcher
<? super MethodDescription> MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching.matcher
The matcher to use for locating the method to substitute with.private final ElementMatcher
<? super MethodDescription> MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod.matcher
The matcher for locating the method to substitute with.private final ElementMatcher
<? super MethodDescription> MemberSubstitution.WithoutSpecification.ForMatchedMethod.matcher
A matcher for any method or constructor that should be substituted.private final List
<ModifierAdjustment.Adjustment<MethodDescription>> ModifierAdjustment.methodAdjustments
A list of adjustments to apply to the instrumented type's methods.private final List
<ModifierAdjustment.Adjustment<MethodDescription>> ModifierAdjustment.ModifierAdjustingClassVisitor.methodAdjustments
A list of method modifier adjustments to apply.private final ElementMatcher.Junction
<MethodDescription> MemberRemoval.MemberRemovingClassVisitor.methodMatcher
The matcher that determines method removal.private final ElementMatcher.Junction
<MethodDescription> MemberRemoval.methodMatcher
The matcher that decides upon method removal.private final ElementMatcher
<? super MethodDescription> MemberSubstitution.Replacement.ForElementMatchers.Factory.methodMatcher
The method matcher to consider when discovering methods.private final ElementMatcher
<? super MethodDescription> MemberSubstitution.Replacement.ForElementMatchers.methodMatcher
The method matcher to consider when discovering methods.private final Map
<String, MethodDescription> AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor.methods
A mapping of fields by their name.private final Map
<String, MethodDescription> MemberRemoval.MemberRemovingClassVisitor.methods
A mapping of method names and descriptors to their description.private final Map
<String, MethodDescription> ModifierAdjustment.ModifierAdjustingClassVisitor.methods
A mapping of method names and descriptors to their description.Methods in net.bytebuddy.asm that return MethodDescriptionModifier and TypeMethodDescriptionMemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching.resolve
(TypeDescription receiver, ByteCodeElement.Member original, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the method to substitute with.MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.resolve
(TypeDescription receiver, ByteCodeElement.Member original, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the method to substitute with.MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple.resolve
(TypeDescription receiver, ByteCodeElement.Member original, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the method to substitute with.Methods in net.bytebuddy.asm with parameters of type MethodDescriptionModifier and TypeMethodDescriptionAdvice.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.Advice.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.protected abstract org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Advice.OffsetMapping.ForOrigin.Renderer.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForConstantValue.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForDescriptor.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForJavaSignature.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForPropertyName.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForReturnTypeName.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForTypeName.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.ClassVisitorFactory.AttributeTranslator.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ClassVisitorFactory.ConstantArrayTranslator.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ClassVisitorFactory.ConstantDynamicTranslator.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ClassVisitorFactory.ConstantTranslator.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ClassVisitorFactory.FrameTranslator.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ClassVisitorFactory.HandleTranslator.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ClassVisitorFactory.LabelArrayTranslator.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ClassVisitorFactory.LabelTranslator.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ClassVisitorFactory.NullCheckedConstruction.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ClassVisitorFactory.TypePathTranslator.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.protected abstract MemberSubstitution.Source.Value
MemberSubstitution.Source.argument
(int index, TypeList.Generic parameters, Map<Integer, Integer> offsets, ByteCodeElement.Member original, MethodDescription instrumentedMethod) Resolves a value representation of the parameter of the specified index ornull
if no such parameter is available.protected abstract List
<MemberSubstitution.Source.Value> MemberSubstitution.Source.arguments
(boolean includesSelf, TypeList.Generic parameters, Map<Integer, Integer> offsets, ByteCodeElement.Member original, MethodDescription instrumentedMethod) Resolves a list of value representation of all parameters.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.RelocationHandler.bind
(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.Advice.Dispatcher.RelocationHandler.Disabled.bind
(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.Advice.Dispatcher.RelocationHandler.ForType.bind
(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.Advice.Dispatcher.RelocationHandler.ForValue.OfDefault.bind
(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.Advice.Dispatcher.RelocationHandler.ForValue.OfNonDefault.bind
(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.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.MemberSubstitution.Replacement.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, FieldDescription.InDefinedShape fieldDescription, boolean writeAccess) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.ForElementMatchers.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, FieldDescription.InDefinedShape fieldDescription, boolean writeAccess) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.ForElementMatchers.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.ForFirstBinding.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, FieldDescription.InDefinedShape fieldDescription, boolean writeAccess) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.ForFirstBinding.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.NoOp.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, FieldDescription.InDefinedShape fieldDescription, boolean writeAccess) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.NoOp.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType) Binds this replacement for a field that was discovered.Advice.ArgumentHandler.ForInstrumentedMethod.bindEnter
(MethodDescription adviceMethod) Binds an advice method as enter advice for this handler.Advice.ArgumentHandler.ForInstrumentedMethod.Default.bindEnter
(MethodDescription adviceMethod) Binds an advice method as enter advice for this handler.Advice.ArgumentHandler.ForInstrumentedMethod.bindExit
(MethodDescription adviceMethod, boolean skipThrowable) Binds an advice method as exit advice for this handler.Advice.ArgumentHandler.ForInstrumentedMethod.Default.bindExit
(MethodDescription adviceMethod, boolean skipThrowable) Binds an advice method as exit advice for this handler.protected abstract int
Advice.StackMapFrameHandler.Default.TranslationMode.copy
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription methodDescription, Object[] localVariable, Object[] translated) Copies the fixed parameters of the instrumented method onto the operand stack.protected abstract StackManipulation
Advice.OffsetMapping.ForSelfCallHandle.decorate
(MethodDescription methodDescription, StackManipulation stackManipulation) Resolves a stack manipulation.protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.doApply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.WithDiscardedEnterType.doApply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.private org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.doApply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.doResolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Binds this dispatcher for resolution to a specific method.protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.WithDiscardedEnterType.doResolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Binds this dispatcher for resolution to a specific method.private Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.doResolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Binds this dispatcher for resolution to a specific method.protected org.objectweb.asm.MethodVisitor
Advice.doWrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, int writerFlags, int readerFlags) Wraps the method visitor to implement this advice.protected abstract ByteCodeElement.Member
MemberSubstitution.Source.element
(ByteCodeElement.Member original, MethodDescription instrumentedMethod) Resolves the targeted byte code element.protected abstract JavaConstant.MethodHandle
MemberSubstitution.Source.handle
(JavaConstant.MethodHandle methodHandle, MethodDescription instrumentedMethod) Resolves a method handle.protected abstract boolean
Advice.StackMapFrameHandler.Default.TranslationMode.isPossibleThisFrameValue
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Object frame) Checks if a variable value in a stack map frame is a legal value for describing athis
reference.abstract boolean
Advice.OffsetMapping.Sort.isPremature
(MethodDescription methodDescription) Checks if an advice is executed in a premature state, i.e.protected abstract boolean
Advice.OffsetMapping.ForInstrumentedMethod.isRepresentable
(MethodDescription instrumentedMethod) Checks if the supplied method is representable for the assigned offset mapping.protected abstract boolean
MemberSubstitution.Source.isRepresentable
(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort sort, ByteCodeElement.Member original, MethodDescription instrumentedMethod) Validates if the supplied origin sort is representable.MemberSubstitution.Replacement.Factory.Compound.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.MemberSubstitution.Replacement.Factory.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.MemberSubstitution.Replacement.ForElementMatchers.Factory.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.MemberSubstitution.Replacement.NoOp.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.MemberSubstitution.Substitution.Chain.Factory.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.Chain.Step.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForAssignment.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForField.Read.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForField.Write.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.Simple.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Factory.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForFieldAccess.OfGivenField.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForFieldAccess.OfMatchedField.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForMethodInvocation.OfGivenMethod.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForValue.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.Stubbing.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.boolean
AsmVisitorWrapper.ForDeclaredMethods.Entry.matches
(MethodDescription target) Matches a target against this element matcher.protected static Advice.MethodSizeHandler.ForInstrumentedMethod
Advice.MethodSizeHandler.Default.of
(MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean copyArguments, int writerFlags) Creates a method size handler applicable for the given instrumented method.protected static Advice.StackMapFrameHandler.ForInstrumentedMethod
Advice.StackMapFrameHandler.Default.of
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean exitAdvice, boolean copyArguments, ClassFileVersion classFileVersion, int writerFlags, int readerFlags) Creates an appropriate stack map frame handler for an instrumented method.protected static MemberSubstitution.Replacement.InvocationType
MemberSubstitution.Replacement.InvocationType.of
(int opcode, MethodDescription methodDescription) Resolves an invocation type.MemberSubstitution.WithoutSpecification.replaceWith
(MethodDescription methodDescription) Replaces any interaction with a matched byte code element by an invocation of the specified method.protected ByteCodeAppender.Size
Advice.Appender.EmulatingMethodVisitor.resolve
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Resolves this this advice emulating method visitor for its delegate.protected abstract Advice.ArgumentHandler.ForInstrumentedMethod
Advice.ArgumentHandler.Factory.resolve
(MethodDescription instrumentedMethod, TypeDefinition enterType, TypeDefinition exitType, SortedMap<String, TypeDefinition> namedTypes) Creates an argument handler.Advice.AssignReturned.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription.Generic 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.Generic type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToArguments.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription.Generic type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToFields.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription.Generic type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToReturned.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription.Generic type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToThis.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription.Generic type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToThrown.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription.Generic type, StackManipulation value) Resolves this handler.Advice.BootstrapArgumentResolver.ForDefaultValues.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the constants that are provided as arguments to the bootstrap methods.Advice.BootstrapArgumentResolver.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the constants that are provided as arguments to the bootstrap methods.protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) protected abstract Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.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.OffsetMapping.ForAllArguments.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.protected abstract ParameterDescription
Advice.OffsetMapping.ForArgument.resolve
(MethodDescription instrumentedMethod) Resolves the bound parameter.Advice.OffsetMapping.ForArgument.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.protected ParameterDescription
Advice.OffsetMapping.ForArgument.Resolved.resolve
(MethodDescription instrumentedMethod) protected ParameterDescription
Advice.OffsetMapping.ForArgument.Unresolved.resolve
(MethodDescription instrumentedMethod) Advice.OffsetMapping.ForArgument.Unresolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForEnterValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForExitValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.protected abstract FieldDescription
Advice.OffsetMapping.ForField.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the field being bound.Advice.OffsetMapping.ForField.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.protected FieldDescription
Advice.OffsetMapping.ForField.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected FieldDescription
Advice.OffsetMapping.ForField.Unresolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected abstract FieldDescription
Advice.OffsetMapping.ForFieldHandle.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the field being bound.Advice.OffsetMapping.ForFieldHandle.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.protected FieldDescription
Advice.OffsetMapping.ForFieldHandle.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected FieldDescription
Advice.OffsetMapping.ForFieldHandle.Unresolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Advice.OffsetMapping.ForInstrumentedMethod.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForInstrumentedType.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForLocalValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForOrigin.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForReturnValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForSelfCallHandle.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForSerializedValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForStackManipulation.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForStubValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForThisReference.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForThrowable.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForUnusedValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.PostProcessor.Compound.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.PostProcessor.NoOp.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.PostProcessor.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.protected abstract StackManipulation
MemberSubstitution.Source.resolve
(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort sort, ByteCodeElement.Member original, 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.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves this resolver for a given instrumented type and method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves this resolver for a given instrumented type and method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a dispatcher for a given instrumented type and method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a dispatcher for a given instrumented type and method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a dispatcher for a given instrumented type and method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForCurrent.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.protected abstract FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a description of the field being accessed.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.protected FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected abstract FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a description of the field being accessed.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.protected FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.TypePoolResolver.ForClassFileLocator.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.MemberSubstitution.TypePoolResolver.ForExplicitPool.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.MemberSubstitution.TypePoolResolver.OfImplicitPool.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.MemberSubstitution.TypePoolResolver.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.protected abstract MemberSubstitution.Source.Value
MemberSubstitution.Source.self
(TypeList.Generic parameters, Map<Integer, Integer> offsets, ByteCodeElement.Member original, MethodDescription instrumentedMethod) Resolves a value representation of thethis
reference ornull
if no such reference is available.protected void
Advice.StackMapFrameHandler.Default.translateFrame
(org.objectweb.asm.MethodVisitor methodVisitor, Advice.StackMapFrameHandler.Default.TranslationMode translationMode, MethodDescription methodDescription, List<? extends TypeDescription> additionalTypes, int type, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack) Translates a frame.protected void
Advice.StackMapFrameHandler.Default.WithPreservedArguments.translateFrame
(org.objectweb.asm.MethodVisitor methodVisitor, Advice.StackMapFrameHandler.Default.TranslationMode translationMode, MethodDescription methodDescription, List<? extends TypeDescription> additionalTypes, int type, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack) org.objectweb.asm.MethodVisitor
Advice.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.org.objectweb.asm.MethodVisitor
AsmVisitorWrapper.ForDeclaredMethods.Entry.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.org.objectweb.asm.MethodVisitor
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.org.objectweb.asm.MethodVisitor
MemberAttributeExtension.ForMethod.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.org.objectweb.asm.MethodVisitor
MemberSubstitution.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.Method parameters in net.bytebuddy.asm with type arguments of type MethodDescriptionModifier and TypeMethodDescriptionAsmVisitorWrapper.ForDeclaredMethods.constructor
(ElementMatcher<? super MethodDescription> matcher, List<? extends AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper> methodVisitorWrappers) Defines a new method visitor wrapper to be applied on any constructor if the given method matcher is matched.AsmVisitorWrapper.ForDeclaredMethods.constructor
(ElementMatcher<? super MethodDescription> matcher, AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper... methodVisitorWrapper) Defines a new method visitor wrapper to be applied on any constructor if the given method matcher is matched.MemberSubstitution.constructor
(ElementMatcher<? super MethodDescription> matcher) Substitutes any constructor invocation that matches the given matcher.AsmVisitorWrapper.ForDeclaredMethods.invokable
(ElementMatcher<? super MethodDescription> matcher, List<? extends AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper> methodVisitorWrappers) Defines a new method visitor wrapper to be applied on any method or constructor if the given method matcher is matched.AsmVisitorWrapper.ForDeclaredMethods.invokable
(ElementMatcher<? super MethodDescription> matcher, AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper... methodVisitorWrapper) Defines a new method visitor wrapper to be applied on any method or constructor if the given method matcher is matched.MemberSubstitution.invokable
(ElementMatcher<? super MethodDescription> matcher) Substitutes any method or constructor invocation that matches the given matcher.AsmVisitorWrapper.ForDeclaredMethods.method
(ElementMatcher<? super MethodDescription> matcher, List<? extends AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper> methodVisitorWrappers) Defines a new method visitor wrapper to be applied on any method if the given method matcher is matched.AsmVisitorWrapper.ForDeclaredMethods.method
(ElementMatcher<? super MethodDescription> matcher, AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper... methodVisitorWrapper) Defines a new method visitor wrapper to be applied on any method if the given method matcher is matched.MemberSubstitution.method
(ElementMatcher<? super MethodDescription> matcher) Substitutes any method invocation that matches the given matcher.protected static MemberSubstitution.Replacement.Factory
MemberSubstitution.Replacement.ForElementMatchers.Factory.ofMethod
(ElementMatcher<? super MethodDescription> matcher, boolean includeVirtualCalls, boolean includeSuperCalls, MemberSubstitution.Substitution.Factory factory) Creates a factory that only matches method and constructor invocations for given invocation types.Advice.on
(ElementMatcher<? super MethodDescription> matcher) Returns an ASM visitor wrapper that matches the given matcher and applies this advice to the matched methods.MemberAttributeExtension.ForMethod.on
(ElementMatcher<? super MethodDescription> matcher) Applies this attribute extension on any method or constructor that matches the supplied matcher.MemberSubstitution.on
(ElementMatcher<? super MethodDescription> matcher) Applies this member substitution to any method that matches the supplied matcher.MemberSubstitution.WithoutSpecification.replaceWithMethod
(ElementMatcher<? super MethodDescription> matcher) Replaces any interaction with a matched byte code element with a non-static method access on the first parameter of the matched element.MemberSubstitution.WithoutSpecification.replaceWithMethod
(ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Replaces any interaction with a matched byte code element with a non-static method access on the first parameter of the matched element.MemberRemoval.stripConstructors
(ElementMatcher<? super MethodDescription> matcher) Specifies that any constructor that matches the specified matcher should be removed.MemberRemoval.stripInvokables
(ElementMatcher<? super MethodDescription> matcher) Specifies that any method or constructor that matches the specified matcher should be removed.MemberRemoval.stripMethods
(ElementMatcher<? super MethodDescription> matcher) Specifies that any method that matches the specified matcher should be removed.ModifierAdjustment.withConstructorModifiers
(ElementMatcher<? super MethodDescription> matcher, List<? extends ModifierContributor.ForMethod> modifierContributors) Adjusts a constructor's modifiers if it fulfills the supplied matcher.ModifierAdjustment.withConstructorModifiers
(ElementMatcher<? super MethodDescription> matcher, ModifierContributor.ForMethod... modifierContributor) Adjusts a constructor's modifiers if it fulfills the supplied matcher.ModifierAdjustment.withInvokableModifiers
(ElementMatcher<? super MethodDescription> matcher, List<? extends ModifierContributor.ForMethod> modifierContributors) Adjusts a method's or constructor's modifiers if it fulfills the supplied matcher.ModifierAdjustment.withInvokableModifiers
(ElementMatcher<? super MethodDescription> matcher, ModifierContributor.ForMethod... modifierContributor) Adjusts a method's or constructor's modifiers if it fulfills the supplied matcher.ModifierAdjustment.withMethodModifiers
(ElementMatcher<? super MethodDescription> matcher, List<? extends ModifierContributor.ForMethod> modifierContributors) Adjusts a method's modifiers if it fulfills the supplied matcher.ModifierAdjustment.withMethodModifiers
(ElementMatcher<? super MethodDescription> matcher, ModifierContributor.ForMethod... modifierContributor) Adjusts a method's modifiers if it fulfills the supplied matcher.Constructors in net.bytebuddy.asm with parameters of type MethodDescriptionModifierConstructorDescriptionprotected
AdviceMethodInliner
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, org.objectweb.asm.ClassReader classReader) Creates a new advice method inliner.protected
AdviceMethodWriter
(MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
AdviceVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags) Creates a new advice visitor.private
AttributeAppendingMethodVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, MethodAttributeAppender methodAttributeAppender, AnnotationValueFilter annotationValueFilter) protected
Bound
(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Creates a new bound relocation handler.protected
Bound
(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation, int index, boolean inverted) Creates a new bound relocation handler.protected
Bound
(MemberSubstitution.Source source, MethodDescription instrumentedMethod) Creates an offset mapping for a bound version of a self call handle.protected
CodeTranslationVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, MethodDescription.InDefinedShape adviceMethod, Map<Integer, Advice.OffsetMapping.Target> offsetMappings, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.PostProcessor postProcessor, boolean exit) Creates a new code translation visitor.protected
Copying
(MethodDescription instrumentedMethod, TypeDefinition exitType, SortedMap<String, TypeDefinition> namedTypes, TypeDefinition enterType) Creates a new copying argument handler for an instrumented method.protected
Default
(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, SortedMap<String, TypeDefinition> namedTypes) Creates a new argument handler for an enter advice.protected
Default
(MethodDescription instrumentedMethod, TypeDefinition exitType, SortedMap<String, TypeDefinition> namedTypes, TypeDefinition enterType) Creates a new default argument handler for an instrumented method.protected
Default
(MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes) Creates a new default meta data handler that recomputes the space requirements of an instrumented method.protected
Default
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames) Creates a new default stack map frame handler.Factory
(MethodDescription methodDescription) Creates a factory for a method invocation without parameter substitutions.Factory
(MethodDescription methodDescription, Map<Integer, Integer> substitutions) Creates a factory for a method invocation.protected
ForInvocation
(MethodDescription methodDescription, Map<Integer, Integer> substitutions, Assigner assigner, Assigner.Typing typing) Creates a new step of an invocation.protected
ForMethodEnter
(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, SortedMap<String, TypeDefinition> namedTypes) Creates a new argument handler for an enter advice method.protected
ForMethodEnter
(MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
ForMethodExit
(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, SortedMap<String, TypeDefinition> namedTypes, TypeDefinition enterType, StackSize throwableSize) Creates a new argument handler for an exit advice method.protected
ForMethodExit
(MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
ForRegularInvocation
(MethodDescription delegate) Creates a dispatcher for a regular method invocation.OfGivenMethod
(MethodDescription methodDescription) Creates a new factory for a substitution that invokes a given method.protected
Resolved
(MethodDescription.InDefinedShape delegate, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a resolved version of a bootstrap argument resolver.protected
Resolved
(TypeDescription.Generic targetComponentType, Assigner.Typing typing, MemberSubstitution.Source source, boolean includeSelf, boolean nullIfEmpty, Assigner assigner, MethodDescription instrumentedMethod) Creates a resolved version for an offset mapping of all arguments.protected
Resolved
(TypeDescription.Generic targetType, int index, Assigner.Typing typing, MemberSubstitution.Source source, boolean optional, Assigner assigner, MethodDescription instrumentedMethod) Creates a resolved offset mapping for assigning a parameter.protected
Resolved
(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort sort, MemberSubstitution.Source source, MethodDescription instrumentedMethod) Creates a resolved version of an offset mapping for describing the substituted expression or instrumented method.protected
Resolved
(MemberSubstitution.Source source, MethodDescription instrumentedMethod) Creates a resolved version of an offset mapping for a stub value.protected
Resolved
(TypeDescription.Generic targetType, Assigner.Typing typing, MemberSubstitution.Source source, boolean optional, Assigner assigner, MethodDescription instrumentedMethod) Creates a resolved offset mapping for assigning thethis
reference.protected
Simple
(MethodDescription instrumentedMethod, TypeDefinition exitType, SortedMap<String, TypeDefinition> namedTypes, TypeDefinition enterType) Creates a new simple argument handler for an instrumented method.Simple
(MethodDescription methodDescription) Creates a new simple method resolver.protected
SubstitutingMethodVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodGraph.Compiler methodGraphCompiler, boolean strict, MemberSubstitution.Replacement replacement, Implementation.Context implementationContext, TypePool typePool, boolean virtualPrivateCalls) Creates a new substituting method visitor.protected
Trivial
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> latentTypes, boolean expandFrames) Creates a new stack map frame handler that applies a trivial translation for the instrumented method's stack map frames.protected
Unbound
(MemberSubstitution.Source source, MethodDescription instrumentedMethod) Creates an offset mapping for an unbound version of a self call handle.protected
WithArgumentCopy
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames) Creates a new stack map frame handler that expects an argument copy.protected
WithCopiedArguments
(MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes) Creates a new default method size handler that expects the original arguments to be copied.protected
WithExceptionHandling
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, int writerFlags, int readerFlags, TypeDescription throwable) Creates a new advice visitor that captures exception by weaving try-catch blocks around user code.protected
WithExitAdvice
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags) Creates an advice visitor that applies exit advice.protected
WithoutArgumentCopy
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames, boolean allowCompactCompletionFrame) Creates a new stack map frame handler that expects the original frames to be preserved.protected
WithoutExceptionHandling
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, int writerFlags, int readerFlags) Creates a new advice visitor that does not capture exceptions.protected
WithoutExitAdvice
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, int writerFlags, int readerFlags) Creates an advice visitor that does not apply exit advice.protected
WithPreservedArguments
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames, boolean allowCompactCompletionFrame) Creates a new stack map frame handler that requires the stack map frames of the original arguments to be preserved.protected
WithRetainedArguments
(MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes) Creates a new default method size handler that expects that the original arguments are retained.Constructor parameters in net.bytebuddy.asm with type arguments of type MethodDescriptionModifierConstructorDescriptionprotected
DispatchingVisitor
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, Implementation.Context implementationContext, TypePool typePool, Map<String, MethodDescription> methods, int writerFlags, int readerFlags) Creates a new dispatching visitor.protected
Entry
(ElementMatcher<? super MethodDescription> matcher, List<? extends AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper> methodVisitorWrappers) Creates a new entry.protected
ForMatchedMethod
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super MethodDescription> matcher) Creates a new member substitution for a matched method that requires a specification for how to perform a substitution.protected
ForMatchedMethod
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super MethodDescription> matcher, boolean includeVirtualCalls, boolean includeSuperCalls) Creates a new member substitution for a matched method that requires a specification for how to perform a substitution.Matching
(TypeDescription instrumentedType, MethodGraph.Compiler methodGraphCompiler, ElementMatcher<? super MethodDescription> matcher) Creates a new matching method resolver.OfMatchedMethod
(ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Creates a factory for a substitution that locates a method on the receiver type. -
Uses of MethodDescription in net.bytebuddy.build
Methods in net.bytebuddy.build with parameters of type MethodDescriptionModifier and TypeMethodDescriptionAccessControllerPlugin.Initializer.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.void
DispatcherAnnotationPlugin.apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given method visitor.void
HashCodeAndEqualsPlugin.apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given method visitor.CachedReturnPlugin.CacheFieldOffsetMapping.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.org.objectweb.asm.MethodVisitor
AccessControllerPlugin.AccessControlWrapper.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor. -
Uses of MethodDescription in net.bytebuddy.description.method
Classes in net.bytebuddy.description.method with type parameters of type MethodDescriptionModifier and TypeInterfaceDescriptioninterface
MethodList<T extends MethodDescription>
Implementations represent a list of method descriptions.static class
MethodList.AbstractBase<S extends MethodDescription>
A base implementation of aMethodList
.static class
MethodList.Empty<S extends MethodDescription>
An implementation of an empty method list.static class
MethodList.Explicit<S extends MethodDescription>
A method list that is a wrapper for a given list of method descriptions.Subinterfaces of MethodDescription in net.bytebuddy.description.methodModifier and TypeInterfaceDescriptionstatic interface
Represents a method in its defined shape, i.e.static interface
Represents a method description in its generic shape, i.e.Classes in net.bytebuddy.description.method that implement MethodDescriptionModifier and TypeClassDescriptionstatic class
An abstract base implementation of a method description.static class
An implementation of a method description for a loaded constructor.static class
An implementation of a method description for a loaded method.static class
An abstract base implementation of a method description in its defined shape.protected static class
A base implementation for a loaded instance representation for ajava.lang.reflect.Executable
.static class
A latent method description describes a method that is not attached to a declaringTypeDescription
.static class
A method description that represents the type initializer.static class
A method description that represents a given method but with substituted method types.Fields in net.bytebuddy.description.method declared as MethodDescriptionModifier and TypeFieldDescriptionprivate final MethodDescription
MethodDescription.TypeSubstituting.methodDescription
The represented method description.Fields in net.bytebuddy.description.method with type parameters of type MethodDescriptionModifier and TypeFieldDescriptionprotected final List
<? extends MethodDescription> MethodList.TypeSubstituting.methodDescriptions
The list of method descriptions to represent.Methods in net.bytebuddy.description.method that return MethodDescriptionModifier and TypeMethodDescriptionParameterDescription.getDeclaringMethod()
Returns the method that declares this parameter.Constructors in net.bytebuddy.description.method with parameters of type MethodDescriptionModifierConstructorDescriptionCreates a new wrapper for a given list of methods.TypeSubstituting
(TypeDescription.Generic declaringType, MethodDescription methodDescription, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) Creates a method description with substituted method types.Constructor parameters in net.bytebuddy.description.method with type arguments of type MethodDescriptionModifierConstructorDescriptionTypeSubstituting
(TypeDescription.Generic declaringType, List<? extends MethodDescription> methodDescriptions, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) Creates a new type substituting method list. -
Uses of MethodDescription in net.bytebuddy.description.type
Methods in net.bytebuddy.description.type that return MethodDescriptionModifier and TypeMethodDescriptionRecordComponentDescription.getAccessor()
Returns the accessor for this record component.Methods in net.bytebuddy.description.type with parameters of type MethodDescriptionModifier and TypeMethodDescriptionstatic TypeList.Generic
TypeList.Generic.ForDetachedTypes.attach
(MethodDescription methodDescription, List<? extends TypeDescription.Generic> detachedTypes) Creates a list of types that are attached to the provided method.static TypeList.Generic
TypeList.Generic.ForDetachedTypes.attachVariables
(MethodDescription methodDescription, List<? extends TypeVariableToken> detachedTypeVariables) Creates a list of type variables that are attached to the provided method.TypeDescription.Generic.Visitor.Substitutor.ForAttachment.of
(MethodDescription methodDescription) Attaches all types to the given method description. -
Uses of MethodDescription in net.bytebuddy.dynamic
Classes in net.bytebuddy.dynamic that implement MethodDescriptionModifier and TypeClassDescriptionprotected static class
The transformed method.Fields in net.bytebuddy.dynamic with type parameters of type MethodDescriptionModifier and TypeFieldDescriptionprotected final LatentMatcher
<? super MethodDescription> DynamicType.Builder.AbstractBase.Adapter.ignoredMethods
A matcher for identifying methods that should be excluded from instrumentation.private final LatentMatcher
<? super MethodDescription> DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.matcher
The method matcher of this adapter.protected final Transformer
<MethodDescription> DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.transformer
The transformer to apply onto the method that is currently being implemented.Methods in net.bytebuddy.dynamic that return MethodDescriptionModifier and TypeMethodDescriptionTransformer.ForMethod.TransformedMethod.TransformedParameter.getDeclaringMethod()
Returns the method that declares this parameter.Transformer.ForMethod.transform
(TypeDescription instrumentedType, MethodDescription methodDescription) Transforms the supplied target.Methods in net.bytebuddy.dynamic that return types with arguments of type MethodDescriptionModifier and TypeMethodDescriptionstatic Transformer
<MethodDescription> Transformer.ForMethod.withModifiers
(List<? extends ModifierContributor.ForMethod> modifierContributors) Creates a transformer that enforces the supplied modifier contributors.static Transformer
<MethodDescription> Transformer.ForMethod.withModifiers
(ModifierContributor.ForMethod... modifierContributor) Creates a transformer that enforces the supplied modifier contributors.Methods in net.bytebuddy.dynamic with parameters of type MethodDescriptionModifier and TypeMethodDescriptionNexusAccessor.InitializationAppender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.DynamicType.Builder.AbstractBase.define
(MethodDescription methodDescription) Defines a method or constructor that is similar to the supplied method description but without copying any annotations of the method/constructor or method/constructor parameters.DynamicType.Builder.define
(MethodDescription methodDescription) Defines a method or constructor that is similar to the supplied method description but without copying any annotations of the method/constructor or method/constructor parameters.boolean
VisibilityBridgeStrategy.generateVisibilityBridge
(MethodDescription methodDescription) Determines if a visibility bridge should be generated for a method that is eligable.Transformer.ForMethod.transform
(TypeDescription instrumentedType, MethodDescription methodDescription) Transforms the supplied target.Method parameters in net.bytebuddy.dynamic with type arguments of type MethodDescriptionModifier and TypeMethodDescriptionDynamicType.Builder.AbstractBase.constructor
(ElementMatcher<? super MethodDescription> matcher) Matches a constructor that is already declared by the instrumented type.DynamicType.Builder.constructor
(ElementMatcher<? super MethodDescription> matcher) Matches a constructor that is already declared by the instrumented type.DynamicType.Builder.AbstractBase.Adapter.ignoreAlso
(LatentMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.AbstractBase.Delegator.ignoreAlso
(ElementMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.AbstractBase.Delegator.ignoreAlso
(LatentMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.AbstractBase.ignoreAlso
(ElementMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.ignoreAlso
(ElementMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.ignoreAlso
(LatentMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.AbstractBase.Adapter.invokable
(LatentMatcher<? super MethodDescription> matcher) Matches a method or constructor that is already declared or inherited by the instrumented type.DynamicType.Builder.AbstractBase.Delegator.invokable
(LatentMatcher<? super MethodDescription> matcher) Matches a method or constructor that is already declared or inherited by the instrumented type.DynamicType.Builder.AbstractBase.invokable
(ElementMatcher<? super MethodDescription> matcher) Matches a method or constructor that is already declared or inherited by the instrumented type.DynamicType.Builder.invokable
(ElementMatcher<? super MethodDescription> matcher) Matches a method or constructor that is already declared or inherited by the instrumented type.DynamicType.Builder.invokable
(LatentMatcher<? super MethodDescription> matcher) Matches a method or constructor that is already declared or inherited by the instrumented type.protected abstract DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.materialize
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) Materializes the supplied state of a dynamic type builder.protected DynamicType.Builder.MethodDefinition
<U> DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.AnnotationAdapter.materialize
(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) protected DynamicType.Builder.MethodDefinition
<U> DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter.materialize
(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) protected abstract DynamicType.Builder.MethodDefinition
<V> DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.materialize
(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) Materializes the current builder as a method definition.DynamicType.Builder.AbstractBase.method
(ElementMatcher<? super MethodDescription> matcher) Matches a method that is already declared or inherited by the instrumented type.DynamicType.Builder.method
(ElementMatcher<? super MethodDescription> matcher) Matches a method that is already declared or inherited by the instrumented type.DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.transform
(Transformer<MethodDescription> transformer) Applies the supplied transformer onto the previously defined or matched method.DynamicType.Builder.MethodDefinition.transform
(Transformer<MethodDescription> transformer) Applies the supplied transformer onto the previously defined or matched method.Constructor parameters in net.bytebuddy.dynamic with type arguments of type MethodDescriptionModifierConstructorDescriptionprotected
Adapter
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) Creates a new default type writer for creating a new type that is not based on an existing class file.protected
Adapter
(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) Creates a new adapter for a method definition.protected
AnnotationAdapter
(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) Creates a new annotation adapter.protected
AnnotationAdapter
(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) Creates a new annotation adapter.protected
MethodMatchAdapter
(LatentMatcher<? super MethodDescription> matcher) Creates a new method match adapter. -
Uses of MethodDescription in net.bytebuddy.dynamic.scaffold
Classes in net.bytebuddy.dynamic.scaffold that implement MethodDescriptionModifier and TypeClassDescriptionprotected static class
A method representing an accessor bridge method.protected static class
A method representing a bridge's target method in its defined shape.protected static class
A method describing a visibility bridge.Fields in net.bytebuddy.dynamic.scaffold declared as MethodDescriptionModifier and TypeFieldDescriptionprivate final MethodDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge.bridgeTarget
The target method of the bridge.private final MethodDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper.bridgeTarget
The target of the bridge method.private final MethodDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget.bridgeTarget
The target method of the bridge.private final MethodDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.bridgeTarget
The method the visibility bridge invokes.private final MethodDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge.bridgeTarget
The method that is the target of the bridge.private final MethodDescription
MethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous.Node.methodDescription
The representative method of this node.private final MethodDescription
MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.methodDescription
The non-ambiguous, representative method of this entry.private final MethodDescription
MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.Node.methodDescription
The representative method of this node.private final MethodDescription
MethodGraph.Node.Simple.methodDescription
The represented method.private final MethodDescription
MethodRegistry.Default.Compiled.Entry.methodDescription
The method to be implemented including potential transformations.private final MethodDescription
MethodRegistry.Default.Prepared.Entry.methodDescription
The method this entry represents.private final MethodDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.WithAnnotationDefaultValue.methodDescription
The implemented method.private final MethodDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.WithBody.methodDescription
The implemented method.private final MethodDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.WithoutBody.methodDescription
The implemented method.private final MethodDescription
TypeWriter.MethodPool.Record.ForNonImplementedMethod.methodDescription
The undefined method.private final MethodDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.visibilityBridge
The visibility bridge.Fields in net.bytebuddy.dynamic.scaffold with type parameters of type MethodDescriptionModifier and TypeFieldDescriptionprivate final LinkedHashMap
<TypeWriter.Default.SignatureKey, MethodDescription> TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.declarableMethods
A mapping of methods to write by their unique signature.private final LinkedHashMap
<MethodDescription, MethodRegistry.Default.Compiled.Entry> MethodRegistry.Default.Compiled.implementations
A map of all method descriptions mapped to their handling entries.private final LinkedHashMap
<MethodDescription, MethodRegistry.Default.Prepared.Entry> MethodRegistry.Default.Prepared.implementations
A map of all method descriptions mapped to their handling entries.private final ElementMatcher
<? super MethodDescription> MethodGraph.Compiler.Default.matcher
A matcher to filter methods from the graph.private final LatentMatcher
<? super MethodDescription> MethodRegistry.Default.Entry.matcher
The latent method matcher that this entry represents.private final LinkedHashSet
<MethodDescription> MethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous.methodDescriptions
A set of ambiguous methods that this entry represents.private final Transformer
<MethodDescription> MethodRegistry.Default.Entry.transformer
The method transformer to be applied to implemented methods.Methods in net.bytebuddy.dynamic.scaffold that return MethodDescriptionModifier and TypeMethodDescriptionTypeWriter.MethodPool.Record.AccessBridgeWrapper.getMethod()
Returns the method that is implemented where the returned method resembles a potential transformation.TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.getMethod()
Returns the method that is implemented where the returned method resembles a potential transformation.TypeWriter.MethodPool.Record.ForDefinedMethod.WithAnnotationDefaultValue.getMethod()
Returns the method that is implemented where the returned method resembles a potential transformation.TypeWriter.MethodPool.Record.ForDefinedMethod.WithBody.getMethod()
Returns the method that is implemented where the returned method resembles a potential transformation.TypeWriter.MethodPool.Record.ForDefinedMethod.WithoutBody.getMethod()
Returns the method that is implemented where the returned method resembles a potential transformation.TypeWriter.MethodPool.Record.ForNonImplementedMethod.getMethod()
Returns the method that is implemented where the returned method resembles a potential transformation.TypeWriter.MethodPool.Record.getMethod()
Returns the method that is implemented where the returned method resembles a potential transformation.protected MethodDescription
MethodRegistry.Default.Prepared.Entry.getMethodDescription()
Returns the method description this entry represents.MethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous.Node.getRepresentative()
Returns the method that is represented by this node.MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.Node.getRepresentative()
Returns the method that is represented by this node.MethodGraph.Node.getRepresentative()
Returns the method that is represented by this node.MethodGraph.Node.Simple.getRepresentative()
Returns the method that is represented by this node.MethodGraph.Node.Unresolved.getRepresentative()
Returns the method that is represented by this node.MethodGraph.Compiler.Default.Merger.Directional.merge
(MethodDescription left, MethodDescription right) Merges two ambiguously resolved methods to yield a single representative.MethodGraph.Compiler.Default.Merger.merge
(MethodDescription left, MethodDescription right) Merges two ambiguously resolved methods to yield a single representative.Methods in net.bytebuddy.dynamic.scaffold that return types with arguments of type MethodDescriptionModifier and TypeMethodDescriptionMethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous.getCandidates()
Returns all candidate methods represented by this entry.MethodGraph.Compiler.Default.Key.Store.Entry.getCandidates()
Returns all candidate methods represented by this entry.MethodGraph.Compiler.Default.Key.Store.Entry.Initial.getCandidates()
Returns all candidate methods represented by this entry.MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.getCandidates()
Returns all candidate methods represented by this entry.ElementMatcher
<? super MethodDescription> MethodRegistry.Default.Entry.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Methods in net.bytebuddy.dynamic.scaffold with parameters of type MethodDescriptionModifier and TypeMethodDescriptionTypeInitializer.None.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.TypeInitializer.Simple.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.protected MethodRegistry.Default.Prepared.Entry
MethodRegistry.Default.Entry.asPreparedEntry
(TypeDescription instrumentedType, MethodDescription methodDescription, Set<MethodDescription.TypeToken> methodTypes, Visibility visibility) Transforms this entry into a prepared state.protected MethodRegistry.Default.Prepared.Entry
MethodRegistry.Default.Entry.asPreparedEntry
(TypeDescription instrumentedType, MethodDescription methodDescription, Visibility visibility) Transforms this entry into a prepared state.MethodRegistry.Handler.Compiled.assemble
(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility) Assembles this compiled entry with a method attribute appender.MethodRegistry.Handler.ForAbstractMethod.assemble
(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility) Assembles this compiled entry with a method attribute appender.MethodRegistry.Handler.ForAnnotationValue.assemble
(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility) Assembles this compiled entry with a method attribute appender.MethodRegistry.Handler.ForImplementation.Compiled.assemble
(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility) Assembles this compiled entry with a method attribute appender.MethodRegistry.Handler.ForVisibilityBridge.Compiled.assemble
(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility) Assembles this compiled entry with a method attribute appender.protected MethodRegistry.Default.Prepared.Entry
MethodRegistry.Default.Entry.asSupplementaryEntry
(MethodDescription methodDescription) Returns a prepared entry for a supplementary method.MethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous.extendBy
(MethodDescription methodDescription, MethodGraph.Compiler.Default.Harmonizer<U> harmonizer) Extends this entry by the given method.MethodGraph.Compiler.Default.Key.Store.Entry.extendBy
(MethodDescription methodDescription, MethodGraph.Compiler.Default.Harmonizer<W> harmonizer) Extends this entry by the given method.MethodGraph.Compiler.Default.Key.Store.Entry.Initial.extendBy
(MethodDescription methodDescription, MethodGraph.Compiler.Default.Harmonizer<U> harmonizer) Extends this entry by the given method.MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.extendBy
(MethodDescription methodDescription, MethodGraph.Compiler.Default.Harmonizer<U> harmonizer) Extends this entry by the given method.protected static MethodRegistry.Default.Prepared.Entry
MethodRegistry.Default.Prepared.Entry.forVisibilityBridge
(MethodDescription bridgeTarget, Visibility visibility) Creates an entry for a visibility bridge.MethodGraph.Compiler.Default.Merger.Directional.merge
(MethodDescription left, MethodDescription right) Merges two ambiguously resolved methods to yield a single representative.MethodGraph.Compiler.Default.Merger.merge
(MethodDescription left, MethodDescription right) Merges two ambiguously resolved methods to yield a single representative.protected static <Q> MethodGraph.Compiler.Default.Key.Harmonized
<Q> MethodGraph.Compiler.Default.Key.Harmonized.of
(MethodDescription methodDescription, MethodGraph.Compiler.Default.Harmonizer<Q> harmonizer) Creates a new harmonized key for the given method description.protected static <Q> MethodGraph.Compiler.Default.Key.Store.Entry
<Q> MethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous.of
(MethodGraph.Compiler.Default.Key.Harmonized<Q> key, MethodDescription left, MethodDescription right, Visibility visibility) Creates a new ambiguous entry if both provided entries are not considered to be a bridge of one another.private static <V> MethodGraph.Compiler.Default.Key.Store.Entry
<V> MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.of
(MethodGraph.Compiler.Default.Key.Harmonized<V> key, MethodDescription override, MethodDescription original, Visibility visibility) Creates an entry for an override where a method overrides another method within a super class.static TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.AccessBridgeWrapper.of
(TypeWriter.MethodPool.Record delegate, TypeDescription instrumentedType, MethodDescription bridgeTarget, Set<MethodDescription.TypeToken> bridgeTypes, MethodAttributeAppender attributeAppender) Wraps the given record in an accessor bridge wrapper if necessary.static TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.of
(TypeDescription instrumentedType, MethodDescription bridgeTarget, MethodAttributeAppender attributeAppender) Creates a record for a visibility bridge.static FieldLocator.Resolution
FieldLocator.Resolution.Simple.ofBeanAccessor
(FieldLocator fieldLocator, MethodDescription methodDescription) Resolves a field locator for a potential accessor method.protected org.objectweb.asm.MethodVisitor
TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.redefine
(MethodDescription methodDescription, boolean abstractOrigin, int modifiers, String genericSignature) Redefines a given method if this is required by looking up a potential implementation from theTypeWriter.MethodPool
.MethodRegistry.Default.Compiled.target
(MethodDescription methodDescription) Looks up a handler entry for a given method.TypeWriter.MethodPool.target
(MethodDescription methodDescription) Looks up a handler entry for a given method.Method parameters in net.bytebuddy.dynamic.scaffold with type arguments of type MethodDescriptionModifier and TypeMethodDescriptionprotected MethodGraph.Compiler.Default.Key.Store
<T> MethodGraph.Compiler.Default.analyze
(TypeDefinition typeDefinition, TypeDefinition key, Map<TypeDefinition, MethodGraph.Compiler.Default.Key.Store<T>> snapshots, ElementMatcher<? super MethodDescription> relevanceMatcher) Analyzes the given type description without checking if the end of the type hierarchy was reached.protected MethodGraph.Compiler.Default.Key.Store
<T> MethodGraph.Compiler.Default.analyzeNullable
(TypeDescription.Generic typeDescription, Map<TypeDefinition, MethodGraph.Compiler.Default.Key.Store<T>> snapshots, ElementMatcher<? super MethodDescription> relevanceMatcher) Analyzes the given type description.MethodRegistry.append
(LatentMatcher<? super MethodDescription> methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Appends the given method definition to this method registry, i.e.MethodRegistry.append
(LatentMatcher<? super MethodDescription> methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Appends the given method definition to this method registry, i.e.MethodRegistry.Default.append
(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Appends the given method definition to this method registry, i.e.MethodRegistry.Default.append
(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Appends the given method definition to this method registry, i.e.protected MethodGraph.Compiler.Default.Key.Store
<T> MethodGraph.Compiler.Default.doAnalyze
(TypeDefinition typeDefinition, Map<TypeDefinition, MethodGraph.Compiler.Default.Key.Store<T>> snapshots, ElementMatcher<? super MethodDescription> relevanceMatcher) Analyzes the given type description without checking if it is already presented in the key store.static <S> MethodGraph.Compiler
MethodGraph.Compiler.Default.of
(MethodGraph.Compiler.Default.Harmonizer<S> harmonizer, MethodGraph.Compiler.Default.Merger merger, ElementMatcher<? super MethodDescription> matcher) Creates a default compiler using the given harmonizer and merger.static MethodGraph
MethodGraph.Simple.of
(List<? extends MethodDescription> methodDescriptions) Returns a method graph that contains all of the provided methods as simple nodes.MethodRegistry.Default.prepare
(InstrumentedType instrumentedType, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, LatentMatcher<? super MethodDescription> ignoredMethods) Prepares this method registry.MethodRegistry.prepare
(InstrumentedType instrumentedType, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, LatentMatcher<? super MethodDescription> ignoredMethods) Prepares this method registry.MethodRegistry.Default.prepend
(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Prepends the given method definition to this method registry, i.e.MethodRegistry.Default.prepend
(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Prepends the given method definition to this method registry, i.e.MethodRegistry.prepend
(LatentMatcher<? super MethodDescription> methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Prepends the given method definition to this method registry, i.e.MethodRegistry.prepend
(LatentMatcher<? super MethodDescription> methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Prepends the given method definition to this method registry, i.e.protected MethodGraph.Compiler.Default.Key.Store
<V> MethodGraph.Compiler.Default.Key.Store.registerTopLevel
(List<? extends MethodDescription> methodDescriptions, MethodGraph.Compiler.Default.Harmonizer<V> harmonizer) Registers a new top level method within this store.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type MethodDescriptionModifierConstructorDescriptionprotected
AccessBridgeWrapper
(TypeWriter.MethodPool.Record delegate, TypeDescription instrumentedType, MethodDescription bridgeTarget, Set<MethodDescription.TypeToken> bridgeTypes, MethodAttributeAppender attributeAppender) Creates a wrapper for adding accessor bridges.protected
AccessorBridge
(MethodDescription bridgeTarget, MethodDescription.TypeToken bridgeType, TypeDescription instrumentedType) Creates a new accessor bridge method.protected
BridgeTarget
(MethodDescription bridgeTarget, TypeDescription instrumentedType) Creates a new bridge target.protected
Entry
(MethodRegistry.Handler.Compiled handler, MethodAttributeAppender attributeAppender, MethodDescription methodDescription, Set<MethodDescription.TypeToken> bridgeTypes, Visibility visibility, boolean bridgeMethod) Creates a new entry for a compiled method registry.protected
Entry
(MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, MethodDescription methodDescription, Set<MethodDescription.TypeToken> typeTokens, Visibility visibility, boolean bridgeMethod) Creates a new prepared entry.ForNonImplementedMethod
(MethodDescription methodDescription) Creates a new undefined record.protected
Node
(MethodGraph.Compiler.Default.Key.Detached key, MethodDescription methodDescription, Visibility visibility) protected
Node
(MethodGraph.Compiler.Default.Key.Detached key, MethodDescription methodDescription, Visibility visibility, boolean visible) Creates a new node.protected
OfVisibilityBridge
(MethodDescription visibilityBridge, MethodDescription bridgeTarget, TypeDescription bridgeType, MethodAttributeAppender attributeAppender) Creates a new record for a visibility bridge.protected
Resolved
(MethodGraph.Compiler.Default.Key.Harmonized<U> key, MethodDescription methodDescription, Visibility visibility) Creates a new resolved entry that is not made visible.protected
Resolved
(MethodGraph.Compiler.Default.Key.Harmonized<U> key, MethodDescription methodDescription, Visibility visibility, boolean madeVisible) Creates a new resolved entry.Simple
(MethodDescription methodDescription) Creates a simple node.protected
VisibilityBridge
(TypeDescription instrumentedType, MethodDescription bridgeTarget) Creates a new visibility bridge.WithAnnotationDefaultValue
(MethodDescription methodDescription, AnnotationValue<?, ?> annotationValue, MethodAttributeAppender methodAttributeAppender) Creates a new entry for defining a method with a default annotation value.WithBody
(MethodDescription methodDescription, ByteCodeAppender byteCodeAppender) Creates a new record for an implemented method without attributes or a modifier resolver.WithBody
(MethodDescription methodDescription, ByteCodeAppender byteCodeAppender, MethodAttributeAppender methodAttributeAppender, Visibility visibility) Creates a new entry for a method that defines a method as byte code.WithoutBody
(MethodDescription methodDescription, MethodAttributeAppender methodAttributeAppender, Visibility visibility) Creates a new entry for a method that is defines but does not append byte code, i.e.Constructor parameters in net.bytebuddy.dynamic.scaffold with type arguments of type MethodDescriptionModifierConstructorDescriptionprotected
Ambiguous
(MethodGraph.Compiler.Default.Key.Harmonized<U> key, LinkedHashSet<MethodDescription> methodDescriptions, Visibility visibility) Creates a new ambiguous entry.protected
Compiled
(TypeDescription instrumentedType, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, MethodList<?> methods, LinkedHashMap<MethodDescription, MethodRegistry.Default.Compiled.Entry> implementations, boolean supportsBridges) Creates a new compiled version of a default method registry.Default
(MethodGraph.Compiler.Default.Harmonizer<T> harmonizer, MethodGraph.Compiler.Default.Merger merger, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor, ElementMatcher<? super MethodDescription> matcher) Creates a new default method graph compiler.protected
Entry
(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Creates a new entry.protected
Entry
(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Creates a new entry.protected
Prepared
(LinkedHashMap<MethodDescription, MethodRegistry.Default.Prepared.Entry> implementations, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeDescription instrumentedType, MethodGraph.Linked methodGraph, MethodList<?> methods) Creates a prepared version of a default method registry. -
Uses of MethodDescription in net.bytebuddy.dynamic.scaffold.inline
Classes in net.bytebuddy.dynamic.scaffold.inline that implement MethodDescriptionModifier and TypeClassDescriptionprotected static class
An description of a rebased constructor.protected static class
A description of a rebased method.Fields in net.bytebuddy.dynamic.scaffold.inline with type parameters of type MethodDescriptionModifier and TypeFieldDescriptionprivate final LatentMatcher
<? super MethodDescription> DecoratingDynamicTypeBuilder.ignoredMethods
A matcher for identifying methods that should be excluded from instrumentation.private final LatentMatcher
<? super MethodDescription> InliningImplementationMatcher.ignoredMethods
A method matcher that matches any ignored method.private final ElementMatcher
<? super MethodDescription> InliningImplementationMatcher.predefinedMethodSignatures
A method matcher that matches any predefined method.Methods in net.bytebuddy.dynamic.scaffold.inline that return MethodDescriptionModifier and TypeMethodDescriptionRebaseImplementationTarget.RebasedMethodInvocation.getMethodDescription()
Returns the method that represents this special method invocation.Methods in net.bytebuddy.dynamic.scaffold.inline that return types with arguments of type MethodDescriptionModifier and TypeMethodDescriptionprotected static LatentMatcher
<MethodDescription> InliningImplementationMatcher.of
(LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType) Creates a matcher where only overridable or declared methods are matched unless those are ignored.ElementMatcher
<? super MethodDescription> InliningImplementationMatcher.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type MethodDescriptionModifier and TypeMethodDescriptionMethodNameTransformer.Prefixing.transform
(MethodDescription methodDescription) Transforms a method's name to an alternative name.MethodNameTransformer.Suffixing.transform
(MethodDescription methodDescription) Transforms a method's name to an alternative name.MethodNameTransformer.transform
(MethodDescription methodDescription) Transforms a method's name to an alternative name.Method parameters in net.bytebuddy.dynamic.scaffold.inline with type arguments of type MethodDescriptionModifier and TypeMethodDescriptionDecoratingDynamicTypeBuilder.ignoreAlso
(LatentMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DecoratingDynamicTypeBuilder.invokable
(LatentMatcher<? super MethodDescription> matcher) Matches a method or constructor that is already declared or inherited by the instrumented type.protected DynamicType.Builder
<T> RebaseDynamicTypeBuilder.materialize
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) protected DynamicType.Builder
<T> RedefinitionDynamicTypeBuilder.materialize
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) protected static LatentMatcher
<MethodDescription> InliningImplementationMatcher.of
(LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType) Creates a matcher where only overridable or declared methods are matched unless those are ignored.Constructor parameters in net.bytebuddy.dynamic.scaffold.inline with type arguments of type MethodDescriptionModifierConstructorDescriptionprotected
AbstractInliningDynamicTypeBuilder
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator) Creates an inlining dynamic type builder.DecoratingDynamicTypeBuilder
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, ClassFileLocator classFileLocator) Creates a new decorating dynamic type builder.protected
DecoratingDynamicTypeBuilder
(TypeDescription instrumentedType, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<DynamicType> auxiliaryTypes, ClassFileLocator classFileLocator) Creates a new decorating dynamic type builder.protected
InliningImplementationMatcher
(LatentMatcher<? super MethodDescription> ignoredMethods, ElementMatcher<? super MethodDescription> predefinedMethodSignatures) Creates a new inline implementation matcher.protected
InliningImplementationMatcher
(LatentMatcher<? super MethodDescription> ignoredMethods, ElementMatcher<? super MethodDescription> predefinedMethodSignatures) Creates a new inline implementation matcher.RebaseDynamicTypeBuilder
(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Creates a rebase dynamic type builder.protected
RebaseDynamicTypeBuilder
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Creates a rebase dynamic type builder.RedefinitionDynamicTypeBuilder
(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator) Creates a redefinition dynamic type builder.protected
RedefinitionDynamicTypeBuilder
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator) Creates a redefinition dynamic type builder. -
Uses of MethodDescription in net.bytebuddy.dynamic.scaffold.subclass
Fields in net.bytebuddy.dynamic.scaffold.subclass with type parameters of type MethodDescriptionModifier and TypeFieldDescriptionprivate final ElementMatcher
<? super MethodDescription> ConstructorStrategy.ForDefaultConstructor.elementMatcher
A matcher to select a super constructor among possible candidates.private final LatentMatcher
<? super MethodDescription> SubclassDynamicTypeBuilder.InstrumentableMatcher.ignoredMethods
A matcher for the ignored methods.Methods in net.bytebuddy.dynamic.scaffold.subclass that return types with arguments of type MethodDescriptionModifier and TypeMethodDescriptionElementMatcher
<? super MethodDescription> SubclassDynamicTypeBuilder.InstrumentableMatcher.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Method parameters in net.bytebuddy.dynamic.scaffold.subclass with type arguments of type MethodDescriptionModifier and TypeMethodDescriptionprotected DynamicType.Builder
<T> SubclassDynamicTypeBuilder.materialize
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) Constructor parameters in net.bytebuddy.dynamic.scaffold.subclass with type arguments of type MethodDescriptionModifierConstructorDescriptionForDefaultConstructor
(ElementMatcher<? super MethodDescription> elementMatcher) Creates a constructor strategy for invoking a super constructor with default arguments.ForDefaultConstructor
(ElementMatcher<? super MethodDescription> elementMatcher, MethodAttributeAppender.Factory methodAttributeAppenderFactory) Creates a constructor strategy for invoking a super constructor with default arguments.protected
InstrumentableMatcher
(LatentMatcher<? super MethodDescription> ignoredMethods) Creates a latent method matcher that matches all methods that are to be instrumented by aSubclassDynamicTypeBuilder
.SubclassDynamicTypeBuilder
(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, ConstructorStrategy constructorStrategy) Creates a new type builder for creating a subclass.protected
SubclassDynamicTypeBuilder
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes, ConstructorStrategy constructorStrategy) Creates a new type builder for creating a subclass. -
Uses of MethodDescription in net.bytebuddy.implementation
Classes in net.bytebuddy.implementation that implement MethodDescriptionModifier and TypeClassDescriptionprotected static class
A base implementation of a method that accesses a property of an instrumented type.protected static class
A description of an accessor method to access another method from outside the instrumented type.protected static class
A description of a field getter method.protected static class
A description of a field setter method.Fields in net.bytebuddy.implementation declared as MethodDescriptionModifier and TypeFieldDescriptionprivate final MethodDescription
EqualsMethod.NullValueGuard.UsingJump.instrumentedMethod
The instrumented method.private final MethodDescription
HashCodeMethod.NullValueGuard.UsingJump.instrumentedMethod
The instrumented method.private final MethodDescription
InvokeDynamic.InvocationProvider.Default.Target.instrumentedMethod
The intercepted method.private final MethodDescription
MethodCall.ArgumentLoader.ForField.instrumentedMethod
The instrumented method.private final MethodDescription
MethodCall.ArgumentLoader.ForMethodCall.instrumentedMethod
The instrumented method.private final MethodDescription
MethodCall.ArgumentLoader.ForMethodParameter.instrumentedMethod
The instrumented method.private final MethodDescription
MethodCall.TargetHandler.ForMethodCall.Resolved.instrumentedMethod
The instrumented method.private final MethodDescription
MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved.instrumentedMethod
The instrumented method.private final MethodDescription
Implementation.Context.Default.AccessorMethod.methodDescription
The method that is being accessed.private final MethodDescription
Implementation.SpecialMethodInvocation.Simple.methodDescription
The method description that is represented by this legal special method invocation.private final MethodDescription
MethodCall.ArgumentLoader.ForMethodCall.methodDescription
The invoked method.private final MethodDescription
MethodCall.MethodLocator.ForExplicitMethod.methodDescription
The method to be invoked.private final MethodDescription
MethodCall.TargetHandler.ForMethodCall.Resolved.methodDescription
The invoked method.private final MethodDescription
MethodDelegation.ImplementationDelegate.Compiled.ForMethodReturn.methodDescription
The method to call for result.private final MethodDescription
ExceptionMethod.ConstructionDelegate.ForDefaultConstructor.targetConstructor
The constructor that is used for creating the exception.private final MethodDescription
ExceptionMethod.ConstructionDelegate.ForStringConstructor.targetConstructor
The constructor that is used for creating the exception.Fields in net.bytebuddy.implementation with type parameters of type MethodDescriptionModifier and TypeFieldDescriptionprivate final ElementMatcher
<? super MethodDescription> MethodCall.MethodLocator.ForElementMatcher.Factory.matcher
The matcher to use.private final ElementMatcher
<? super MethodDescription> MethodCall.MethodLocator.ForElementMatcher.matcher
The matcher to use.protected final ElementMatcher
<? super MethodDescription> MethodDelegation.ImplementationDelegate.ForField.matcher
The matcher to use for filtering methods.private final ElementMatcher
<? super MethodDescription> MethodDelegation.ImplementationDelegate.ForMethodReturn.matcher
The matcher to use for filtering methods.private final ElementMatcher
<? super MethodDescription> MethodDelegation.WithCustomProperties.matcher
The matcher to use for filtering relevant methods.Methods in net.bytebuddy.implementation that return MethodDescriptionModifier and TypeMethodDescriptionImplementation.SpecialMethodInvocation.getMethodDescription()
Returns the method that represents this special method invocation.Implementation.SpecialMethodInvocation.Illegal.getMethodDescription()
Returns the method that represents this special method invocation.Implementation.SpecialMethodInvocation.Simple.getMethodDescription()
Returns the method that represents this special method invocation.MethodCall.MethodLocator.ForElementMatcher.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.MethodLocator.ForExplicitMethod.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.MethodLocator.ForInstrumentedMethod.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.MethodLocator.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.protected MethodDescription
MethodCall.Appender.toInvokedMethod
(MethodDescription instrumentedMethod, MethodCall.TargetHandler.Resolved targetHandler) Resolves this appender to the method being invoked.Methods in net.bytebuddy.implementation with parameters of type MethodDescriptionModifier and TypeMethodDescriptionDefaultMethodCall.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.EqualsMethod.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ExceptionMethod.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.FieldAccessor.ForImplicitProperty.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.FieldAccessor.ForSetter.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.protected ByteCodeAppender.Size
FixedValue.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod, TypeDescription.Generic typeDescription, StackManipulation stackManipulation) Blueprint method that for applying the actual implementation.FixedValue.ForArgument.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.FixedValue.ForConstantValue.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.FixedValue.ForNullValue.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.FixedValue.ForOriginType.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.FixedValue.ForThisValue.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.FixedValue.ForValue.StaticFieldByteCodeAppender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.HashCodeMethod.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.Implementation.Context.Default.AccessorMethodDelegation.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.Implementation.Context.Default.FieldGetterDelegation.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.Implementation.Context.Default.FieldSetterDelegation.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.Implementation.Simple.Dispatcher.apply
(Implementation.Target implementationTarget, MethodDescription instrumentedMethod) Creates a stack manipulation from a simple method dispatch.Implementation.Simple.ForDispatcher.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.protected ByteCodeAppender.Size
InvocationHandlerAdapter.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod, StackManipulation preparingManipulation, FieldDescription fieldDescription) Applies an implementation that delegates to a invocation handler.InvocationHandlerAdapter.ForField.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.InvocationHandlerAdapter.ForInstance.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.InvokeDynamic.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.MethodCall.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.MethodCall.FieldSetting.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.MethodDelegation.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.StubMethod.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.SuperMethodCall.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ToStringMethod.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.private List
<StackManipulation> InvocationHandlerAdapter.argumentValuesOf
(MethodDescription instrumentedMethod) Returns a list of stack manipulations that loads all arguments of an instrumented method.static MethodCall
MethodCall.construct
(MethodDescription methodDescription) Invokes the given constructor in order to create an instance.MethodCall.invoke
(MethodDescription methodDescription) Invokes the given method.private StackManipulation
DefaultMethodCall.Appender.locateDefault
(MethodDescription methodDescription) Locates a special method invocation to be invoked from a given method.InvokeDynamic.InvocationProvider.Default.make
(MethodDescription methodDescription) Creates a target for the invocation.InvokeDynamic.InvocationProvider.make
(MethodDescription methodDescription) Creates a target for the invocation.Implementation.SpecialMethodInvocation.Simple.of
(MethodDescription methodDescription, TypeDescription typeDescription) Creates a special method invocation for a given invocation target.protected abstract StackManipulation
SuperMethodCall.Appender.TerminationHandler.of
(MethodDescription methodDescription) Creates a stack manipulation that represents this handler's behavior.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.FieldAccessor.FieldLocation.Absolute.resolve
(MethodDescription instrumentedMethod) Resolves the field description to use.FieldAccessor.FieldLocation.Prepared.resolve
(MethodDescription instrumentedMethod) Resolves the field description to use.FieldAccessor.FieldLocation.Relative.Prepared.resolve
(MethodDescription instrumentedMethod) Resolves the field description to use.FieldAccessor.FieldNameExtractor.ForBeanProperty.resolve
(MethodDescription methodDescription) Extracts a field name to be accessed by a getter or setter method.FieldAccessor.FieldNameExtractor.ForFixedValue.resolve
(MethodDescription methodDescription) Extracts a field name to be accessed by a getter or setter method.FieldAccessor.FieldNameExtractor.resolve
(MethodDescription methodDescription) Extracts a field name to be accessed by a getter or setter method.protected StackManipulation
FieldAccessor.ForSetter.OfConstantValue.resolve
(Void unused, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfDefaultValue.resolve
(Void initialized, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfFieldValue.resolve
(FieldAccessor.FieldLocation.Prepared target, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfParameterValue.resolve
(Void unused, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfReferenceValue.resolve
(FieldDescription.InDefinedShape target, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected abstract StackManipulation
FieldAccessor.ForSetter.resolve
(T initialized, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected abstract StackManipulation
FieldAccessor.ForSetter.TerminationHandler.resolve
(MethodDescription instrumentedMethod) Resolves the return instruction.InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper.WrappingArgumentProvider.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForBooleanConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForByteConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForCharacterConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForClassConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForDoubleConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForEnumerationValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForFloatConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForInstance.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForIntegerConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForInterceptedMethodInstanceAndParameters.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForInterceptedMethodParameters.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForJavaConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForLongConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForMethodParameter.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForNullValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForShortConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForStringConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForThisInstance.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.NameProvider.ForExplicitName.resolve
(MethodDescription methodDescription) Resolves the name given the intercepted method.InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod.resolve
(MethodDescription methodDescription) Resolves the name given the intercepted method.InvokeDynamic.InvocationProvider.NameProvider.resolve
(MethodDescription methodDescription) Resolves the name given the intercepted method.InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForExplicitType.resolve
(MethodDescription methodDescription) Resolves the return type that is requested from the bootstrap method.InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForInterceptedMethod.resolve
(MethodDescription methodDescription) Resolves the return type that is requested from the bootstrap method.InvokeDynamic.InvocationProvider.ReturnTypeProvider.resolve
(MethodDescription methodDescription) Resolves the return type that is requested from the bootstrap method.protected abstract StackManipulation
InvokeDynamic.TerminationHandler.resolve
(MethodDescription interceptedMethod, TypeDescription returnType, Assigner assigner, Assigner.Typing typing) Returns a stack manipulation that handles the method return.MethodCall.ArgumentLoader.ArgumentProvider.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForField.ArgumentProvider.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForInstance.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForInstrumentedType.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForMethodCall.ArgumentProvider.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForMethodParameter.Factory.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForMethodParameterArray.ForInstrumentedMethod.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfInvokedMethod.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfParameter.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForNullConstant.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForStackManipulation.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.ArgumentLoader.ForThisReference.resolve
(MethodDescription instrumentedMethod, MethodDescription invokedMethod) Resolves this provider to an argument loader for each provided argument.MethodCall.MethodLocator.ForElementMatcher.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.MethodLocator.ForExplicitMethod.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.MethodLocator.ForInstrumentedMethod.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.MethodLocator.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.TargetHandler.ForConstructingInvocation.resolve
(MethodDescription instrumentedMethod) Resolves this target handler.MethodCall.TargetHandler.ForField.resolve
(MethodDescription instrumentedMethod) Resolves this target handler.MethodCall.TargetHandler.ForMethodCall.resolve
(MethodDescription instrumentedMethod) Resolves this target handler.MethodCall.TargetHandler.ForMethodParameter.resolve
(MethodDescription instrumentedMethod) Resolves this target handler.MethodCall.TargetHandler.ForSelfOrStaticInvocation.resolve
(MethodDescription instrumentedMethod) Resolves this target handler.MethodCall.TargetHandler.ForValue.resolve
(MethodDescription instrumentedMethod) Resolves this target handler.MethodCall.TargetHandler.resolve
(MethodDescription instrumentedMethod) Resolves this target handler.MethodCall.TargetHandler.Simple.resolve
(MethodDescription instrumentedMethod) Resolves this target handler.protected MethodDescription
MethodCall.Appender.toInvokedMethod
(MethodDescription instrumentedMethod, MethodCall.TargetHandler.Resolved targetHandler) Resolves this appender to the method being invoked.protected StackManipulation
MethodCall.Appender.toStackManipulation
(MethodDescription instrumentedMethod, MethodDescription invokedMethod, MethodCall.TargetHandler.Resolved targetHandler) Resolves this appender to a stack manipulation.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.Method parameters in net.bytebuddy.implementation with type arguments of type MethodDescriptionModifier and TypeMethodDescriptionMethodDelegation.WithCustomProperties.filter
(ElementMatcher<? super MethodDescription> matcher) Configures this method delegation to only consider methods or constructors as a delegation target if they match the supplied matcher.MethodCall.invoke
(ElementMatcher<? super MethodDescription> matcher) Invokes a unique virtual method or constructor of the instrumented type that is matched by the specified matcher.MethodCall.invoke
(ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Invokes a unique virtual method or constructor of the instrumented type that is matched by the specified matcher.Constructors in net.bytebuddy.implementation with parameters of type MethodDescriptionModifierConstructorDescriptionprotected
AccessorMethod
(TypeDescription instrumentedType, MethodDescription methodDescription, TypeDescription typeDescription, String suffix) Creates a new accessor method.protected
ForExplicitMethod
(MethodDescription methodDescription) Creates a new method locator for a given method.ForField
(FieldDescription fieldDescription, MethodDescription instrumentedMethod) Creates a new argument loader for loading an existing field.ForMethodCall
(MethodCall.Appender appender, MethodDescription methodDescription, MethodDescription instrumentedMethod, MethodCall.TargetHandler.Resolved targetHandler) Creates a new argument loader for loading a method call's return value.ForMethodParameter
(int index, MethodDescription instrumentedMethod) Creates an argument loader for a parameter of the instrumented method.protected
ForMethodReturn
(MethodDescription methodDescription, List<MethodDelegationBinder.Record> records) Creates a new compiled implementation delegate for a field delegation.protected
Resolved
(MethodCall.Appender appender, MethodDescription methodDescription, MethodDescription instrumentedMethod, MethodCall.TargetHandler.Resolved targetHandler) Creates a resolved target handler for a method call.protected
Resolved
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a resolved target handler for a static or self-declared invocation.protected
Simple
(MethodDescription methodDescription, TypeDescription typeDescription, StackManipulation stackManipulation) Creates a new legal special method invocation.protected
Target
(String internalName, TypeDescription returnType, List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders, MethodDescription instrumentedMethod) Creates a new target.protected
UsingJump
(MethodDescription instrumentedMethod) Creates a new null value guard using a jump instruction fornull
values.protected
UsingJump
(MethodDescription instrumentedMethod) Creates a new null value guard using a jump instruction fornull
values.Constructor parameters in net.bytebuddy.implementation with type arguments of type MethodDescriptionModifierConstructorDescriptionFactory
(ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Creates a factory for a method locator that identifies a method using a matcher.protected
ForElementMatcher
(TypeDescription instrumentedType, ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Creates a new method locator for an element matcher.protected
ForField
(String fieldName, MethodGraph.Compiler methodGraphCompiler, List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher) Creates a new implementation delegate for a field delegation.protected
ForMethodReturn
(String name, MethodGraph.Compiler methodGraphCompiler, List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher) Creates a new implementation delegate for a method return value delegation.private
WithCustomProperties
(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, MethodDelegationBinder.BindingResolver bindingResolver, ElementMatcher<? super MethodDescription> matcher) Creates a new method delegation with custom properties.protected
WithInstance
(String fieldName, MethodGraph.Compiler methodGraphCompiler, List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher, Object target, TypeDescription.Generic fieldType) Creates a new implementation delegate for invoking methods on a supplied instance.protected
WithLookup
(String fieldName, MethodGraph.Compiler methodGraphCompiler, List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher, FieldLocator.Factory fieldLocatorFactory) Creates a new implementation delegate for a field that is declared by the instrumented type or any super type. -
Uses of MethodDescription in net.bytebuddy.implementation.attribute
Methods in net.bytebuddy.implementation.attribute with parameters of type MethodDescriptionModifier and TypeMethodDescriptionprotected abstract AnnotationAppender
MethodAttributeAppender.ForInstrumentedMethod.appendReceiver
(AnnotationAppender annotationAppender, AnnotationValueFilter annotationValueFilter, MethodDescription methodDescription) Appends the annotations of the instrumented method's receiver type if this is enabled and such a type exists.void
MethodAttributeAppender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given method visitor.void
MethodAttributeAppender.Compound.apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given method visitor.void
MethodAttributeAppender.Explicit.apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given method visitor.void
MethodAttributeAppender.ForInstrumentedMethod.apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given method visitor.void
MethodAttributeAppender.ForReceiverType.apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given method visitor.void
MethodAttributeAppender.NoOp.apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given method visitor.MethodAttributeAppender.Explicit.Target.make
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription) Materializes the target for a given creation process.MethodAttributeAppender.Explicit.Target.OnMethod.make
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription) Materializes the target for a given creation process.MethodAttributeAppender.Explicit.Target.OnMethodParameter.make
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription) Materializes the target for a given creation process.MethodAttributeAppender.Explicit.of
(MethodDescription methodDescription) Creates a method attribute appender factory that writes all annotations of a given method, both the method annotations themselves and all annotations that are defined for every parameter.MethodAttributeAppender.Explicit.ofMethodAnnotations
(MethodDescription methodDescription) Creates a method attribute appender factory that writes all method annotations that are defined on the given method.MethodAttributeAppender.Explicit.ofParameterAnnotations
(MethodDescription methodDescription) Creates a method attribute appender factory that writes all annotations that are defined for every parameter of the given method.AnnotationValueFilter.Default.on
(MethodDescription methodDescription) Creates an annotation value filter for writing annotations on a method.AnnotationValueFilter.Factory.on
(MethodDescription methodDescription) Creates an annotation value filter for writing annotations on a method. -
Uses of MethodDescription in net.bytebuddy.implementation.auxiliary
Fields in net.bytebuddy.implementation.auxiliary declared as MethodDescriptionModifier and TypeFieldDescriptionprivate final MethodDescription
MethodCallProxy.MethodCall.accessorMethod
The method that is accessed by the implemented method.private final MethodDescription
TypeProxy.MethodCall.Appender.AccessorMethodInvocation.instrumentedMethod
The instrumented method that is implemented.private final MethodDescription
MethodCallProxy.ConstructorCall.objectTypeDefaultConstructor
A reference of theObject
type default constructor.Methods in net.bytebuddy.implementation.auxiliary with parameters of type MethodDescriptionModifier and TypeMethodDescriptionMethodCallProxy.ConstructorCall.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.MethodCallProxy.MethodCall.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.TypeProxy.MethodCall.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.TypeProxy.SilentConstruction.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.private static LinkedHashMap
<String, TypeDescription> MethodCallProxy.extractFields
(MethodDescription methodDescription) Creates a linked hash map of field names to their types where each field represents a parameter of the method.TypeProxy.InvocationFactory.invoke
(Implementation.Target implementationTarget, TypeDescription proxiedType, MethodDescription instrumentedMethod) Creates a special method invocation to implement for a given method.static AuxiliaryType
PrivilegedMemberLookupAction.of
(MethodDescription methodDescription) Returns an auxiliary type for loading the supplied method description as a constant.Constructors in net.bytebuddy.implementation.auxiliary with parameters of type MethodDescriptionModifierConstructorDescriptionprotected
AccessorMethodInvocation
(MethodDescription instrumentedMethod, Implementation.SpecialMethodInvocation specialMethodInvocation) Creates a new accessor method invocation.protected
MethodCall
(MethodDescription accessorMethod, Assigner assigner) Creates a new method call implementation. -
Uses of MethodDescription in net.bytebuddy.implementation.bind
Fields in net.bytebuddy.implementation.bind declared as MethodDescriptionModifier and TypeFieldDescriptionprivate final MethodDescription
MethodDelegationBinder.MethodBinding.Builder.candidate
The target method that for which a binding is to be constructed by this builder..private final MethodDescription
MethodDelegationBinder.MethodBinding.Builder.Build.target
The target method this binding represents.Methods in net.bytebuddy.implementation.bind that return MethodDescriptionModifier and TypeMethodDescriptionMethodDelegationBinder.MethodBinding.Builder.Build.getTarget()
Returns the target method of the method binding attempt.MethodDelegationBinder.MethodBinding.getTarget()
Returns the target method of the method binding attempt.MethodDelegationBinder.MethodBinding.Illegal.getTarget()
Returns the target method of the method binding attempt.Methods in net.bytebuddy.implementation.bind with parameters of type MethodDescriptionModifier and TypeMethodDescriptionMethodDelegationBinder.Processor.bind
(Implementation.Target implementationTarget, MethodDescription source, MethodDelegationBinder.TerminationHandler terminationHandler, MethodDelegationBinder.MethodInvoker methodInvoker, Assigner assigner) Attempts a binding of a source method to this compiled target.MethodDelegationBinder.Record.bind
(Implementation.Target implementationTarget, MethodDescription source, MethodDelegationBinder.TerminationHandler terminationHandler, MethodDelegationBinder.MethodInvoker methodInvoker, Assigner assigner) Attempts a binding of a source method to this compiled target.MethodDelegationBinder.Record.Illegal.bind
(Implementation.Target implementationTarget, MethodDescription source, MethodDelegationBinder.TerminationHandler terminationHandler, MethodDelegationBinder.MethodInvoker methodInvoker, Assigner assigner) Attempts a binding of a source method to this compiled target.MethodDelegationBinder.compile
(MethodDescription candidate) Compiles this method delegation binder for a target method.MethodDelegationBinder.BindingResolver.Default.doResolve
(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
method.MethodDelegationBinder.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.ArgumentTypeResolver.resolve
(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.DeclaringTypeResolver.resolve
(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.MethodDelegationBinder.AmbiguityResolver.Compound.resolve
(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.MethodDelegationBinder.AmbiguityResolver.Directional.resolve
(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.MethodDelegationBinder.AmbiguityResolver.NoOp.resolve
(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.MethodDelegationBinder.AmbiguityResolver.resolve
(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.MethodDelegationBinder.BindingResolver.Default.resolve
(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
method.MethodDelegationBinder.BindingResolver.resolve
(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
method.MethodDelegationBinder.BindingResolver.StreamWriting.resolve
(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
method.MethodDelegationBinder.BindingResolver.Unique.resolve
(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
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.MethodNameEqualityResolver.resolve
(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.ParameterLengthResolver.resolve
(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.Constructors in net.bytebuddy.implementation.bind with parameters of type MethodDescriptionModifierConstructorDescriptionprotected
Build
(MethodDescription target, Map<?, Integer> registeredTargetIndices, StackManipulation methodInvocation, List<StackManipulation> parameterStackManipulations, StackManipulation terminatingStackManipulation) Creates a new method binding.Builder
(MethodDelegationBinder.MethodInvoker methodInvoker, MethodDescription candidate) Creates a new builder for the binding of a given method. -
Uses of MethodDescription in net.bytebuddy.implementation.bind.annotation
Fields in net.bytebuddy.implementation.bind.annotation declared as MethodDescriptionModifier and TypeFieldDescriptionprivate final MethodDescription
Morph.Binder.RedirectionProxy.MethodCall.accessorMethod
The accessor method to invoke from the proxy's method.private final MethodDescription
TargetMethodAnnotationDrivenBinder.Record.candidate
The candidate method.private final MethodDescription
Morph.Binder.forwardingMethod
The method which is overridden for generating the proxy class.private final MethodDescription
Pipe.Binder.forwardingMethod
The method which implements the behavior of forwarding a method invocation.private final MethodDescription
FieldProxy.Binder.StaticFieldConstructor.objectTypeDefaultConstructor
A reference of theObject
type default constructor.private final MethodDescription
Morph.Binder.RedirectionProxy.StaticFieldConstructor.objectTypeDefaultConstructor
A reference of theObject
type default constructor.private final MethodDescription
Pipe.Binder.RedirectionProxy.MethodCall.redirectedMethod
The method that is invoked by the implemented method.private final MethodDescription
Pipe.Binder.RedirectionProxy.sourceMethod
The method that is to be forwarded.Methods in net.bytebuddy.implementation.bind.annotation that return MethodDescriptionModifier and TypeMethodDescriptionprivate static MethodDescription
Morph.Binder.onlyMethod
(TypeDescription typeDescription) Extracts the only method of a given type and validates to fit the constraints of the morph annotation.private static MethodDescription
Pipe.Binder.onlyMethod
(TypeDescription typeDescription) Locates the only method of a type that is compatible to being overridden for invoking the proxy.Methods in net.bytebuddy.implementation.bind.annotation with parameters of type MethodDescriptionModifier and TypeMethodDescriptionFieldProxy.Binder.FieldGetter.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.FieldProxy.Binder.FieldSetter.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.FieldProxy.Binder.InstanceFieldConstructor.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.Morph.Binder.RedirectionProxy.InstanceFieldConstructor.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.Morph.Binder.RedirectionProxy.MethodCall.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.Pipe.Binder.RedirectionProxy.ConstructorCall.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.Pipe.Binder.RedirectionProxy.MethodCall.Appender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.AllArguments.Binder.bind
(AnnotationDescription.Loadable<AllArguments> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.Argument.Binder.bind
(AnnotationDescription.Loadable<Argument> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.Default.Binder.bind
(AnnotationDescription.Loadable<Default> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.DefaultCall.Binder.bind
(AnnotationDescription.Loadable<DefaultCall> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.DefaultCallHandle.Binder.bind
(AnnotationDescription.Loadable<DefaultCallHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.DefaultMethod.Binder.bind
(AnnotationDescription.Loadable<DefaultMethod> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.DefaultMethodHandle.Binder.bind
(AnnotationDescription.Loadable<DefaultMethodHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.Empty.Binder.bind
(AnnotationDescription.Loadable<Empty> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.FieldGetterHandle.Binder.bind
(AnnotationDescription.Loadable<FieldGetterHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.protected MethodDelegationBinder.ParameterBinding
<?> FieldGetterHandle.Binder.Delegate.bind
(FieldDescription fieldDescription, AnnotationDescription.Loadable<FieldGetterHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner) protected MethodDelegationBinder.ParameterBinding
<?> FieldProxy.Binder.bind
(FieldDescription fieldDescription, AnnotationDescription.Loadable<FieldProxy> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner) FieldSetterHandle.Binder.bind
(AnnotationDescription.Loadable<FieldSetterHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.protected MethodDelegationBinder.ParameterBinding
<?> FieldSetterHandle.Binder.Delegate.bind
(FieldDescription fieldDescription, AnnotationDescription.Loadable<FieldSetterHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner) FieldValue.Binder.bind
(AnnotationDescription.Loadable<FieldValue> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.protected MethodDelegationBinder.ParameterBinding
<?> FieldValue.Binder.Delegate.bind
(FieldDescription fieldDescription, AnnotationDescription.Loadable<FieldValue> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner) Morph.Binder.bind
(AnnotationDescription.Loadable<Morph> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.Origin.Binder.bind
(AnnotationDescription.Loadable<Origin> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.Pipe.Binder.bind
(AnnotationDescription.Loadable<Pipe> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.StubValue.Binder.bind
(AnnotationDescription.Loadable<StubValue> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.Super.Binder.bind
(AnnotationDescription.Loadable<Super> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.SuperCall.Binder.bind
(AnnotationDescription.Loadable<SuperCall> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.SuperCallHandle.Binder.bind
(AnnotationDescription.Loadable<SuperCallHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.SuperMethod.Binder.bind
(AnnotationDescription.Loadable<SuperMethod> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.SuperMethodHandle.Binder.bind
(AnnotationDescription.Loadable<SuperMethodHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.bind
(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner) Handles a parameter binding.TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Bound.bind
(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner) Handles a parameter binding.TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound.bind
(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner) Handles a parameter binding.TargetMethodAnnotationDrivenBinder.ParameterBinder.bind
(AnnotationDescription.Loadable<T> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding.bind
(AnnotationDescription.Loadable<S> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.protected abstract MethodDelegationBinder.ParameterBinding
<?> TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding.bind
(FieldDescription fieldDescription, AnnotationDescription.Loadable<S> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner) Creates a parameter binding for the given target parameter.protected abstract Object
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.bind
(AnnotationDescription.Loadable<S> annotation, MethodDescription source, ParameterDescription target) Resolves a value for the given annotation on a parameter that is processed by aMethodDelegation
.TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.bind
(AnnotationDescription.Loadable<S> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.protected Object
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.OfConstant.bind
(AnnotationDescription.Loadable<U> annotation, MethodDescription source, ParameterDescription target) TargetMethodAnnotationDrivenBinder.Record.bind
(Implementation.Target implementationTarget, MethodDescription source, MethodDelegationBinder.TerminationHandler terminationHandler, MethodDelegationBinder.MethodInvoker methodInvoker, Assigner assigner) Attempts a binding of a source method to this compiled target.This.Binder.bind
(AnnotationDescription.Loadable<This> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.static boolean
IgnoreForBinding.Verifier.check
(MethodDescription methodDescription) Validates if a method should be ignored for binding.TargetMethodAnnotationDrivenBinder.compile
(MethodDescription candidate) Compiles this method delegation binder for a target method.private static LinkedHashMap
<String, TypeDescription> Pipe.Binder.RedirectionProxy.extractFields
(MethodDescription methodDescription) Extracts all parameters of a method to fields.BindingPriority.Resolver.resolve
(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.DefaultCall.Binder.DefaultMethodLocator.Explicit.resolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.DefaultCall.Binder.DefaultMethodLocator.Implicit.resolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.DefaultCall.Binder.DefaultMethodLocator.resolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.DefaultCallHandle.Binder.DefaultMethodLocator.Explicit.resolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.DefaultCallHandle.Binder.DefaultMethodLocator.Implicit.resolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.DefaultCallHandle.Binder.DefaultMethodLocator.resolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.DefaultMethod.Binder.MethodLocator.ForExplicitType.resolve
(Implementation.Target implementationTarget, MethodDescription source) Resolves the special method invocation to this target.DefaultMethod.Binder.MethodLocator.ForImplicitType.resolve
(Implementation.Target implementationTarget, MethodDescription source) Resolves the special method invocation to this target.DefaultMethod.Binder.MethodLocator.resolve
(Implementation.Target implementationTarget, MethodDescription source) Resolves the special method invocation to this target.DefaultMethodHandle.Binder.MethodLocator.ForExplicitType.resolve
(Implementation.Target implementationTarget, MethodDescription source) Resolves the special method invocation to this target.DefaultMethodHandle.Binder.MethodLocator.ForImplicitType.resolve
(Implementation.Target implementationTarget, MethodDescription source) Resolves the special method invocation to this target.DefaultMethodHandle.Binder.MethodLocator.resolve
(Implementation.Target implementationTarget, MethodDescription source) Resolves the special method invocation to this target.Morph.Binder.DefaultMethodLocator.Explicit.resolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.Morph.Binder.DefaultMethodLocator.Implicit.resolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.Morph.Binder.DefaultMethodLocator.resolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.Constructors in net.bytebuddy.implementation.bind.annotation with parameters of type MethodDescriptionModifierConstructorDescriptionprotected
Binder
(MethodDescription forwardingMethod) Creates a new binder.protected
Binder
(MethodDescription forwardingMethod) Creates a new binder.protected
MethodCall
(MethodDescription accessorMethod, Assigner assigner) Creates a new method call implementation for a proxy method.private
MethodCall
(MethodDescription redirectedMethod, Assigner assigner) Creates a new method call implementation.protected
Record
(MethodDescription candidate, List<TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler> handlers, Assigner.Typing typing) Creates a default compiled method delegation binder.protected
RedirectionProxy
(TypeDescription forwardingType, MethodDescription sourceMethod, Assigner assigner, boolean serializableProxy) Creates a new redirection. -
Uses of MethodDescription in net.bytebuddy.implementation.bytecode
Methods in net.bytebuddy.implementation.bytecode with parameters of type MethodDescriptionModifier and TypeMethodDescriptionByteCodeAppender.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ByteCodeAppender.Compound.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.ByteCodeAppender.Simple.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process. -
Uses of MethodDescription in net.bytebuddy.implementation.bytecode.member
Fields in net.bytebuddy.implementation.bytecode.member declared as MethodDescriptionModifier and TypeFieldDescriptionprivate final MethodDescription
MethodVariableAccess.MethodLoading.TypeCastingHandler.ForBridgeTarget.bridgeTarget
The target of the method bridge.private final MethodDescription
MethodVariableAccess.MethodLoading.methodDescription
The method for which all parameters are loaded onto the operand stack.Methods in net.bytebuddy.implementation.bytecode.member with parameters of type MethodDescriptionModifier and TypeMethodDescriptionMethodVariableAccess.allArgumentsOf
(MethodDescription methodDescription) Loads all arguments of the provided method onto the operand stack.MethodVariableAccess.MethodLoading.asBridgeOf
(MethodDescription bridgeTarget) Applies a transformation to all loaded arguments of the method being loaded to be casted to the corresponding parameter of the provided method.MethodInvocation.invoke
(MethodDescription methodDescription) Creates a method invocation with an implicitly determined invocation type.protected static MethodInvocation.WithImplicitInvocationTargetType
MethodInvocation.OfGenericMethod.of
(MethodDescription methodDescription, MethodInvocation.WithImplicitInvocationTargetType invocation) Creates a generic access dispatcher for a given method.Constructors in net.bytebuddy.implementation.bytecode.member with parameters of type MethodDescriptionModifierConstructorDescriptionForBridgeTarget
(MethodDescription bridgeTarget) Creates a new type casting handler for a bridge target.protected
MethodLoading
(MethodDescription methodDescription, MethodVariableAccess.MethodLoading.TypeCastingHandler typeCastingHandler) Creates a new method loading stack manipulation. -
Uses of MethodDescription in net.bytebuddy.matcher
Classes in net.bytebuddy.matcher with type parameters of type MethodDescriptionModifier and TypeClassDescriptionclass
MethodExceptionTypeMatcher<T extends MethodDescription>
An element matcher that matches the exceptions that are declared by a method.class
MethodOverrideMatcher<T extends MethodDescription>
A matcher that checks if any super type of a type declares a method with the same shape of a matched method.class
MethodParametersMatcher<T extends MethodDescription>
An element matcher that matches a method's parameters.class
MethodReturnTypeMatcher<T extends MethodDescription>
An element matcher that matches its argument's return type against a given type matcher.class
MethodSortMatcher<T extends MethodDescription>
Matches a method description by its general characteristics which are represented as aMethodSortMatcher.Sort
.class
SignatureTokenMatcher<T extends MethodDescription>
Matches a method description's signature token against another matcher.Methods in net.bytebuddy.matcher with type parameters of type MethodDescriptionModifier and TypeMethodDescriptionstatic <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.anyOf
(Constructor<?>... value) Creates a matcher that matches any of the given constructors asMethodDescription
s by theObject.equals(Object)
method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Creates a matcher that matches any of the given methods asMethodDescription
s by theObject.equals(Object)
method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Matches aMethodDescription
by its capability to throw a given checked exception.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.canThrow
(TypeDescription exceptionType) Matches aMethodDescription
by its capability to throw a given checked exception.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresException
(Class<? extends Throwable> exceptionType) Matches a method that declares the given generic exception type as a (erased) exception type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresException
(TypeDescription exceptionType) Matches a method that declares the given generic exception type as a (erased) exception type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresGenericException
(Type exceptionType) Matches a method that declares the given generic exception type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresGenericException
(TypeDescription.Generic exceptionType) Matches a method that declares the given generic exception type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresGenericException
(ElementMatcher<? super Iterable<? extends TypeDescription.Generic>> matcher) Matches a method's generic exception types against the provided matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.definedMethod
(ElementMatcher<? super MethodDescription.InDefinedShape> matcher) Matches a method in its defined shape.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.hasMethodName
(String internalName) Matches a method against its internal name such that constructors and type initializers are matched appropriately.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.hasParameters
(ElementMatcher<? super Iterable<? extends ParameterDescription>> matcher) Matches aMethodDescription
by validating that its parameters fulfill a given constraint.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.hasSignature
(MethodDescription.SignatureToken token) Only matches method descriptions that yield the provided signature token.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.is
(Constructor<?> constructor) Exactly matches a given constructor as aMethodDescription
in its defined shape.static <T extends MethodDescription>
ElementMatcher.Junction<T> Exactly matches a given method as aMethodDescription
in its defined shape.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.is
(MethodDescription.InDefinedShape method) Exactly matches a given method or constructor as aMethodDescription
in its defined shape.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isClone()
Only matches theObject.clone()
method, also if it was overridden.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isConstructor()
Only matches method descriptions that represent aConstructor
.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isDefaultConstructor()
Matches a default constructor, i.e.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isDefaultFinalizer()
Only matches theObject.finalize()
method if it was not overridden.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isDefaultMethod()
Only matches Java 8 default methods.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isEquals()
Only matches theObject.equals(Object)
method, also if it was overridden.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isFinalizer()
Only matches theObject.finalize()
method, even if it was overridden.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericGetter
(Type type) Matches any Java bean getter method which returns the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericGetter
(TypeDescription.Generic type) Matches any Java bean getter method which returns the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericGetter
(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any Java bean getter method which returns a value with a type matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericSetter
(Type type) Matches any Java bean setter method which takes an argument the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericSetter
(TypeDescription.Generic type) Matches any Java bean setter method which takes an argument the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericSetter
(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any Java bean setter method which takes an argument that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGetter()
Matches any Java bean getter method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Matches any Java bean getter method which returns the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> An element matcher that matches any getter for the given property.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGetter
(TypeDescription type) Matches any Java bean getter method which returns the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGetter
(ElementMatcher<? super TypeDescription> matcher) Matches any Java bean getter method which returns a value with a type matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isHashCode()
Only matches theObject.hashCode()
method, also if it was overridden.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isMain()
Matches a Java main method as an application entry point.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isMethod()
Only matches method descriptions that represent aMethod
.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFrom
(Class<?> type) Matches any virtual method with a signature that is compatible to a method that is declared the supplied type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFrom
(TypeDescription type) Matches any virtual method with a signature that is compatible to a method that is declared the supplied type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFrom
(ElementMatcher<? super TypeDescription> matcher) Matches any virtual method with a signature that is compatible to a method that is declared by a type that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFromGeneric
(Type type) Matches any virtual method with a signature that is compatible to a method that is declared the supplied type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFromGeneric
(TypeDescription.Generic type) Matches any virtual method with a signature that is compatible to a method that is declared the supplied type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFromGeneric
(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any virtual method with a signature that is compatible to a method that is declared by a type that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isSetter()
Matches any Java bean setter method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Matches any Java bean setter method which takes an argument the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> An element matcher that matches any setter for the given property.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isSetter
(TypeDescription type) Matches any Java bean setter method which takes an argument the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isSetter
(ElementMatcher<? super TypeDescription> matcher) Matches any Java bean setter method which takes an argument that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isToString()
Only matches theObject.toString()
method, also if it was overridden.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isTypeInitializer()
Only matches method descriptions that represent aClass
type initializer.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isVirtual()
Matches any method that is virtual, i.e.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.noneOf
(Constructor<?>... value) Creates a matcher that matches none of the given constructors asMethodDescription
s by theObject.equals(Object)
method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Creates a matcher that matches none of the given methods asMethodDescription
s by theObject.equals(Object)
method.static <T extends MethodDescription>
ElementMatcher.Junction<T> MethodSortMatcher.of
(MethodSortMatcher.Sort sort) Returns an element matcher that matches a specific sort of method description.static <T extends MethodDescription>
ElementMatcher.Junction<T> MatchesMethodDescription
s that return a given erasure type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returns
(TypeDescription type) MatchesMethodDescription
s that return a given erasure type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returns
(ElementMatcher<? super TypeDescription> matcher) Matches a method's return type's erasure by the given matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returnsGeneric
(Type type) MatchesMethodDescription
s that return a given generic type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returnsGeneric
(TypeDescription.Generic type) MatchesMethodDescription
s that returns a givenTypeDescription
.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returnsGeneric
(ElementMatcher<? super TypeDescription.Generic> matcher) MatchesMethodDescription
s that match a matched method's return type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArgument
(int index, Class<?> type) MatchesMethodDescription
s that define a given generic type as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArgument
(int index, TypeDescription type) MatchesMethodDescription
s that define a given type erasure as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArgument
(int index, ElementMatcher<? super TypeDescription> matcher) MatchesMethodDescription
s that define a type erasure as a parameter at the given index that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments
(int length) Matches aMethodDescription
by the number of its parameters.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments
(Class<?>... type) Matches a method description that takes the provided raw arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments
(Iterable<? extends TypeDescription> types) Matches a method description that takes the provided raw arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments
(TypeDescription... type) Matches a method description that takes the provided raw arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments
(ElementMatcher<? super Iterable<? extends TypeDescription>> matchers) Matches aMethodDescription
by applying an iterable collection of element matcher on any parameter'sTypeDescription
.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArgument
(int index, Type type) MatchesMethodDescription
s that define a given generic type as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArgument
(int index, TypeDescription.Generic type) MatchesMethodDescription
s that define a given generic type as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArgument
(int index, ElementMatcher<? super TypeDescription.Generic> matcher) MatchesMethodDescription
s that define a given generic type as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArguments
(Type... type) Matches a method description that takes the provided generic arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArguments
(List<? extends TypeDefinition> types) Matches a method description that takes the provided generic arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArguments
(TypeDefinition... type) Matches a method description that takes the provided generic arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArguments
(ElementMatcher<? super Iterable<? extends TypeDescription.Generic>> matchers) Matches aMethodDescription
by applying an iterable collection of element matcher on any parameter'sTypeDescription.Generic
.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesNoArguments()
Matches aMethodDescription
with no parameters.Methods in net.bytebuddy.matcher that return types with arguments of type MethodDescriptionModifier and TypeMethodDescriptionElementMatcher
<? super MethodDescription> LatentMatcher.ForMethodToken.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher
<? super MethodDescription> LatentMatcher.ForSelfDeclaredMethod.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Methods in net.bytebuddy.matcher with parameters of type MethodDescriptionModifier and TypeMethodDescriptionboolean
LatentMatcher.ForMethodToken.ResolvedMatcher.doMatch
(MethodDescription target) Matches the supplied value if it was found not to benull
.protected abstract boolean
MethodSortMatcher.Sort.isSort
(MethodDescription target) Determines if a method description is of the represented method sort.private boolean
MethodOverrideMatcher.matches
(MethodDescription target, List<? extends TypeDefinition> typeDefinitions, Set<TypeDescription> duplicates) Matches a method against a list of types.private boolean
MethodOverrideMatcher.matches
(MethodDescription target, TypeDefinition typeDefinition) Checks if a type declares a method with the same signature astarget
.Method parameters in net.bytebuddy.matcher with type arguments of type MethodDescriptionModifier and TypeMethodDescriptionstatic <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.declaresMethod
(ElementMatcher<? super MethodDescription> matcher) Matches a type by another matcher that is applied on any of its declared methods.Constructor parameters in net.bytebuddy.matcher with type arguments of type MethodDescriptionModifierConstructorDescriptionDeclaringMethodMatcher
(ElementMatcher<? super MethodList<? extends MethodDescription>> matcher) Creates a new matcher for a type's declared methods. -
Uses of MethodDescription in net.bytebuddy.pool
Classes in net.bytebuddy.pool that implement MethodDescriptionModifier and TypeClassDescriptionprivate class
A lazy representation of a method that resolves references to types only on demand. -
Uses of MethodDescription in net.bytebuddy.utility
Methods in net.bytebuddy.utility with parameters of type MethodDescriptionModifier and TypeMethodDescriptionstatic JavaConstant.MethodType
JavaConstant.MethodType.of
(MethodDescription methodDescription) Returns a method type description of the given method.static JavaConstant.MethodType
JavaConstant.MethodType.ofSignature
(MethodDescription methodDescription) Returns a method type description of the given method's signature without considering the method's actual stack consumption and production. -
Uses of MethodDescription in net.bytebuddy.utility.visitor
Methods in net.bytebuddy.utility.visitor with parameters of type MethodDescriptionModifier and TypeMethodDescriptionstatic org.objectweb.asm.MethodVisitor
StackAwareMethodVisitor.of
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription instrumentedMethod) Wraps the provided method visitor within a stack aware method visitor.Constructors in net.bytebuddy.utility.visitor with parameters of type MethodDescriptionModifierConstructorDescriptionLocalVariableAwareMethodVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription) Creates a local variable aware method visitor.protected
StackAwareMethodVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription instrumentedMethod) Creates a new stack aware method visitor.