| 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  
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. | 
| net.bytebuddy.implementation.attribute | 
 All types and classes in this package are responsible for writing attributes for a given Java byte code element,
 i.e. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected FieldAttributeAppender.Factory | 
ByteBuddy.defaultFieldAttributeAppenderFactory
The default field attribute appender factory which is applied to any field that is defined
 for implementations that are applied by this configuration. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ByteBuddy | 
ByteBuddy.withDefaultFieldAttributeAppender(FieldAttributeAppender.Factory attributeAppenderFactory)
Defines a new default field attribute appender factory that is applied onto any field. 
 | 
ByteBuddy | 
ByteBuddy.Proxy.withDefaultFieldAttributeAppender(FieldAttributeAppender.Factory attributeAppenderFactory)  | 
| Constructor and Description | 
|---|
ByteBuddy(ClassFileVersion classFileVersion,
         NamingStrategy.Unbound namingStrategy,
         AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
         Implementation.Context.Factory implementationContextFactory,
         List<TypeDescription> interfaceTypes,
         ElementMatcher<? super MethodDescription> ignoredMethods,
         ClassVisitorWrapper.Chain classVisitorWrapperChain,
         MethodRegistry methodRegistry,
         ByteBuddy.Definable<Integer> modifiers,
         TypeAttributeAppender typeAttributeAppender,
         MethodGraph.Compiler methodGraphCompiler,
         FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
         MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory)
Defines a new  
ByteBuddy configuration. | 
MethodAnnotationTarget(ClassFileVersion classFileVersion,
                      NamingStrategy.Unbound namingStrategy,
                      AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                      Implementation.Context.Factory implementationContextFactory,
                      List<TypeDescription> interfaceTypes,
                      ElementMatcher<? super MethodDescription> ignoredMethods,
                      ClassVisitorWrapper.Chain classVisitorWrapperChain,
                      MethodRegistry methodRegistry,
                      ByteBuddy.Definable<Integer> modifiers,
                      TypeAttributeAppender typeAttributeAppender,
                      MethodGraph.Compiler methodGraphCompiler,
                      FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                      MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                      LatentMethodMatcher methodMatcher,
                      MethodRegistry.Handler handler,
                      MethodAttributeAppender.Factory attributeAppenderFactory,
                      MethodTransformer methodTransformer)
Creates a new method annotation target. 
 | 
OptionalMethodInterception(ClassFileVersion classFileVersion,
                          NamingStrategy.Unbound namingStrategy,
                          AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                          Implementation.Context.Factory implementationContextFactory,
                          List<TypeDescription> interfaceTypes,
                          ElementMatcher<? super MethodDescription> ignoredMethods,
                          ClassVisitorWrapper.Chain classVisitorWrapperChain,
                          MethodRegistry methodRegistry,
                          ByteBuddy.Definable<Integer> modifiers,
                          TypeAttributeAppender typeAttributeAppender,
                          MethodGraph.Compiler methodGraphCompiler,
                          FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                          MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                          LatentMethodMatcher methodMatcher)
Creates a new optional method interception. 
 | 
Proxy(ClassFileVersion classFileVersion,
     NamingStrategy.Unbound namingStrategy,
     AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
     Implementation.Context.Factory implementationContextFactory,
     List<TypeDescription> interfaceTypes,
     ElementMatcher<? super MethodDescription> ignoredMethods,
     ClassVisitorWrapper.Chain classVisitorWrapperChain,
     MethodRegistry methodRegistry,
     ByteBuddy.Definable<Integer> modifiers,
     TypeAttributeAppender typeAttributeAppender,
     MethodGraph.Compiler methodGraphCompiler,
     FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
     MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory)
Defines a new proxy configuration for  
ByteBuddy. | 
| Modifier and Type | Field and Description | 
|---|---|
protected FieldAttributeAppender.Factory | 
DynamicType.Builder.AbstractBase.defaultFieldAttributeAppenderFactory
The default field attribute appender factory that is automatically added to any field that is
 registered on this builder. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
DynamicType.Builder.FieldAnnotationTarget<S> | 
DynamicType.Builder.FieldAnnotationTarget.attribute(FieldAttributeAppender.Factory attributeAppenderFactory)
Defines an attribute appender factory to be applied onto the currently selected field. 
 | 
DynamicType.Builder.FieldAnnotationTarget<S> | 
DynamicType.Builder.AbstractBase.DefaultFieldValueTarget.attribute(FieldAttributeAppender.Factory attributeAppenderFactory)  | 
protected abstract DynamicType.Builder<S> | 
DynamicType.Builder.AbstractBase.materialize(ClassFileVersion classFileVersion,
           NamingStrategy namingStrategy,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           Implementation.Context.Factory implementationContextFactory,
           TypeDescription targetType,
           List<GenericTypeDescription> interfaceTypes,
           int modifiers,
           TypeAttributeAppender attributeAppender,
           ElementMatcher<? super MethodDescription> ignoredMethods,
           ClassVisitorWrapper.Chain classVisitorWrapperChain,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           MethodGraph.Compiler methodGraphCompiler,
           FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
           MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
           List<FieldDescription.Token> fieldTokens,
           List<MethodDescription.Token> methodTokens)
