| 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 | 
 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.methodGraphCompiler
The method graph compiler to use. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ByteBuddy | 
ByteBuddy.with(MethodGraph.Compiler methodGraphCompiler)
Creates a new configuration where the  
MethodGraph.Compiler is used for creating a MethodGraph
 of 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.methodGraphCompiler
The 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.AbstractBase
An abstract base implementation of a method graph compiler. 
 | 
static class  | 
MethodGraph.Compiler.Default<T>
A default implementation of a method graph. 
 | 
static class  | 
MethodGraph.Empty
A canonical implementation of an empty method graph. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static MethodGraph.Compiler | 
MethodGraph.Compiler.DEFAULT
The 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> | 
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)  | 
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)  | 
| Constructor and Description | 
|---|
AbstractInliningDynamicTypeBuilder(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 an inlining dynamic type builder. 
 | 
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 MethodCall.WithoutSpecifiedTarget | 
MethodCall.invoke(ElementMatcher<? super MethodDescription> matcher,
      MethodGraph.Compiler methodGraphCompiler)
Invokes a unique virtual method of the instrumented type that is matched by the specified matcher. 
 | 
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.toField(String name,
       FieldLocator.Factory fieldLocatorFactory,
       MethodGraph.Compiler methodGraphCompiler)
Delegates invocations of any instrumented method to a field's value. 
 | 
static MethodDelegation | 
MethodDelegation.toField(String name,
       MethodGraph.Compiler methodGraphCompiler)
Delegates invocations of any instrumented method to a field's value. 
 | 
| Constructor and Description | 
|---|
ForElementMatcher(ElementMatcher<? super MethodDescription> matcher,
                 MethodGraph.Compiler methodGraphCompiler)
Creates a new method locator for an element matcher. 
 | 
ForField(String fieldName,
        FieldLocator.Factory fieldLocatorFactory,
        MethodGraph.Compiler methodGraphCompiler)
Creates an implementation delegate for delegating to a field's value. 
 | 
ForInstance(Object delegate,
           String fieldName,
           TypeDescription.Generic fieldType,
           MethodGraph.Compiler methodGraphCompiler)
Creates a new implementation delegate for defining a static field to contain a given instance. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
MethodCallProxy.PrecomputedMethodGraph
A precomputed method graph that only displays the methods that are relevant for creating a method call proxy. 
 | 
Copyright © 2014–2016. All rights reserved.