| Package | Description | 
|---|---|
| net.bytebuddy | Byte Buddy is a library for creating Java classes at runtime of a Java program. | 
| 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  DynamicTypeby
 enhancing a given type. | 
| net.bytebuddy.dynamic.scaffold.subclass | All classes and types in this package are related to creating a  DynamicTypeby
 creating a subclass of a given type. | 
| net.bytebuddy.implementation | The implementation package contains any logic for intercepting method calls. | 
| net.bytebuddy.implementation.auxiliary | Auxiliary types describe helper types that aid as a supplementary to a given
  InstrumentedType. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected MethodGraph.Compiler | ByteBuddy. methodGraphCompilerThe method graph compiler to use. | 
| Modifier and Type | Method and Description | 
|---|---|
| ByteBuddy | ByteBuddy. with(MethodGraph.Compiler methodGraphCompiler)Creates a new configuration where the  MethodGraph.Compileris used for creating aMethodGraphof the instrumented type. | 
| Constructor and Description | 
|---|
| ByteBuddy(ClassFileVersion classFileVersion,
         NamingStrategy namingStrategy,
         AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
         AnnotationValueFilter.Factory annotationValueFilterFactory,
         AnnotationRetention annotationRetention,
         Implementation.Context.Factory implementationContextFactory,
         MethodGraph.Compiler methodGraphCompiler,
         TypeValidation typeValidation,
         LatentMatcher<? super MethodDescription> ignoredMethods)Creates a new Byte Buddy instance. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected MethodGraph.Compiler | DynamicType.Builder.AbstractBase.Adapter. methodGraphCompilerThe method graph compiler to use. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract DynamicType.Builder<U> | DynamicType.Builder.AbstractBase.Adapter. materialize(InstrumentedType.WithFlexibleName instrumentedType,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           TypeAttributeAppender typeAttributeAppender,
           AsmVisitorWrapper asmVisitorWrapper,
           ClassFileVersion classFileVersion,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           AnnotationValueFilter.Factory annotationValueFilterFactory,
           AnnotationRetention annotationRetention,
           Implementation.Context.Factory implementationContextFactory,
           MethodGraph.Compiler methodGraphCompiler,
           TypeValidation typeValidation,
           LatentMatcher<? super MethodDescription> ignoredMethods)Materializes the supplied state of a dynamic type builder. | 
| Constructor and Description | 
|---|
| Adapter(InstrumentedType.WithFlexibleName instrumentedType,
       FieldRegistry fieldRegistry,
       MethodRegistry methodRegistry,
       TypeAttributeAppender typeAttributeAppender,
       AsmVisitorWrapper asmVisitorWrapper,
       ClassFileVersion classFileVersion,
       AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
       AnnotationValueFilter.Factory annotationValueFilterFactory,
       AnnotationRetention annotationRetention,
       Implementation.Context.Factory implementationContextFactory,
       MethodGraph.Compiler methodGraphCompiler,
       TypeValidation typeValidation,
       LatentMatcher<? super MethodDescription> ignoredMethods)Creates a new default type writer for creating a new type that is not based on an existing class file. | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | MethodGraph.Compiler.AbstractBaseAn abstract base implementation of a method graph compiler. | 
| static class  | MethodGraph.Compiler.Default<T>A default implementation of a method graph. | 
| static class  | MethodGraph.EmptyA canonical implementation of an empty method graph. | 
| Modifier and Type | Field and Description | 
|---|---|
| static MethodGraph.Compiler | MethodGraph.Compiler. DEFAULTThe default compiler for compiling Java methods. | 
| Modifier and Type | Method and Description | 
|---|---|
| static MethodGraph.Compiler | MethodGraph.Compiler.Default. forJavaHierarchy()
 Creates a default compiler for a method hierarchy following the rules of the Java programming language. | 
| static MethodGraph.Compiler | MethodGraph.Compiler.Default. forJVMHierarchy()
 Creates a default compiler for a method hierarchy following the rules of the Java virtual machine. | 