Creates a new immutable type builder which represents the given arguments. 
 | 
| Constructor and Description | 
|---|
AbstractBase(ClassFileVersion classFileVersion,
            NamingStrategy namingStrategy,
            AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
            Implementation.Context.Factory implementationContextFactory,
            TypeDescription targetType,
            List<GenericTypeDescription> interfaceTypes,
            int modifiers,
            TypeAttributeAppender attributeAppender,
            ElementMatcher<? super MethodDescription> ignoredMethods,
            ClassVisitorWrapper.Chain classVisitorWrapperChain,
            FieldRegistry fieldRegistry,
            MethodRegistry methodRegistry,
            MethodGraph.Compiler methodGraphCompiler,
            FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
            MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
            List<FieldDescription.Token> fieldTokens,
            List<MethodDescription.Token> methodTokens)
Creates a new immutable type builder base implementation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
FieldAttributeAppender.Factory | 
FieldRegistry.Default.Entry.getAttributeAppenderFactory()
Returns the field attribute appender factory. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
FieldRegistry | 
FieldRegistry.include(FieldDescription.Token fieldToken,
       FieldAttributeAppender.Factory attributeAppenderFactory,
       Object defaultValue)
Creates a new field registry with the given attribute appender registered for the supplied field matcher. 
 | 
FieldRegistry | 
FieldRegistry.Default.include(FieldDescription.Token fieldToken,
       FieldAttributeAppender.Factory attributeAppenderFactory,
       Object defaultValue)  | 
| Constructor and Description | 
|---|
Entry(FieldAttributeAppender.Factory attributeAppenderFactory,
     Object defaultValue)
Creates a new entry. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected DynamicType.Builder<T> | 
RedefinitionDynamicTypeBuilder.materialize(ClassFileVersion classFileVersion,
           NamingStrategy namingStrategy,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           Implementation.Context.Factory implementationContextFactory,
           TypeDescription levelType,
           List<GenericTypeDescription> interfaceTypes,
           int modifiers,
           TypeAttributeAppender attributeAppender,
           ElementMatcher<? super MethodDescription> ignoredMethods,
           ClassVisitorWrapper.Chain classVisitorWrapperChain,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           MethodGraph.Compiler methodGraphCompiler,
           FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
           MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
           List<FieldDescription.Token> fieldTokens,
           List<MethodDescription.Token> methodTokens)  | 
protected DynamicType.Builder<T> | 
RebaseDynamicTypeBuilder.materialize(ClassFileVersion classFileVersion,
           NamingStrategy namingStrategy,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           Implementation.Context.Factory implementationContextFactory,
           TypeDescription levelType,
           List<GenericTypeDescription> interfaceTypes,
           int modifiers,
           TypeAttributeAppender attributeAppender,
           ElementMatcher<? super MethodDescription> ignoredMethods,
           ClassVisitorWrapper.Chain classVisitorWrapperChain,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           MethodGraph.Compiler methodGraphCompiler,
           FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
           MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
           List<FieldDescription.Token> fieldTokens,
           List<MethodDescription.Token> methodTokens)  | 
