| Package | Description | 
|---|---|
| net.bytebuddy | Byte Buddy is a library for creating Java classes at runtime of a Java program. | 
| net.bytebuddy.agent.builder | An agent builder is used to easily implement load-time class-transformations using a Java agent. | 
| net.bytebuddy.asm | The ASM package contains classes that are meant for direct interaction with the ASM API. | 
| net.bytebuddy.dynamic | 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.implementation | The implementation package contains any logic for intercepting method calls. | 
| net.bytebuddy.implementation.auxiliary | Auxiliary types describe helper types that aid as a supplementary to a given
  InstrumentedType. | 
| net.bytebuddy.implementation.bind.annotation | This package contains annotations, types and classes that are responsible for binding a method to calling another
 method by interpreting annotations that indicate how a method should be bound to another method. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | ByteBuddy.EnumerationImplementationAn implementation fo the  valuesmethod of an enumeration type. | 
| protected static class  | ByteBuddy.RecordConstructorStrategyA constructor strategy for implementing a Java record. | 
| protected static class  | ByteBuddy.RecordObjectMethodImplements the object methods of the Java record type. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.BridgeMethodImplementationImplements an explicit bridge method for a lambda expression. | 
| protected static class  | AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.ConstructorImplementationImplements a lambda class's executing transformer. | 
| protected static class  | AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.FactoryImplementationAn implementation of a instance factory for a lambda expression's class. | 
| protected static class  | AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementationImplements a lambda expression's functional method. | 
| protected static class  | AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementationImplements the  writeReplacemethod for serializable lambda expressions. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | Advice
 Advice wrappers copy the code of blueprint methods to be executed before and/or after a matched method. | 
| Modifier and Type | Method and Description | 
|---|---|
| Implementation | Advice. wrap(Implementation implementation)Wraps the supplied implementation to have this advice applied around it. | 
| Modifier and Type | Method and Description | 
|---|---|
| Implementation | Advice. wrap(Implementation implementation)Wraps the supplied implementation to have this advice applied around it. | 
| Modifier and Type | Method and Description | 
|---|---|
| DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> | DynamicType.Builder.MethodDefinition.ImplementationDefinition. intercept(Implementation implementation)Implements the previously defined or matched method by the supplied implementation. | 
| DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> | DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter. intercept(Implementation implementation)Implements the previously defined or matched method by the supplied implementation. | 
| DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> | DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter. intercept(Implementation implementation)Implements the previously defined or matched method by the supplied implementation. | 
| DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> | DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter. intercept(Implementation implementation)Implements the previously defined or matched method by the supplied implementation. | 
| DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> | DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter. intercept(Implementation implementation)Implements the previously defined or matched method by the supplied implementation. | 
| DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> | DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter. intercept(Implementation implementation)Implements the previously defined or matched method by the supplied implementation. | 
| DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> | DynamicType.Builder.AbstractBase.Adapter.OptionalMethodMatchAdapter. intercept(Implementation implementation)Implements the previously defined or matched method by the supplied implementation. | 
| Constructor and Description | 
|---|
| ForImplementation(Implementation implementation)Creates a new handler for implementing a method with byte code. | 
| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | FieldAccessor.AssignerConfigurableA field accessor that can be configured to use a given assigner and runtime type use configuration. | 
| static interface  | FieldAccessor.OwnerTypeLocatableA field accessor that can be configured to locate a field in a specific manner. | 
| static interface  | FieldAccessor.PropertyConfigurableA field accessor that allows to define the access to be a field write of a given argument. | 
| static interface  | FixedValue.AssignerConfigurableRepresents a fixed value implementation that is using a default assigner for attempting to assign
 the fixed value to the return type of the instrumented method. | 
| static interface  | Implementation.ComposableRepresents an implementation that can be chained together with another implementation. | 
| static interface  | InvocationHandlerAdapter.AssignerConfigurableAllows for the configuration of an  Assignerof anInvocationHandlerAdapter. | 
| static interface  | InvocationHandlerAdapter.WithoutPrivilegeConfigurationAllows the configuration of privileged lookup for the resolution of  Methodconstants that are provided to the invocation handler. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultMethodCallThis  Implementationinvokes a default method for the methods it instruments. | 
| class  | EqualsMethodAn implementation of  Object.equals(Object)that takes a class's declared fields into consideration. | 
| class  | ExceptionMethodThis implementation causes a  Throwableto be thrown when the instrumented method is invoked. | 
| class  | FieldAccessor
 Defines a method to access a given field by following the Java bean conventions for getters and setters: | 