| static <S> MethodGraph.Compiler | MethodGraph.Compiler.Default. of(MethodGraph.Compiler.Default.Harmonizer<S> harmonizer,
  MethodGraph.Compiler.Default.Merger merger)Creates a default compiler using the given harmonizer and merger. | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodRegistry.Prepared | MethodRegistry. prepare(InstrumentedType instrumentedType,
       MethodGraph.Compiler methodGraphCompiler,
       TypeValidation typeValidation,
       LatentMatcher<? super MethodDescription> ignoredMethods)Prepares this method registry. | 
| MethodRegistry.Prepared | MethodRegistry.Default. prepare(InstrumentedType instrumentedType,
       MethodGraph.Compiler methodGraphCompiler,
       TypeValidation typeValidation,
       LatentMatcher<? super MethodDescription> ignoredMethods) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected DynamicType.Builder<T> | RebaseDynamicTypeBuilder. materialize(InstrumentedType.WithFlexibleName instrumentedType,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           TypeAttributeAppender typeAttributeAppender,
           AsmVisitorWrapper asmVisitorWrapper,
           ClassFileVersion classFileVersion,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           AnnotationValueFilter.Factory annotationValueFilterFactory,
           AnnotationRetention annotationRetention,
           Implementation.Context.Factory implementationContextFactory,
           MethodGraph.Compiler methodGraphCompiler,
           TypeValidation typeValidation,
           LatentMatcher<? super MethodDescription> ignoredMethods) | 
| protected DynamicType.Builder<T> | RedefinitionDynamicTypeBuilder. materialize(InstrumentedType.WithFlexibleName instrumentedType,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           TypeAttributeAppender typeAttributeAppender,
           AsmVisitorWrapper asmVisitorWrapper,
           ClassFileVersion classFileVersion,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           AnnotationValueFilter.Factory annotationValueFilterFactory,
           AnnotationRetention annotationRetention,
           Implementation.Context.Factory implementationContextFactory,
           MethodGraph.Compiler methodGraphCompiler,
           TypeValidation typeValidation,
           LatentMatcher<? super MethodDescription> ignoredMethods) | 
| Constructor and Description | 
|---|
| RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
                        ClassFileVersion classFileVersion,
                        AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                        AnnotationValueFilter.Factory annotationValueFilterFactory,
                        AnnotationRetention annotationRetention,
                        Implementation.Context.Factory implementationContextFactory,
                        MethodGraph.Compiler methodGraphCompiler,
                        TypeValidation typeValidation,
                        LatentMatcher<? super MethodDescription> ignoredMethods,
                        TypeDescription originalType,
                        ClassFileLocator classFileLocator,
                        MethodNameTransformer methodNameTransformer)Creates a rebase dynamic type builder. | 
| RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
                        FieldRegistry fieldRegistry,
                        MethodRegistry methodRegistry,
                        TypeAttributeAppender typeAttributeAppender,
                        AsmVisitorWrapper asmVisitorWrapper,
                        ClassFileVersion classFileVersion,
                        AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                        AnnotationValueFilter.Factory annotationValueFilterFactory,
                        AnnotationRetention annotationRetention,
                        Implementation.Context.Factory implementationContextFactory,
                        MethodGraph.Compiler methodGraphCompiler,
                        TypeValidation typeValidation,
                        LatentMatcher<? super MethodDescription> ignoredMethods,
                        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,
                              LatentMatcher<? super MethodDescription> ignoredMethods,
                              TypeDescription originalType,
                              ClassFileLocator classFileLocator)Creates a redefinition dynamic type builder. | 
| RedefinitionDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
                              FieldRegistry fieldRegistry,
                              MethodRegistry methodRegistry,
                              TypeAttributeAppender typeAttributeAppender,
                              AsmVisitorWrapper asmVisitorWrapper,
                              ClassFileVersion classFileVersion,
                              AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                              AnnotationValueFilter.Factory annotationValueFilterFactory,
                              AnnotationRetention annotationRetention,
                              Implementation.Context.Factory implementationContextFactory,
                              MethodGraph.Compiler methodGraphCompiler,
                              TypeValidation typeValidation,
                              LatentMatcher<? super MethodDescription> ignoredMethods,
                              TypeDescription originalType,
                              ClassFileLocator classFileLocator)Creates a redefinition dynamic type builder. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected DynamicType.Builder<T> | SubclassDynamicTypeBuilder. materialize(InstrumentedType.WithFlexibleName instrumentedType,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           TypeAttributeAppender typeAttributeAppender,
           AsmVisitorWrapper asmVisitorWrapper,
           ClassFileVersion classFileVersion,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           AnnotationValueFilter.Factory annotationValueFilterFactory,
           AnnotationRetention annotationRetention,
           Implementation.Context.Factory implementationContextFactory,
           MethodGraph.Compiler methodGraphCompiler,
           TypeValidation typeValidation,
           LatentMatcher<? super MethodDescription> ignoredMethods) | 
| Constructor and Description | 
|---|
| SubclassDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
                          ClassFileVersion classFileVersion,
                          AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                          AnnotationValueFilter.Factory annotationValueFilterFactory,
                          AnnotationRetention annotationRetention,
                          Implementation.Context.Factory implementationContextFactory,
                          MethodGraph.Compiler methodGraphCompiler,
                          TypeValidation typeValidation,
                          LatentMatcher<? super MethodDescription> ignoredMethods,
                          ConstructorStrategy constructorStrategy)Creates a new type builder for creating a subclass. | 
| SubclassDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
                          FieldRegistry fieldRegistry,
                          MethodRegistry methodRegistry,
                          TypeAttributeAppender typeAttributeAppender,
                          AsmVisitorWrapper asmVisitorWrapper,
                          ClassFileVersion classFileVersion,
                          AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                          AnnotationValueFilter.Factory annotationValueFilterFactory,
                          AnnotationRetention annotationRetention,
                          Implementation.Context.Factory implementationContextFactory,
                          MethodGraph.Compiler methodGraphCompiler,
                          TypeValidation typeValidation,
                          LatentMatcher<? super MethodDescription> ignoredMethods,
                          ConstructorStrategy constructorStrategy)Creates a new type builder for creating a subclass. | 
| Modifier and Type | Method and Description | 
|---|---|
| static MethodDelegation | MethodDelegation. to(Object delegate,
  MethodGraph.Compiler methodGraphCompiler)Creates an implementation where only instance methods of the given object are considered as binding targets. | 
| static MethodDelegation | MethodDelegation. to(Object delegate,
  String fieldName,
  MethodGraph.Compiler methodGraphCompiler)Creates an implementation where only instance methods of the given object are considered as binding targets. | 
| static MethodDelegation | MethodDelegation. to(Object delegate,
  Type type,
  MethodGraph.Compiler methodGraphCompiler)Creates an implementation where only instance methods of the given object are considered as binding targets. | 
| static MethodDelegation | MethodDelegation. to(Object delegate,
  Type type,
  String fieldName,
  MethodGraph.Compiler methodGraphCompiler)Creates an implementation where only instance methods of the given object are considered as binding targets. | 
| static MethodDelegation | MethodDelegation. toInstanceField(Class<?> type,
               String fieldName,
               MethodGraph.Compiler methodGraphCompiler)Creates an implementation where method calls are delegated to an instance that is manually stored in a field
  fieldNamethat is defined for the instrumented type. | 
| static MethodDelegation | MethodDelegation. toInstanceField(TypeDefinition typeDefinition,
               String fieldName,
               MethodGraph.Compiler methodGraphCompiler)Creates an implementation where method calls are delegated to an instance that is manually stored in a field
  fieldNamethat is defined for the instrumented type. | 
| Constructor and Description | 
|---|
| ForVirtualMethods(MethodGraph.Compiler methodGraphCompiler,
                 TypeDescription.Generic targetType)Creates a new method container for virtual method extraction. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | MethodCallProxy.PrecomputedMethodGraphA precomputed method graph that only displays the methods that are relevant for creating a method call proxy. | 
Copyright © 2014–2016. All rights reserved.