| Constructor and Description | 
|---|
RebaseDynamicTypeBuilder(ClassFileVersion classFileVersion,
                        NamingStrategy namingStrategy,
                        AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                        Implementation.Context.Factory implementationContextFactory,
                        TypeDescription levelType,
                        List<GenericTypeDescription> interfaceTypes,
                        int modifiers,
                        TypeAttributeAppender attributeAppender,
                        ElementMatcher<? super MethodDescription> ignoredMethods,
                        ClassVisitorWrapper.Chain classVisitorWrapperChain,
                        FieldRegistry fieldRegistry,
                        MethodRegistry methodRegistry,
                        MethodGraph.Compiler methodGraphCompiler,
                        FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                        MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                        List<FieldDescription.Token> fieldTokens,
                        List<MethodDescription.Token> methodTokens,
                        ClassFileLocator classFileLocator,
                        MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new rebase dynamic type builder. 
 | 
RebaseDynamicTypeBuilder(ClassFileVersion classFileVersion,
                        NamingStrategy namingStrategy,
                        AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                        Implementation.Context.Factory implementationContextFactory,
                        TypeDescription levelType,
                        List<TypeDescription> interfaceTypes,
                        int modifiers,
                        TypeAttributeAppender attributeAppender,
                        ElementMatcher<? super MethodDescription> ignoredMethods,
                        ClassVisitorWrapper.Chain classVisitorWrapperChain,
                        FieldRegistry fieldRegistry,
                        MethodRegistry methodRegistry,
                        MethodGraph.Compiler methodGraphCompiler,
                        FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                        MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                        ClassFileLocator classFileLocator,
                        MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new rebase dynamic type builder. 
 | 
RedefinitionDynamicTypeBuilder(ClassFileVersion classFileVersion,
                              NamingStrategy namingStrategy,
                              AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                              Implementation.Context.Factory implementationContextFactory,
                              TypeDescription levelType,
                              List<GenericTypeDescription> interfaceTypes,
                              int modifiers,
                              TypeAttributeAppender attributeAppender,
                              ElementMatcher<? super MethodDescription> ignoredMethods,
                              ClassVisitorWrapper.Chain classVisitorWrapperChain,
                              FieldRegistry fieldRegistry,
                              MethodRegistry methodRegistry,
                              MethodGraph.Compiler methodGraphCompiler,
                              FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                              MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                              List<FieldDescription.Token> fieldTokens,
                              List<MethodDescription.Token> methodTokens,
                              ClassFileLocator classFileLocator)
Creates a new redefinition dynamic type builder. 
 | 
RedefinitionDynamicTypeBuilder(ClassFileVersion classFileVersion,
                              NamingStrategy namingStrategy,
                              AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                              Implementation.Context.Factory implementationContextFactory,
                              TypeDescription levelType,
                              List<TypeDescription> interfaceTypes,
                              int modifiers,
                              TypeAttributeAppender attributeAppender,
                              ElementMatcher<? super MethodDescription> ignoredMethods,
                              ClassVisitorWrapper.Chain classVisitorWrapperChain,
                              FieldRegistry fieldRegistry,
                              MethodRegistry methodRegistry,
                              MethodGraph.Compiler methodGraphCompiler,
                              FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                              MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                              ClassFileLocator classFileLocator)
Creates a new redefinition dynamic type builder. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected DynamicType.Builder<T> | 
SubclassDynamicTypeBuilder.materialize(ClassFileVersion classFileVersion,
           NamingStrategy namingStrategy,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           Implementation.Context.Factory implementationContextFactory,
           TypeDescription targetType,
           List<GenericTypeDescription> interfaceTypes,
           int modifiers,
           TypeAttributeAppender attributeAppender,
           ElementMatcher<? super MethodDescription> ignoredMethods,
           ClassVisitorWrapper.Chain classVisitorWrapperChain,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           MethodGraph.Compiler methodGraphCompiler,
           FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
           MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
           List<FieldDescription.Token> fieldTokens,
           List<MethodDescription.Token> methodTokens)  | 
| Constructor and Description | 
|---|
SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
                          NamingStrategy namingStrategy,
                          AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                          Implementation.Context.Factory implementationContextFactory,
                          TypeDescription superType,
                          List<GenericTypeDescription> interfaceTypes,
                          int modifiers,
                          TypeAttributeAppender attributeAppender,
                          ElementMatcher<? super MethodDescription> ignoredMethods,
                          ClassVisitorWrapper.Chain classVisitorWrapperChain,
                          FieldRegistry fieldRegistry,
                          MethodRegistry methodRegistry,
                          MethodGraph.Compiler methodGraphCompiler,
                          FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                          MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                          List<FieldDescription.Token> fieldTokens,
                          List<MethodDescription.Token> methodTokens,
                          ConstructorStrategy constructorStrategy)
Creates a new immutable type builder for a subclassing a given class. 
 | 
SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
                          NamingStrategy namingStrategy,
                          AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                          Implementation.Context.Factory implementationContextFactory,
                          TypeDescription superType,
                          List<TypeDescription> interfaceTypes,
                          int modifiers,
                          TypeAttributeAppender attributeAppender,
                          ElementMatcher<? super MethodDescription> ignoredMethods,
                          ClassVisitorWrapper.Chain classVisitorWrapperChain,
                          FieldRegistry fieldRegistry,
                          MethodRegistry methodRegistry,
                          MethodGraph.Compiler methodGraphCompiler,
                          FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                          MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                          ConstructorStrategy constructorStrategy)
Creates a new immutable type builder for a subclassing a given class. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
FieldAttributeAppender.Factory.Compound
A field attribute appender factory that combines several field attribute appender factories to be
 represented as a single factory. 
 | 
static class  | 
FieldAttributeAppender.ForAnnotation
Appends an annotation to a field. 
 | 
static class  | 
FieldAttributeAppender.ForField
Writes all annotations that are found on a field that belongs to a loaded type of the JVM as visible
 annotations. 
 | 
static class  | 
FieldAttributeAppender.NoOp
A field attribute appender that does not append any attributes. 
 | 
| Constructor and Description | 
|---|
Compound(FieldAttributeAppender.Factory... factory)
Creates a new compound field attribute appender factory. 
 | 
Copyright © 2014–2015. All rights reserved.