| protected static class  | FieldAccessor.ForImplicitPropertyA field accessor for an implicit property where a getter or setter property is inferred from the signature. | 
| protected static class  | FieldAccessor.ForSetter<T>A field accessor for a field setter. | 
| protected static class  | FieldAccessor.ForSetter.OfConstantValueAn instrumentation that sets a constant value to a field. | 
| protected static class  | FieldAccessor.ForSetter.OfDefaultValueA setter instrumentation that sets a  nullor a primitive type's default value. | 
| protected static class  | FieldAccessor.ForSetter.OfFieldValueA setter that reads a value of another field and sets this value. | 
| protected static class  | FieldAccessor.ForSetter.OfParameterValueA setter instrumentation for a parameter value. | 
| protected static class  | FieldAccessor.ForSetter.OfReferenceValueAn instrumentation that sets a field to a reference value that is stored in a static field of the instrumented type. | 
| class  | FixedValueThis implementation returns a fixed value for a method. | 
| protected static class  | FixedValue.ForArgumentA fixed value implementation that returns a method's argument. | 
| protected static class  | FixedValue.ForNullValueA fixed value of  null. | 
| protected static class  | FixedValue.ForOriginTypeA fixed value that appends the origin type of the instrumented type. | 
| protected static class  | FixedValue.ForPoolValueA fixed value implementation that represents its fixed value as a value that is written to the instrumented
 class's constant pool. | 
| protected static class  | FixedValue.ForThisValueA fixed value of  this. | 
| protected static class  | FixedValue.ForValueA fixed value implementation that represents its fixed value as a static field of the instrumented class. | 
| class  | HashCodeMethodAn implementation of  Object.hashCode()that takes a class's declared fields into consideration. | 
| static class  | Implementation.CompoundA compound implementation that allows to combine several implementations. | 
| static class  | Implementation.Compound.ComposableA compound implementation that allows to combine several implementations and that is  Implementation.Composable. | 
| static class  | Implementation.SimpleA simple implementation that does not register any members with the instrumented type. | 
| protected static class  | Implementation.Simple.ForDispatcherA  ByteCodeAppenderfor a dispatcher. | 
| class  | InvocationHandlerAdapterAn adapter for adapting an  InvocationHandler. | 
| protected static class  | InvocationHandlerAdapter.ForFieldAn implementation of an  InvocationHandlerAdapterthat delegates method
 invocations to an adapter that is stored in an instance field. | 
| protected static class  | InvocationHandlerAdapter.ForInstanceAn implementation of an  InvocationHandlerAdapterthat delegates method
 invocations to an adapter that is stored in a static field. | 
| class  | InvokeDynamicAn implementation that applies a
 dynamic method invocation. | 
| protected static class  | InvokeDynamic.AbstractDelegatorAn abstract delegator that allows to specify a configuration for any specification of an argument. | 
| static class  | InvokeDynamic.WithImplicitArgumentsRepresentation of an  InvokeDynamicimplementation where the bootstrapped
 method is passed athisreference, if available, and any arguments of the instrumented method. | 
| static class  | InvokeDynamic.WithImplicitTargetRepresentation of an  InvokeDynamicimplementation where the bootstrapped
 method is passed athisreference, if available, and any arguments of the instrumented method and
 where the invocation target is implicit. | 
| static class  | InvokeDynamic.WithImplicitTypeAn  InvokeDynamicinvocation where the last argument is assigned its implicit type. | 
| protected static class  | InvokeDynamic.WithImplicitType.OfArgumentAn invoke dynamic implementation where the last argument is an implicitly typed method argument. | 
| protected static class  | InvokeDynamic.WithImplicitType.OfFieldAn invoke dynamic implementation where the last argument is an implicitly typed field value. | 
| protected static class  | InvokeDynamic.WithImplicitType.OfInstanceA step in the invoke dynamic domain specific language that allows to explicitly specify a field type for a reference value. | 
| class  | MethodCallThis  Implementationallows the invocation of a specified method while
 providing explicit arguments to this method. | 
| static class  | MethodCall.FieldSettingA  MethodCallthat sets the call's result as the value of a field. | 
| static class  | MethodCall.WithoutSpecifiedTargetRepresents a  MethodCallthat invokes a method without specifying
 an invocation method. | 
