| 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.instrumentation | The instrumentation package contains any logic for intercepting method calls. | 
| net.bytebuddy.instrumentation.method.bytecode.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. | 
| net.bytebuddy.instrumentation.type.auxiliary | Auxiliary types describe helper types that aid as a supplementary to a given
  InstrumentedType. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ClassFileVersion | ByteBuddy. classFileVersionThe class file version of the current configuration. | 
| static ClassFileVersion | ClassFileVersion. JAVA_V1The class file version of Java 1. | 
| static ClassFileVersion | ClassFileVersion. JAVA_V2The class file version of Java 2. | 
| static ClassFileVersion | ClassFileVersion. JAVA_V3The class file version of Java 3. | 
| static ClassFileVersion | ClassFileVersion. JAVA_V4The class file version of Java 4. | 
| static ClassFileVersion | ClassFileVersion. JAVA_V5The class file version of Java 5. | 
| static ClassFileVersion | ClassFileVersion. JAVA_V6The class file version of Java 6. | 
| static ClassFileVersion | ClassFileVersion. JAVA_V7The class file version of Java 7. | 
| static ClassFileVersion | ClassFileVersion. JAVA_V8The class file version of Java 8. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ClassFileVersion | ClassFileVersion. forCurrentJavaVersion()Finds the highest class file version that is compatible to the current JVM version by parsing the java.version
 property which is provided by  System.getProperty(String). | 
| static ClassFileVersion | ClassFileVersion. forKnownJavaVersion(int javaVersion)Creates a class file version for a given major release of Java. | 
| ClassFileVersion | NamingStrategy.UnnamedType. getClassFileVersion()Returns the class file version of this unnamed type. | 
| ClassFileVersion | NamingStrategy.UnnamedType.Default. getClassFileVersion() | 
| ClassFileVersion | ByteBuddy. getClassFileVersion()Returns the class file version that is defined for the current configuration. | 
| ClassFileVersion | ByteBuddy.MethodAnnotationTarget. getClassFileVersion() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | ClassFileVersion. compareTo(ClassFileVersion other) | 
| ByteBuddy | ByteBuddy. withClassFileVersion(ClassFileVersion classFileVersion)Defines a new class file version for this configuration. | 
| ByteBuddy | ByteBuddy.MethodAnnotationTarget. withClassFileVersion(ClassFileVersion classFileVersion) | 
| Constructor and Description | 
|---|
| ByteBuddy(ClassFileVersion classFileVersion)Defines a new  ByteBuddydefault configuration for the given class file version. | 
| ByteBuddy(ClassFileVersion classFileVersion,
         NamingStrategy namingStrategy,
         List<TypeDescription> interfaceTypes,
         MethodMatcher ignoredMethods,
         BridgeMethodResolver.Factory bridgeMethodResolverFactory,
         ClassVisitorWrapper.Chain classVisitorWrapperChain,
         MethodRegistry methodRegistry,
         ByteBuddy.Definable<Integer> modifiers,
         TypeAttributeAppender typeAttributeAppender,
         MethodLookupEngine.Factory methodLookupEngineFactory,
         FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
         MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory)Defines a new  ByteBuddyconfiguration. | 
| Default(TypeDescription superClass,
       List<TypeDescription> interfaces,
       int modifiers,
       ClassFileVersion classFileVersion)Creates a new unnamed type. | 
| MethodAnnotationTarget(ClassFileVersion classFileVersion,
                      NamingStrategy namingStrategy,
                      List<TypeDescription> interfaceTypes,
                      MethodMatcher ignoredMethods,
                      BridgeMethodResolver.Factory bridgeMethodResolverFactory,
                      ClassVisitorWrapper.Chain classVisitorWrapperChain,
                      MethodRegistry methodRegistry,
                      ByteBuddy.Definable<Integer> modifiers,
                      TypeAttributeAppender typeAttributeAppender,
                      MethodLookupEngine.Factory methodLookupEngineFactory,
                      FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                      MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                      MethodMatcher methodMatcher,
                      Instrumentation instrumentation,
                      MethodAttributeAppender.Factory attributeAppenderFactory)Creates a new method annotation target. | 
