| Package | Description | 
|---|---|
| net.bytebuddy | 
 Byte Buddy is a library for creating Java classes at runtime of a Java program. 
 | 
| net.bytebuddy.agent.builder | 
 An agent builder is used to easily implement load-time class-transformations using a Java agent. 
 | 
| 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.pool | 
 Classes of this package allow for the creating  
TypeDescriptions without
 loading any classes. | 
| Modifier and Type | Method and Description | 
|---|---|
<T> DynamicType.Builder<T> | 
ByteBuddy.rebase(Class<T> levelType,
      ClassFileLocator classFileLocator)
 Creates a dynamic type by weaving any changes into an already defined level type. 
 | 
<T> DynamicType.Builder<T> | 
ByteBuddy.Proxy.rebase(Class<T> levelType,
      ClassFileLocator classFileLocator)  | 
<T> DynamicType.Builder<T> | 
ByteBuddy.rebase(Class<T> levelType,
      ClassFileLocator classFileLocator,
      MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
 Creates a dynamic type by weaving any changes into an already defined level type. 
 | 
<T> DynamicType.Builder<T> | 
ByteBuddy.Proxy.rebase(Class<T> levelType,
      ClassFileLocator classFileLocator,
      MethodRebaseResolver.MethodNameTransformer methodNameTransformer)  | 
<T> DynamicType.Builder<T> | 
ByteBuddy.rebase(TypeDescription levelType,
      ClassFileLocator classFileLocator)
 Creates a dynamic type by weaving any changes into an already defined level type. 
 | 
<T> DynamicType.Builder<T> | 
ByteBuddy.Proxy.rebase(TypeDescription levelType,
      ClassFileLocator classFileLocator)  | 
<T> DynamicType.Builder<T> | 
ByteBuddy.rebase(TypeDescription levelType,
      ClassFileLocator classFileLocator,
      MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
 Creates a dynamic type by weaving any changes into an already defined level type. 
 | 
<T> DynamicType.Builder<T> | 
ByteBuddy.Proxy.rebase(TypeDescription levelType,
      ClassFileLocator classFileLocator,
      MethodRebaseResolver.MethodNameTransformer methodNameTransformer)  | 
<T> DynamicType.Builder<T> | 
ByteBuddy.redefine(Class<T> levelType,
        ClassFileLocator classFileLocator)
 Creates a dynamic type builder for redefining of the given type. 
 | 
<T> DynamicType.Builder<T> | 
ByteBuddy.Proxy.redefine(Class<T> levelType,
        ClassFileLocator classFileLocator)  | 
<T> DynamicType.Builder<T> | 
ByteBuddy.redefine(TypeDescription levelType,
        ClassFileLocator classFileLocator)
 Creates a dynamic type builder for redefining of the given type. 
 | 
<T> DynamicType.Builder<T> | 
ByteBuddy.Proxy.redefine(TypeDescription levelType,
        ClassFileLocator classFileLocator)  | 
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
AgentBuilder.BinaryLocator.Default.Initialized
The  
AgentBuilder.BinaryLocator.Default in its initialized form. | 
| Modifier and Type | Method and Description | 
|---|---|
ClassFileLocator | 
AgentBuilder.BinaryLocator.Default.Initialized.getClassFileLocator()  | 
ClassFileLocator | 
AgentBuilder.BinaryLocator.Initialized.getClassFileLocator()
Returns the class file locator to be used of an  
AgentBuilder. | 
| Constructor and Description | 
|---|
Initialized(String typeName,
           byte[] binaryRepresentation,
           TypePool.CacheProvider cacheProvider,
           ClassFileLocator classFileLocator)
Creates a new initialized form of a default binary locator. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ClassFileLocator.AgentBased
A Java agent that allows the location of class files by emulating a retransformation. 
 | 
static class  | 
ClassFileLocator.Compound
A compound  
ClassFileLocator that chains several locators. | 
static class  | 
ClassFileLocator.ForClassLoader
A class file locator that queries a class loader for binary representations of class files. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static ClassFileLocator | 
ClassFileLocator.AgentBased.fromInstalledAgent(ClassLoader classLoader)
Returns an agent-based class file locator for the given class loader and an already installed
 Byte Buddy-agent. 
 | 
static ClassFileLocator | 
ClassFileLocator.ForClassLoader.of(ClassLoader classLoader)
Creates a class file locator for a given class loader. 
 | 
static ClassFileLocator | 
ClassFileLocator.ForClassLoader.ofClassPath()
Creates a class file locator that queries the system class loader. 
 | 
| Constructor and Description | 
|---|
Compound(ClassFileLocator... classFileLocator)
Creates a new compound class file locator. 
 | 
| Constructor and Description | 
|---|
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. 
 | 
| Constructor and Description | 
|---|
InlineDynamicTypeBuilder(ClassFileVersion classFileVersion,
                        NamingStrategy namingStrategy,
                        TypeDescription levelType,
                        List<? extends TypeDescription> interfaceTypes,
                        int modifiers,
                        TypeAttributeAppender attributeAppender,
                        ElementMatcher<? super MethodDescription> 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,
                        ElementMatcher<? super MethodDescription> 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. 
 | 
| Constructor and Description | 
|---|
Default(TypePool.CacheProvider cacheProvider,
       ClassFileLocator classFileLocator)
Creates a new default type pool. 
 | 
Copyright © 2014–2015. All rights reserved.