| class  | MethodDelegationThis implementation delegates an method call to another method which can either be  staticby providing
 a reference to aClassor an instance method when another object is provided. | 
| class  | StubMethodThis implementation creates a method stub which does nothing but returning the default value of the return
 type of the method. | 
| class  | SuperMethodCallThis implementation will create a new method which simply calls its super method. | 
| protected static class  | SuperMethodCall.WithoutReturnA super method invocation where the return value is dropped instead of returning from the method. | 
| class  | ToStringMethodAn implementation of  Object.toString()that concatenates theStringrepresentation of all fields that are declared by a class. | 
| Modifier and Type | Method and Description | 
|---|---|
| Implementation | Implementation.Composable. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | Implementation.Compound.Composable. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | InvokeDynamic. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | InvokeDynamic.AbstractDelegator. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | InvocationHandlerAdapter.ForInstance. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | InvocationHandlerAdapter.ForField. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | StubMethod. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | MethodDelegation. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | SuperMethodCall. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | FieldAccessor.ForSetter.OfParameterValue. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | FieldAccessor.ForSetter.OfDefaultValue. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | FieldAccessor.ForSetter.OfConstantValue. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | FieldAccessor.ForSetter.OfReferenceValue. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | FieldAccessor.ForSetter.OfFieldValue. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | MethodCall. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | MethodCall.FieldSetting. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| static Implementation | FixedValue. nullValue()Returns a  nullvalue from an instrumented method. | 
| static Implementation | Implementation.Simple. of(Implementation.Simple.Dispatcher dispatcher)Resolves a simple implementation that applies the given dispatcher without defining additional local variables. | 
| static Implementation | Implementation.Simple. of(Implementation.Simple.Dispatcher dispatcher,
  InstrumentedType.Prepareable prepareable)Resolves a simple implementation that applies the given dispatcher without defining additional local variables. | 
| static Implementation | Implementation.Simple. of(Implementation.Simple.Dispatcher dispatcher,
  InstrumentedType.Prepareable prepareable,
  int additionalVariableLength)Resolves a simple implementation that applies the given dispatcher. | 
| static Implementation | Implementation.Simple. of(Implementation.Simple.Dispatcher dispatcher,
  int additionalVariableLength)Resolves a simple implementation that applies the given dispatcher. | 
| static Implementation | DefaultMethodCall. prioritize(Class<?>... prioritizedInterface)Creates a  DefaultMethodCallimplementation which searches the given list
 of interface types for a suitable default method in their order. | 
| static Implementation | DefaultMethodCall. prioritize(Collection<? extends TypeDescription> prioritizedInterfaces)Creates a  DefaultMethodCallimplementation which searches the given list
 of interface types for a suitable default method in their order. | 
| static Implementation | DefaultMethodCall. prioritize(Iterable<? extends Class<?>> prioritizedInterfaces)Creates a  DefaultMethodCallimplementation which searches the given list
 of interface types for a suitable default method in their order. | 
| static Implementation | DefaultMethodCall. prioritize(TypeDescription... prioritizedInterface)Creates a  DefaultMethodCallimplementation which searches the given list
 of interface types for a suitable default method in their order. | 
| static Implementation | ExceptionMethod. throwing(Class<? extends Throwable> throwableType)Creates an implementation that creates a new instance of the given  Throwabletype on each method invocation
 which is then thrown immediately. | 
| static Implementation | ExceptionMethod. throwing(Class<? extends Throwable> throwableType,
        String message)Creates an implementation that creates a new instance of the given  Throwabletype on each method
 invocation which is then thrown immediately. | 
| static Implementation | ExceptionMethod. throwing(TypeDescription throwableType)Creates an implementation that creates a new instance of the given  Throwabletype on each method invocation
 which is then thrown immediately. | 
| static Implementation | ExceptionMethod. throwing(TypeDescription throwableType,
        String message)Creates an implementation that creates a new instance of the given  Throwabletype on each method
 invocation which is then thrown immediately. | 
| static Implementation | DefaultMethodCall. unambiguousOnly()Creates a  DefaultMethodCallimplementation without prioritizing any
 interface. | 
| abstract Implementation | InvocationHandlerAdapter. withAssigner(Assigner assigner)Configures an assigner to use with this invocation handler adapter. | 
| Implementation | FixedValue.AssignerConfigurable. withAssigner(Assigner assigner,
            Assigner.Typing typing)Defines an explicit assigner to this fixed value implementation. | 
