Package | Description |
---|---|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.build |
A package for types that allow for applying Byte Buddy transformation during a build process.
|
net.bytebuddy.dynamic |
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.
|
net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
net.bytebuddy.dynamic.scaffold.inline |
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type. |
net.bytebuddy.dynamic.scaffold.subclass |
All classes and types in this package are related to creating a
DynamicType by
creating a subclass of a given type. |
Class and Description |
---|
Advice
Advice wrappers copy the code of blueprint methods to be executed before and/or after a matched method.
|
Advice.ExceptionHandler
An exception handler is responsible for providing byte code for handling an exception thrown from a suppressing advice method.
|
Advice.WithCustomMapping
A builder step for creating an
Advice that uses custom mappings of annotations to constant pool values. |
Class and Description |
---|
Advice
Advice wrappers copy the code of blueprint methods to be executed before and/or after a matched method.
|
Advice.AdviceVisitor
A method visitor that weaves the advice methods' byte codes.
|
Advice.AdviceVisitor.WithExitAdvice
An advice visitor that applies exit advice.
|
Advice.AllArguments
Assigns an array containing all arguments of the instrumented method to the annotated parameter.
|
Advice.Argument
Indicates that the annotated parameter should be mapped to the parameter with index
Advice.Argument.value() of
the instrumented method. |
Advice.ArgumentHandler
An argument handler is responsible for resolving offsets of the local variable array in the context of the applied instrumentation.
|
Advice.ArgumentHandler.Factory
A factory for creating an argument handler.
|
Advice.ArgumentHandler.ForAdvice
An argument handler that is used for resolving an advice method.
|
Advice.ArgumentHandler.ForAdvice.Default
A default implementation for an argument handler for an advice method.
|
Advice.ArgumentHandler.ForInstrumentedMethod
An argument handler that is used for resolving the instrumented method.
|
Advice.ArgumentHandler.ForInstrumentedMethod.Default
A default implementation of an argument handler for an instrumented method.
|
Advice.AssignReturned
A post processor that uses the return value of an advice method to define values for fields, arguments, the instrumented
method's return value or the exception being thrown.
|
Advice.AssignReturned.DefaultValueSkip.Dispatcher
A dispatcher for skipping a default value.
|
Advice.AssignReturned.ExceptionHandler.Factory
A factory for wrapping an assignment with an exception handler, if appropriate.
|
Advice.AssignReturned.ExceptionHandler.Factory.NoOp
A non-operational factory that does not produce an exception handler.
|
Advice.AssignReturned.Factory
A factory to create a
Advice.AssignReturned post processor. |
Advice.AssignReturned.Handler
A handler for an
Advice.AssignReturned post processor to assign a value that was returned by
advice to a value of the instrumented method. |
Advice.AssignReturned.Handler.Factory
A factory for resolving a handler for a given advice method.
|
Advice.AssignReturned.ToAllArguments
Assigns the advice method's return value as an array to a number of arguments which are returned as an array where
each element assigns a single value with the same index as the instrumented method's parameter.
|
Advice.AssignReturned.ToAllArguments.Handler.Factory
A factory to create a handler for a
Advice.AssignReturned.ToAllArguments annotation. |
Advice.AssignReturned.ToArguments
Assigns the advice method's return value to an argument of the instrumented method of the given index.
|
Advice.AssignReturned.ToArguments.Handler.Factory
A factory to create a handler for a
Advice.AssignReturned.ToArguments annotation. |
Advice.AssignReturned.ToFields
Assigns the advice method's return value to a given field.
|
Advice.AssignReturned.ToFields.Handler.Factory
A factory to create a handler for a
Advice.AssignReturned.ToFields annotation. |
Advice.AssignReturned.ToReturned
Assigns the advice method's return value to the instrumented method's return value.
|
Advice.AssignReturned.ToReturned.Handler.Factory
A factory to create a handler for a
Advice.AssignReturned.ToReturned annotation. |
Advice.AssignReturned.ToThis
Assigns the advice method's return value to the
this reference of the instrumented method. |
Advice.AssignReturned.ToThis.Handler.Factory
A handler factory for the
Advice.AssignReturned.ToThis annotation which assigns an advice method's return value
to the this reference of a non-static method. |
Advice.AssignReturned.ToThrown
Assigns the advice method's return value to the instrumented method's return value.
|
Advice.AssignReturned.ToThrown.Handler.Factory
A factory to create a handler for a
Advice.AssignReturned.ToThrown annotation. |
Advice.Delegator
Materializes an advice invocation within a delegation.
|
Advice.Delegator.ForStaticInvocation
Invokes an advice method using a static method call.
|
Advice.Dispatcher
A dispatcher for implementing advice.
|
Advice.Dispatcher.Bound
A bound resolution of an advice method.
|
Advice.Dispatcher.Delegating.Resolved
A resolved version of a dispatcher.
|
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter
A bound advice method that copies the code by first extracting the exception table and later appending the
code of the method without copying any meta data.
|
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter
A resolved dispatcher for implementing method enter advice.
|
Advice.Dispatcher.Delegating.Resolved.ForMethodExit
A resolved dispatcher for implementing method exit advice.
|
Advice.Dispatcher.Inactive
An implementation for inactive devise that does not write any byte code.
|
Advice.Dispatcher.Inlining.Resolved
A resolved version of a dispatcher.
|
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter
A resolved dispatcher for implementing method enter advice.
|
Advice.Dispatcher.Inlining.Resolved.ForMethodExit
A resolved dispatcher for implementing method exit advice.
|
Advice.Dispatcher.RelocationHandler
A relocation handler is responsible for chaining the usual control flow of an instrumented method.
|
Advice.Dispatcher.RelocationHandler.Bound
A bound
Advice.Dispatcher.RelocationHandler . |
Advice.Dispatcher.RelocationHandler.Disabled
A disabled relocation handler that does never trigger a relocation.
|
Advice.Dispatcher.RelocationHandler.ForValue
A relocation handler that triggers a relocation for a default or non-default value.
|
Advice.Dispatcher.RelocationHandler.Relocation
A relocator is responsible for triggering a relocation if a relocation handler triggers a relocating condition.
|
Advice.Dispatcher.Resolved
Represents a resolved dispatcher.
|
Advice.Dispatcher.Resolved.AbstractBase
An abstract base implementation of a
Advice.OffsetMapping.ForArgument.Resolved dispatcher. |
Advice.Dispatcher.Resolved.ForMethodEnter
Represents a resolved dispatcher for entering a method.
|
Advice.Dispatcher.Resolved.ForMethodExit
Represents a resolved dispatcher for exiting a method.
|
Advice.Dispatcher.SuppressionHandler
A suppression handler for optionally suppressing exceptions.
|
Advice.Dispatcher.SuppressionHandler.Bound
A bound version of a suppression handler that must not be reused.
|
Advice.Dispatcher.SuppressionHandler.NoOp
A non-operational suppression handler that does not suppress any method.
|
Advice.Dispatcher.Unresolved
A dispatcher that is not yet resolved.
|
Advice.Enter
Indicates that the annotated parameter should be mapped to the value that is returned by the advice method that is annotated
by
Advice.OnMethodEnter . |
Advice.ExceptionHandler
An exception handler is responsible for providing byte code for handling an exception thrown from a suppressing advice method.
|
Advice.ExceptionHandler.Default
Default implementations for commonly used exception handlers.
|
Advice.Exit
Indicates that the annotated parameter should be mapped to the value that is returned by the advice method that is annotated
by
Advice.OnMethodExit . |
Advice.FieldValue
Indicates that the annotated parameter should be mapped to a field in the scope of the instrumented method.
|
Advice.Local
Declares the annotated parameter as a local variable that is created by Byte Buddy for the instrumented method.
|
Advice.MethodSizeHandler
A handler for computing the instrumented method's size.
|
Advice.MethodSizeHandler.Default
A default implementation for a method size handler.
|
Advice.MethodSizeHandler.ForAdvice
A method size handler for an advice method.
|
Advice.MethodSizeHandler.ForInstrumentedMethod
A method size handler for the instrumented method.
|
Advice.MethodSizeHandler.NoOp
A non-operational method size handler.
|
Advice.OffsetMapping
Represents an offset mapping for an advice method to an alternative offset.
|
Advice.OffsetMapping.Factory
Represents a factory for creating a
Advice.OffsetMapping for a given parameter for a given annotation. |
Advice.OffsetMapping.Factory.AdviceType
Describes the type of advice being applied.
|
Advice.OffsetMapping.ForAllArguments.Factory
A factory for an offset mapping that maps all arguments values of the instrumented method.
|
Advice.OffsetMapping.ForArgument
An offset mapping for a given parameter of the instrumented method.
|
Advice.OffsetMapping.ForArgument.Unresolved.Factory
A factory for a mapping of a parameter of the instrumented method.
|
Advice.OffsetMapping.ForField
An offset mapping for a field.
|
Advice.OffsetMapping.ForField.Unresolved
An offset mapping for a field that is resolved from the instrumented type by its name.
|
Advice.OffsetMapping.ForField.Unresolved.Factory
A factory for a
Advice.OffsetMapping.ForArgument.Unresolved offset mapping. |
Advice.OffsetMapping.ForInstrumentedMethod
Maps a constant representing the instrumented method.
|
Advice.OffsetMapping.ForInstrumentedType
Maps the declaring type of the instrumented method.
|
Advice.OffsetMapping.ForOrigin.Factory
A factory for a method origin.
|
Advice.OffsetMapping.ForOrigin.Renderer
A renderer for an origin pattern element.
|
Advice.OffsetMapping.ForOrigin.Renderer.ForDescriptor
A renderer for a method descriptor.
|
Advice.OffsetMapping.ForOrigin.Renderer.ForJavaSignature
A renderer for a method's Java signature in binary form.
|
Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName
A renderer for a method's internal name.
|
Advice.OffsetMapping.ForOrigin.Renderer.ForPropertyName
A renderer for a property name.
|
Advice.OffsetMapping.ForOrigin.Renderer.ForReturnTypeName
A renderer for a method's return type in binary form.
|
Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation
A renderer for a method's
Object.toString() representation. |
Advice.OffsetMapping.ForOrigin.Renderer.ForTypeName
A renderer for a method declaring type's binary name.
|
Advice.OffsetMapping.ForReturnValue.Factory
A factory for creating a
Advice.OffsetMapping.ForReturnValue offset mapping. |
Advice.OffsetMapping.ForStubValue
An offset mapping for a parameter where assignments are fully ignored and that is assigned a boxed version of the instrumented
method's return value or
null if the return type is not primitive or void . |
Advice.OffsetMapping.ForThisReference.Factory
A factory for creating a
Advice.OffsetMapping.ForThisReference offset mapping. |
Advice.OffsetMapping.ForThrowable.Factory
A factory for accessing an exception that was thrown by the instrumented method.
|
Advice.OffsetMapping.ForUnusedValue.Factory
A factory for an offset mapping for an unused value.
|
Advice.OffsetMapping.Sort
Describes the sort of the executed advice.
|
Advice.OffsetMapping.Target
A target offset of an offset mapping.
|
Advice.OffsetMapping.Target.ForArray
A target mapping for an array of all local variables.
|
Advice.OffsetMapping.Target.ForDefaultValue
A target for an offset mapping that represents a non-operational value.
|
Advice.OffsetMapping.Target.ForField
A target for an offset mapping that loads a field value.
|
Advice.OffsetMapping.Target.ForVariable
A target for an offset mapping that represents a local variable.
|
Advice.Origin
Indicates that the annotated parameter should be mapped to a string representation of the instrumented method,
a constant representing the
Class declaring the adviced method or a Method , Constructor
or java.lang.reflect.Executable representing this method. |
Advice.PostProcessor
A post processor for advice methods that is invoked after advice is executed.
|
Advice.PostProcessor.Factory
A factory for creating a
Advice.PostProcessor . |
Advice.PostProcessor.NoOp
A non-operational advice post processor.
|
Advice.Return
Indicates that the annotated parameter should be mapped to the return value of the instrumented method.
|
Advice.StackMapFrameHandler
A handler for computing and translating stack map frames.
|
Advice.StackMapFrameHandler.Default
A default implementation of a stack map frame handler for an instrumented method.
|
Advice.StackMapFrameHandler.Default.Initialization
Represents the initialization state of a stack value that can either be initialized or uninitialized.
|
Advice.StackMapFrameHandler.Default.TranslationMode
A translation mode that determines how the fixed frames of the instrumented method are written.
|
Advice.StackMapFrameHandler.Default.WithPreservedArguments
A stack map frame handler that requires the original arguments of the instrumented method to be preserved in their original form.
|
Advice.StackMapFrameHandler.ForAdvice
A stack map frame handler for an advice method.
|
Advice.StackMapFrameHandler.ForInstrumentedMethod
A stack map frame handler for an instrumented method.
|
Advice.StackMapFrameHandler.ForPostProcessor
A stack map frame handler that can be used within a post processor.
|
Advice.StackMapFrameHandler.NoOp
A non-operational stack map frame handler.
|
Advice.StubValue
Indicates that the annotated parameter should always return a default a boxed version of the instrumented methods return value
(i.e.
|
Advice.This
Indicates that the annotated parameter should be mapped to the
this reference of the instrumented method. |
Advice.Thrown
Indicates that the annotated parameter should be mapped to the
Throwable thrown by the instrumented method or to null
if the method returned regularly. |
Advice.Unused
Indicates that the annotated parameter should always return a default value (i.e.
|
Advice.WithCustomMapping
A builder step for creating an
Advice that uses custom mappings of annotations to constant pool values. |
AsmVisitorWrapper
A class visitor wrapper is used in order to register an intermediate ASM
ClassVisitor which
is applied to the main type created by a DynamicType.Builder but not
to any AuxiliaryType s, if any. |
AsmVisitorWrapper.AbstractBase
An abstract base implementation of an ASM visitor wrapper that does not set any flags.
|
AsmVisitorWrapper.ForDeclaredFields
An ASM visitor wrapper that allows to wrap declared fields of the instrumented type with a
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper . |
AsmVisitorWrapper.ForDeclaredFields.Entry
An entry describing a field visitor wrapper paired with a matcher for fields to be wrapped.
|
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper
A field visitor wrapper that allows for wrapping a
FieldVisitor defining a declared field. |
AsmVisitorWrapper.ForDeclaredMethods
An ASM visitor wrapper that allows to wrap declared methods of the instrumented type with a
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper . |
AsmVisitorWrapper.ForDeclaredMethods.Entry
An entry describing a method visitor wrapper paired with a matcher for fields to be wrapped.
|
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper
A method visitor wrapper that allows for wrapping a
MethodVisitor defining a declared method. |
AsmVisitorWrapper.NoOp
A class visitor wrapper that does not apply any changes.
|
MemberAttributeExtension
A visitor that adds attributes to a class member.
|
MemberAttributeExtension.ForField
A visitor that adds attributes to a field.
|
MemberAttributeExtension.ForMethod
A visitor that adds attributes to a method.
|
MemberRemoval
A visitor wrapper that removes fields or methods that match a given
ElementMatcher . |
MemberSubstitution
Substitutes field access or method invocations within a method's body.
|
MemberSubstitution.Replacement
A replacement combines a
MemberSubstitution.Substitution and a way of choosing if this substitution should be applied for a discovered member. |
MemberSubstitution.Replacement.Binding
A binding for a replacement of a field or method access within another method.
|
MemberSubstitution.Replacement.Binding.Unresolved
An unresolved binding.
|
MemberSubstitution.Replacement.Factory
A factory for creating a replacement for an instrumented method.
|
MemberSubstitution.Replacement.InvocationType
Describes a method invocation type.
|
MemberSubstitution.Replacement.NoOp
A non-operational replacement.
|
MemberSubstitution.Substitution
A substitution replaces or enhances an interaction with a field or method within an instrumented method.
|
MemberSubstitution.Substitution.Chain.Factory
A factory for creating a substitution chain.
|
MemberSubstitution.Substitution.Chain.Step
Represents a step of a substitution chain.
|
MemberSubstitution.Substitution.Chain.Step.Factory
Resolves a substitution for an instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.Resolution
A resolved substitution step.
|
MemberSubstitution.Substitution.Factory
A factory for creating a substitution for an instrumented method.
|
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver
A method resolver for locating a field for a substitute.
|
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
A method resolver for locating a method for a substitute.
|
MemberSubstitution.Substitution.Stubbing
A substitution that drops any field or method access and returns the expected return type's default value, i.e
null or zero for primitive types. |
MemberSubstitution.TypePoolResolver
A type pool resolver is responsible for resolving a
TypePool for locating substituted members. |
MemberSubstitution.TypePoolResolver.OfImplicitPool
Returns the implicit type pool.
|
MemberSubstitution.WithoutSpecification
A member substitution that lacks a specification for how to substitute the matched members references within a method body.
|
MemberSubstitution.WithoutSpecification.ForMatchedField
Describes a member substitution that requires a specification for how to replace a field.
|
MemberSubstitution.WithoutSpecification.ForMatchedMethod
Describes a member substitution that requires a specification for how to replace a method or constructor.
|
ModifierAdjustment
A visitor wrapper that adjusts the modifiers of the instrumented type or its members.
|
ModifierAdjustment.Adjustment
A description of a conditional adjustment.
|
ModifierAdjustment.ModifierAdjustingClassVisitor
A class visitor that enforces a collection of modifier adjustments.
|
TypeConstantAdjustment
This class visitor wrapper ensures that class files of a version previous to Java 5 do not store class entries in the generated class's constant pool.
|
TypeReferenceAdjustment
Adds an attribute value for all inner classes that are referenced by the instrumented type.
|
Class and Description |
---|
Advice.ArgumentHandler
An argument handler is responsible for resolving offsets of the local variable array in the context of the applied instrumentation.
|
Advice.OffsetMapping
Represents an offset mapping for an advice method to an alternative offset.
|
Advice.OffsetMapping.Sort
Describes the sort of the executed advice.
|
Advice.OffsetMapping.Target
A target offset of an offset mapping.
|
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper
A method visitor wrapper that allows for wrapping a
MethodVisitor defining a declared method. |
Class and Description |
---|
AsmVisitorWrapper
A class visitor wrapper is used in order to register an intermediate ASM
ClassVisitor which
is applied to the main type created by a DynamicType.Builder but not
to any AuxiliaryType s, if any. |
Class and Description |
---|
AsmVisitorWrapper
A class visitor wrapper is used in order to register an intermediate ASM
ClassVisitor which
is applied to the main type created by a DynamicType.Builder but not
to any AuxiliaryType s, if any. |
Class and Description |
---|
AsmVisitorWrapper
A class visitor wrapper is used in order to register an intermediate ASM
ClassVisitor which
is applied to the main type created by a DynamicType.Builder but not
to any AuxiliaryType s, if any. |
Class and Description |
---|
AsmVisitorWrapper
A class visitor wrapper is used in order to register an intermediate ASM
ClassVisitor which
is applied to the main type created by a DynamicType.Builder but not
to any AuxiliaryType s, if any. |
Copyright © 2014–2022. All rights reserved.