| OptionalMethodInterception(ClassFileVersion classFileVersion,
                          NamingStrategy namingStrategy,
                          List<TypeDescription> interfaceTypes,
                          MethodMatcher ignoredMethods,
                          BridgeMethodResolver.Factory bridgeMethodResolverFactory,
                          ClassVisitorWrapper.Chain classVisitorWrapperChain,
                          MethodRegistry methodRegistry,
                          ByteBuddy.Definable<Integer> modifiers,
                          TypeAttributeAppender typeAttributeAppender,
                          MethodLookupEngine.Factory methodLookupEngineFactory,
                          FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                          MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                          MethodMatcher methodMatcher)Creates a new optional method interception. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ClassFileVersion | DynamicType.Builder.AbstractBase. classFileVersionThe class file version specified for this builder. | 
| Modifier and Type | Method and Description | 
|---|---|
| DynamicType.Builder<T> | DynamicType.Builder. classFileVersion(ClassFileVersion classFileVersion)Defines a class file format version for this builder for which the dynamic types should be created. | 
| DynamicType.Builder<S> | DynamicType.Builder.AbstractBase. classFileVersion(ClassFileVersion classFileVersion) | 
| DynamicType.Builder<U> | DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder. classFileVersion(ClassFileVersion classFileVersion) | 
| protected abstract DynamicType.Builder<S> | DynamicType.Builder.AbstractBase. materialize(ClassFileVersion classFileVersion,
           NamingStrategy namingStrategy,
           TypeDescription targetType,
           List<TypeDescription> interfaceTypes,
           int modifiers,
           TypeAttributeAppender attributeAppender,
           MethodMatcher ignoredMethods,
           BridgeMethodResolver.Factory bridgeMethodResolverFactory,
           ClassVisitorWrapper.Chain classVisitorWrapperChain,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           MethodLookupEngine.Factory methodLookupEngineFactory,
           FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
           MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
           List<DynamicType.Builder.AbstractBase.FieldToken> fieldTokens,
           List<DynamicType.Builder.AbstractBase.MethodToken> methodTokens)Creates a new immutable type builder which represents the given arguments. | 
| Constructor and Description | 
|---|
| AbstractBase(ClassFileVersion classFileVersion,
            NamingStrategy namingStrategy,
            TypeDescription targetType,
            List<TypeDescription> interfaceTypes,
            int modifiers,
            TypeAttributeAppender attributeAppender,
            MethodMatcher ignoredMethods,
            BridgeMethodResolver.Factory bridgeMethodResolverFactory,
            ClassVisitorWrapper.Chain classVisitorWrapperChain,
            FieldRegistry fieldRegistry,
            MethodRegistry methodRegistry,
            MethodLookupEngine.Factory methodLookupEngineFactory,
            FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
            MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
            List<DynamicType.Builder.AbstractBase.FieldToken> fieldTokens,
            List<DynamicType.Builder.AbstractBase.MethodToken> methodTokens)Creates a new immutable type builder base implementation. | 
| Constructor and Description | 
|---|
| Default(TypeDescription instrumentedType,
       LoadedTypeInitializer loadedTypeInitializer,
       List<DynamicType> explicitAuxiliaryTypes,
       ClassFileVersion classFileVersion,
       TypeWriter.Engine engine)Creates a new immutable type writer. | 
| ForCreation(TypeDescription instrumentedType,
           ClassFileVersion classFileVersion,
           List<? extends MethodDescription> invokableMethods,
           ClassVisitorWrapper classVisitorWrapper,
           TypeAttributeAppender attributeAppender,
           TypeWriter.FieldPool fieldPool,
           TypeWriter.MethodPool methodPool)Creates a new type writer engine for redefining an existent class file. | 
| ForRedefinition(TypeDescription instrumentedType,
               TypeDescription targetType,
               ClassFileVersion classFileVersion,
               List<? extends MethodDescription> invokableMethods,
               ClassVisitorWrapper classVisitorWrapper,
               TypeAttributeAppender attributeAppender,
               TypeWriter.FieldPool fieldPool,
               TypeWriter.MethodPool methodPool,
               ClassFileLocator classFileLocator,
               MethodRebaseResolver methodRebaseResolver)Creates a new type writer that reads a class file and weaves in user defined method implementations. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected DynamicType.Builder<T> | InlineDynamicTypeBuilder. materialize(ClassFileVersion classFileVersion,
           NamingStrategy namingStrategy,
           TypeDescription levelType,
           List<TypeDescription> interfaceTypes,
           int modifiers,
           TypeAttributeAppender attributeAppender,
           MethodMatcher ignoredMethods,
           BridgeMethodResolver.Factory bridgeMethodResolverFactory,
           ClassVisitorWrapper.Chain classVisitorWrapperChain,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           MethodLookupEngine.Factory methodLookupEngineFactory,
           FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
           MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
           List<DynamicType.Builder.AbstractBase.FieldToken> fieldTokens,
           List<DynamicType.Builder.AbstractBase.MethodToken> methodTokens) | 