| Implementation | FixedValue.ForOriginType. withAssigner(Assigner assigner,
            Assigner.Typing typing)Defines an explicit assigner to this fixed value implementation. | 
| Implementation | FixedValue.ForThisValue. withAssigner(Assigner assigner,
            Assigner.Typing typing)Defines an explicit assigner to this fixed value implementation. | 
| Implementation | FixedValue.ForArgument. withAssigner(Assigner assigner,
            Assigner.Typing typing)Defines an explicit assigner to this fixed value implementation. | 
| Implementation | FixedValue.ForPoolValue. withAssigner(Assigner assigner,
            Assigner.Typing typing)Defines an explicit assigner to this fixed value implementation. | 
| Implementation | FixedValue.ForValue. withAssigner(Assigner assigner,
            Assigner.Typing typing)Defines an explicit assigner to this fixed value implementation. | 
| Implementation | HashCodeMethod. withMultiplier(int multiplier)Returns a new version of this hash code method implementation that uses the given multiplier onto any given hash code before adding a
 field's hash code. | 
| Implementation | EqualsMethod. withSubclassEquality()Returns a new version of this equals method implementation that permits subclasses of the instrumented type to be equal to instances
 of the instrumented type instead of requiring an exact match. | 
| Implementation | ToStringMethod. withTokens(String start,
          String end,
          String separator,
          String definer)Changes the tokens used for the  Object.toString()implementation. | 
| Modifier and Type | Method and Description | 
|---|---|
| Implementation | Implementation.Composable. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | Implementation.Compound.Composable. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | InvokeDynamic. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | InvokeDynamic.AbstractDelegator. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | InvocationHandlerAdapter.ForInstance. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | InvocationHandlerAdapter.ForField. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | StubMethod. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | MethodDelegation. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | SuperMethodCall. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | FieldAccessor.ForSetter.OfParameterValue. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | FieldAccessor.ForSetter.OfDefaultValue. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | FieldAccessor.ForSetter.OfConstantValue. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | FieldAccessor.ForSetter.OfReferenceValue. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | FieldAccessor.ForSetter.OfFieldValue. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | MethodCall. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Implementation | MethodCall.FieldSetting. andThen(Implementation implementation)Appends the supplied implementation to this implementation. | 
| Constructor and Description | 
|---|
| Composable(Implementation implementation,
          Implementation.Composable composable)Creates a new compound composable. | 
| Compound(Implementation... implementation)Creates a new immutable compound implementation. | 
| Constructor and Description | 
|---|
| Composable(List<? extends Implementation> implementations,
          Implementation.Composable composable)Creates a new compound composable. | 
| Compound(List<? extends Implementation> implementations)Creates a new immutable compound implementation. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | MethodCallProxy.ConstructorCallAn implementation for a constructor of a  MethodCallProxy. | 
| protected static class  | MethodCallProxy.MethodCallAn implementation for a method of a  MethodCallProxy. | 
| protected class  | TypeProxy.MethodCallAn implementation for a method call of a  TypeProxy. | 
| protected static class  | TypeProxy.SilentConstructionAn implementation of a silent construction of a given type by using the non-standardized
  ReflectionFactory. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | FieldProxy.Binder.FieldGetterImplementation for a getter method. | 
| protected static class  | FieldProxy.Binder.FieldSetterImplementation for a setter method. | 
| protected static class  | FieldProxy.Binder.InstanceFieldConstructorRepresents an implementation for implementing a proxy type constructor when a non-static field is accessed. | 
| protected static class  | FieldProxy.Binder.StaticFieldConstructorRepresents an implementation for implementing a proxy type constructor when a static field is accessed. | 
| protected static class  | Morph.Binder.RedirectionProxy.InstanceFieldConstructorCreates an instance of the proxy when instrumenting an instance method. | 
| protected static class  | Morph.Binder.RedirectionProxy.MethodCallImplements a the method call of the morphing method. | 
| protected static class  | Morph.Binder.RedirectionProxy.StaticFieldConstructorCreates an instance of the proxy when instrumenting a static method. | 
| protected static class  | Pipe.Binder.Redirection.ConstructorCallThe implementation to implement a
  Pipe.Binder.Redirection's
 constructor. | 
| protected static class  | Pipe.Binder.Redirection.MethodCallThe implementation to implement a
  Pipe.Binder.Redirection's
 forwarding method. | 
Copyright © 2014–2022. All rights reserved.