| Package | Description | 
|---|---|
| net.bytebuddy.description.method | Contains descriptions of Java methods and constructors as well as their parameters. | 
| 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.matcher | Contains an API for matching Java byte code entities. | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodDescription.Token | MethodDescription.Token. accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor) | 
| MethodDescription.Token | MethodDescription.AbstractBase. asToken() | 
| MethodDescription.Token | MethodDescription.AbstractBase. asToken(ElementMatcher<? super GenericTypeDescription> targetTypeMatcher) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | MethodDescription.Token. isIdenticalTo(MethodDescription.Token token) | 
| Constructor and Description | 
|---|
| Latent(TypeDescription declaringType,
      MethodDescription.Token token)Creates a new latent method description. | 
| Constructor and Description | 
|---|
| ForTokens(TypeDescription declaringType,
         List<? extends MethodDescription.Token> tokens)Creates a new list of method descriptions for a list of detached tokens. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected List<MethodDescription.Token> | DynamicType.Builder.AbstractBase. methodTokensThis builder's currently registered method tokens. | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodDescription.Token | MethodTransformer.Simple.Transformer. transform(MethodDescription.Token methodToken)Transforms a method token. | 
| MethodDescription.Token | MethodTransformer.Simple.Transformer.ForModifierTransformation. transform(MethodDescription.Token methodToken) | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodDescription.Token | MethodTransformer.Simple.Transformer. transform(MethodDescription.Token methodToken)Transforms a method token. | 
| MethodDescription.Token | MethodTransformer.Simple.Transformer.ForModifierTransformation. transform(MethodDescription.Token methodToken) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract DynamicType.Builder<S> | DynamicType.Builder.AbstractBase. materialize(ClassFileVersion classFileVersion,
           NamingStrategy namingStrategy,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           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 | 
|---|
| TransformedMethod(GenericTypeDescription declaringType,
                 MethodDescription.Token methodToken,
                 MethodDescription.InDefinedShape definedShape)Creates a new transformed method. | 
| Constructor and Description | 
|---|
| AbstractBase(ClassFileVersion classFileVersion,
            NamingStrategy namingStrategy,
            AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
            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. | 
| DefaultMatchedMethodInterception(LatentMethodMatcher methodMatcher,
                                List<MethodDescription.Token> methodTokens)Creates a new default matched method interception. | 
| DefaultMethodAnnotationTarget(LatentMethodMatcher methodMatcher,
                             List<MethodDescription.Token> methodTokens,
                             MethodRegistry.Handler handler,
                             MethodAttributeAppender.Factory attributeAppenderFactory,
                             MethodTransformer methodTransformer)Creates a new default method annotation target. | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodGraph.Node | MethodGraph. locate(MethodDescription.Token methodToken)Locates a node in this graph which represents the provided method token. | 
| MethodGraph.Node | MethodGraph.Empty. locate(MethodDescription.Token methodToken) | 
| MethodGraph.Node | MethodGraph.Linked.Delegation. locate(MethodDescription.Token methodToken) | 
| MethodGraph.Node | MethodGraph.Compiler.Default.Key.Store.Graph. locate(MethodDescription.Token methodToken) | 
| MethodGraph.Node | MethodGraph.Simple. locate(MethodDescription.Token methodToken) | 
| protected static MethodGraph.Compiler.Default.Key.Detached | MethodGraph.Compiler.Default.Key.Detached. of(MethodDescription.Token methodToken)Creates a new detached key of the given method token. | 
| InstrumentedType | InstrumentedType. withMethod(MethodDescription.Token methodToken)Creates a new instrumented type that includes a new method or constructor. | 
| InstrumentedType | InstrumentedType.Default. withMethod(MethodDescription.Token methodToken) | 
| Constructor and Description | 
|---|
| VisibilityBridge(TypeDescription instrumentedType,
                MethodDescription.Token bridgeTarget)Creates a new visibility bridge method. | 
| Constructor and Description | 
|---|
| Default(String name,
       int modifiers,
       List<? extends GenericTypeDescription> typeVariables,
       GenericTypeDescription superType,
       List<? extends GenericTypeDescription> interfaceTypes,
       List<? extends FieldDescription.Token> fieldTokens,
       List<? extends MethodDescription.Token> methodTokens,
       List<? extends AnnotationDescription> annotationDescriptions,
       InstrumentedType.TypeInitializer typeInitializer,
       LoadedTypeInitializer loadedTypeInitializer)Creates a new instrumented type with default values for any properties that only exist for types that are declared within another type. | 
| Default(String name,
       int modifiers,
       List<? extends GenericTypeDescription> typeVariables,
       GenericTypeDescription superType,
       List<? extends GenericTypeDescription> interfaceTypes,
       List<? extends FieldDescription.Token> fieldTokens,
       List<? extends MethodDescription.Token> methodTokens,
       List<? extends AnnotationDescription> annotationDescriptions,
       InstrumentedType.TypeInitializer typeInitializer,
       LoadedTypeInitializer loadedTypeInitializer,
       TypeDescription declaringType,
       MethodDescription enclosingMethod,
       TypeDescription enclosingType,
       boolean memberClass,
       boolean anonymousClass,
       boolean localClass)Creates a new instrumented type. | 
| Simple(LinkedHashMap<MethodDescription.Token,MethodGraph.Node> nodes)Creates a new simple method graph. | 
| Modifier and Type | Method and Description | 
|---|---|
| Implementation.SpecialMethodInvocation | RebaseImplementationTarget. invokeSuper(MethodDescription.Token methodToken) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected DynamicType.Builder<T> | RedefinitionDynamicTypeBuilder. materialize(ClassFileVersion classFileVersion,
           NamingStrategy namingStrategy,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           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,
           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,
                        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. | 
| RebaseImplementationTarget(TypeDescription instrumentedType,
                          MethodGraph.Linked methodGraph,
                          Map<MethodDescription.Token,MethodRebaseResolver.Resolution> rebasements)Creates a rebase implementation target. | 
| RedefinitionDynamicTypeBuilder(ClassFileVersion classFileVersion,
                              NamingStrategy namingStrategy,
                              AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                              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. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected Map<MethodDescription.Token,MethodDescription> | SubclassImplementationTarget. superConstructorsThe constructor of the super type, mapped by the constructor's method token. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<MethodDescription.Token> | ConstructorStrategy. extractConstructors(TypeDescription instrumentedType)Extracts constructors for a given super type. | 
| Modifier and Type | Method and Description | 
|---|---|
| Implementation.SpecialMethodInvocation | SubclassImplementationTarget. invokeSuper(MethodDescription.Token methodToken) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected DynamicType.Builder<T> | SubclassDynamicTypeBuilder. materialize(ClassFileVersion classFileVersion,
           NamingStrategy namingStrategy,
           AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
           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,
                          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. | 
| Modifier and Type | Method and Description | 
|---|---|
| Implementation.SpecialMethodInvocation | Implementation.Target. invokeDefault(TypeDescription targetType,
             MethodDescription.Token methodToken)Creates a special method invocation for invoking a default method. | 
| Implementation.SpecialMethodInvocation | Implementation.Target.AbstractBase. invokeDefault(TypeDescription targetType,
             MethodDescription.Token methodToken) | 
| Implementation.SpecialMethodInvocation | Implementation.Target. invokeDominant(MethodDescription.Token methodToken)Invokes a dominant method, i.e. | 
| Implementation.SpecialMethodInvocation | Implementation.Target.AbstractBase. invokeDominant(MethodDescription.Token methodToken) | 
| Implementation.SpecialMethodInvocation | Implementation.Target. invokeSuper(MethodDescription.Token methodToken)Creates a special method invocation for invoking the super method of the given method. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T extends MethodDescription> | ElementMatchers. representedBy(MethodDescription.Token methodToken)Validates if a method is represented by the provided method token. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T extends MethodDescription> | ElementMatchers. methodRepresentedBy(ElementMatcher<? super MethodDescription.Token> matcher)Matches a method by a token matcher. | 
| Constructor and Description | 
|---|
| ForToken(MethodDescription.Token methodToken)Creates a new method matcher for a detached token. | 
Copyright © 2014–2015. All rights reserved.