| InlineDynamicTypeBuilder.TargetHandler.Prepared | InlineDynamicTypeBuilder.TargetHandler. prepare(MethodMatcher ignoredMethods,
       ClassFileVersion classFileVersion,
       TypeDescription instrumentedType)Prepares this target handler to a given set of type creation properties. | 
| InlineDynamicTypeBuilder.TargetHandler.Prepared | InlineDynamicTypeBuilder.TargetHandler.ForRedefinitionInstrumentation. prepare(MethodMatcher ignoredMethods,
       ClassFileVersion classFileVersion,
       TypeDescription instrumentedType) | 
| InlineDynamicTypeBuilder.TargetHandler.Prepared | InlineDynamicTypeBuilder.TargetHandler.ForRebaseInstrumentation. prepare(MethodMatcher ignoredMethods,
       ClassFileVersion classFileVersion,
       TypeDescription instrumentedType) | 
| Constructor and Description | 
|---|
| ForRebaseInstrumentation(MethodMatcher ignoredMethods,
                        ClassFileVersion classFileVersion,
                        TypeDescription instrumentedType)Creates a new prepared target handler for a rebase instrumentation. | 
| InlineDynamicTypeBuilder(ClassFileVersion classFileVersion,
                        NamingStrategy namingStrategy,
                        TypeDescription levelType,
                        List<? extends TypeDescription> interfaceTypes,
                        int modifiers,
                        TypeAttributeAppender attributeAppender,
                        MethodMatcher ignoredMethods,
                        BridgeMethodResolver.Factory bridgeMethodResolverFactory,
                        ClassVisitorWrapper.Chain classVisitorWrapperChain,
                        FieldRegistry fieldRegistry,
                        MethodRegistry methodRegistry,
                        MethodLookupEngine.Factory methodLookupEngineFactory,
                        FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                        MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                        ClassFileLocator classFileLocator,
                        InlineDynamicTypeBuilder.TargetHandler targetHandler)Creates a new immutable type builder for enhancing a given class. | 
| InlineDynamicTypeBuilder(ClassFileVersion classFileVersion,
                        NamingStrategy namingStrategy,
                        TypeDescription levelType,
                        List<TypeDescription> interfaceTypes,
                        int modifiers,
                        TypeAttributeAppender attributeAppender,
                        MethodMatcher ignoredMethods,
                        BridgeMethodResolver.Factory bridgeMethodResolverFactory,
                        ClassVisitorWrapper.Chain classVisitorWrapperChain,
                        FieldRegistry fieldRegistry,
                        MethodRegistry methodRegistry,
                        MethodLookupEngine.Factory methodLookupEngineFactory,
                        FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                        MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                        List<DynamicType.Builder.AbstractBase.FieldToken> fieldTokens,
                        List<DynamicType.Builder.AbstractBase.MethodToken> methodTokens,
                        ClassFileLocator classFileLocator,
                        InlineDynamicTypeBuilder.TargetHandler targetHandler)Creates a new immutable type builder for enhancing a given class. | 
| InlineInstrumentedType(ClassFileVersion classFileVersion,
                      TypeDescription levelType,
                      List<TypeDescription> interfaces,
                      int modifiers,
                      NamingStrategy namingStrategy)Creates a new inlined instrumented type. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected DynamicType.Builder<T> | SubclassDynamicTypeBuilder. materialize(ClassFileVersion classFileVersion,
           NamingStrategy namingStrategy,
           TypeDescription targetType,
           List<TypeDescription> interfaceTypes,
           int modifiers,
           TypeAttributeAppender attributeAppender,
           MethodMatcher ignoredMethods,
           BridgeMethodResolver.Factory bridgeMethodResolverFactory,
           ClassVisitorWrapper.Chain classVisitorWrapperChain,
           FieldRegistry fieldRegistry,
           MethodRegistry methodRegistry,
           MethodLookupEngine.Factory methodLookupEngineFactory,
           FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
           MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
           List<DynamicType.Builder.AbstractBase.FieldToken> fieldTokens,
           List<DynamicType.Builder.AbstractBase.MethodToken> methodTokens) | 
