| Package | Description |
|---|---|
| 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.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. |
| net.bytebuddy.implementation.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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AgentBuilder.Listener.onTransformation(TypeDescription typeDescription,
DynamicType dynamicType)
Invoked right before a successful transformation is applied.
|
void |
AgentBuilder.Listener.NoOp.onTransformation(TypeDescription typeDescription,
DynamicType dynamicType) |
void |
AgentBuilder.Listener.Compound.onTransformation(TypeDescription typeDescription,
DynamicType dynamicType) |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DynamicType.Loaded<T>
A dynamic type that has been loaded into the running instance of the Java virtual machine.
|
static interface |
DynamicType.Unloaded<T>
A dynamic type that has not yet been loaded by a given
ClassLoader. |
| Modifier and Type | Class and Description |
|---|---|
static class |
DynamicType.Default
A default implementation of a dynamic type.
|
protected static class |
DynamicType.Default.Loaded<T>
A default implementation of a loaded dynamic type.
|
static class |
DynamicType.Default.Unloaded<T>
A default implementation of an unloaded dynamic type.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<? extends DynamicType> |
DynamicType.Default.auxiliaryTypes
A list of auxiliary types for this dynamic type.
|
| Constructor and Description |
|---|
Default(TypeDescription typeDescription,
byte[] binaryRepresentation,
LoadedTypeInitializer loadedTypeInitializer,
List<? extends DynamicType> auxiliaryTypes)
Creates a new dynamic type.
|
Loaded(TypeDescription typeDescription,
byte[] typeByte,
LoadedTypeInitializer loadedTypeInitializer,
List<? extends DynamicType> auxiliaryTypes,
Map<TypeDescription,Class<?>> loadedTypes)
Creates a new representation of a loaded dynamic type.
|
Unloaded(TypeDescription typeDescription,
byte[] typeByte,
LoadedTypeInitializer loadedTypeInitializer,
List<? extends DynamicType> auxiliaryTypes)
Creates a new unloaded representation of a dynamic type.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<DynamicType> |
TypeWriter.Default.explicitAuxiliaryTypes
A list of explicit auxiliary types that are to be added to the created dynamic type.
|
| Constructor and Description |
|---|
Default(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList instrumentedMethods)
Creates a new default type writer.
|
ForCreation(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList instrumentedMethods)
Creates a new type writer for creating a new type.
|
ForInlining(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList instrumentedMethods,
ClassFileLocator classFileLocator,
TypeDescription targetType,
MethodRebaseResolver methodRebaseResolver)
Creates a new type writer for inling a type into an existing type description.
|
| Modifier and Type | Method and Description |
|---|---|
List<DynamicType> |
MethodRebaseResolver.getAuxiliaryTypes()
Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.
|
List<DynamicType> |
MethodRebaseResolver.Disabled.getAuxiliaryTypes() |
List<DynamicType> |
MethodRebaseResolver.MethodsOnly.getAuxiliaryTypes() |
List<DynamicType> |
MethodRebaseResolver.Enabled.getAuxiliaryTypes() |
| Modifier and Type | Method and Description |
|---|---|
protected static MethodRebaseResolver |
MethodRebaseResolver.Enabled.of(MethodList instrumentedMethods,
DynamicType placeholderType,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a fully enabled method rebase resolver.
|
| Constructor and Description |
|---|
Enabled(Set<? extends MethodDescription> instrumentedMethods,
DynamicType placeholderType,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new enabled method rebase resolver.
|
| Modifier and Type | Method and Description |
|---|---|
List<DynamicType> |
Implementation.Context.ExtractableView.getRegisteredAuxiliaryTypes()
Returns any
AuxiliaryType that was registered
with this Implementation.Context. |
List<DynamicType> |
Implementation.Context.Default.getRegisteredAuxiliaryTypes() |
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
DynamicType |
Pipe.Binder.Redirection.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
DynamicType |
Morph.Binder.RedirectionProxy.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
DynamicType |
FieldProxy.Binder.AccessorProxy.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
Copyright © 2014–2015. All rights reserved.