| Constructor and Description | 
|---|
| SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
                          NamingStrategy namingStrategy,
                          TypeDescription superType,
                          List<? extends TypeDescription> interfaceTypes,
                          int modifiers,
                          TypeAttributeAppender attributeAppender,
                          MethodMatcher ignoredMethods,
                          BridgeMethodResolver.Factory bridgeMethodResolverFactory,
                          ClassVisitorWrapper.Chain classVisitorWrapperChain,
                          FieldRegistry fieldRegistry,
                          MethodRegistry methodRegistry,
                          MethodLookupEngine.Factory methodLookupEngineFactory,
                          FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                          MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                          ConstructorStrategy constructorStrategy)Creates a new immutable type builder for a subclassing a given class. | 
| SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
                          NamingStrategy namingStrategy,
                          TypeDescription superType,
                          List<TypeDescription> interfaceTypes,
                          int modifiers,
                          TypeAttributeAppender attributeAppender,
                          MethodMatcher ignoredMethods,
                          BridgeMethodResolver.Factory bridgeMethodResolverFactory,
                          ClassVisitorWrapper.Chain classVisitorWrapperChain,
                          FieldRegistry fieldRegistry,
                          MethodRegistry methodRegistry,
                          MethodLookupEngine.Factory methodLookupEngineFactory,
                          FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
                          MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
                          List<DynamicType.Builder.AbstractBase.FieldToken> fieldTokens,
                          List<DynamicType.Builder.AbstractBase.MethodToken> methodTokens,
                          ConstructorStrategy constructorStrategy)Creates a new immutable type builder for a subclassing a given class. | 
| SubclassInstrumentedType(ClassFileVersion classFileVersion,
                        TypeDescription superClass,
                        List<TypeDescription> interfaces,
                        int modifiers,
                        NamingStrategy namingStrategy)Creates a new immutable type instrumentation for a loaded superclass. | 
| SubclassInstrumentedType(ClassFileVersion classFileVersion,
                        TypeDescription superClass,
                        List<TypeDescription> interfaces,
                        int modifiers,
                        String name,
                        List<? extends FieldDescription> fieldDescriptions,
                        List<? extends MethodDescription> methodDescriptions,
                        LoadedTypeInitializer loadedTypeInitializer)Creates a new immutable type instrumentation for a loaded superclass. | 
| Constructor and Description | 
|---|
| Default(TypeDescription instrumentedType,
       ClassFileVersion classFileVersion)Creates a new delegate. | 
| Default(TypeDescription instrumentedType,
       ClassFileVersion classFileVersion,
       String accessorMethodSuffix,
       String fieldCachePrefix,
       Instrumentation.Context.Default.AuxiliaryTypeNamingStrategy auxiliaryTypeNamingStrategy)Creates a new delegate. | 
| Modifier and Type | Method and Description | 
|---|---|
| DynamicType | Pipe.Binder.Redirection. make(String auxiliaryTypeName,
    ClassFileVersion classFileVersion,
    AuxiliaryType.MethodAccessorFactory methodAccessorFactory) | 
| Modifier and Type | Method and Description | 
|---|---|
| DynamicType | TypeProxy. make(String auxiliaryTypeName,
    ClassFileVersion classFileVersion,
    AuxiliaryType.MethodAccessorFactory methodAccessorFactory) | 
| DynamicType | TrivialType. make(String auxiliaryTypeName,
    ClassFileVersion classFileVersion,
    AuxiliaryType.MethodAccessorFactory methodAccessorFactory) | 
| DynamicType | MethodCallProxy. make(String auxiliaryTypeName,
    ClassFileVersion classFileVersion,
    AuxiliaryType.MethodAccessorFactory methodAccessorFactory) | 
| DynamicType | AuxiliaryType. make(String auxiliaryTypeName,
    ClassFileVersion classFileVersion,
    AuxiliaryType.MethodAccessorFactory methodAccessorFactory)Creates a new auxiliary type. | 
Copyright © 2014. All rights reserved.