| 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.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 | Method and Description |
|---|---|
void |
AgentBuilder.Listener.onTransformation(DynamicType dynamicType)
Invoked right before a successful transformation is applied.
|
void |
AgentBuilder.Listener.NoOp.onTransformation(DynamicType dynamicType) |
void |
AgentBuilder.Listener.Compound.onTransformation(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.
|
| Constructor and Description |
|---|
Default(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
TypeWriter.Engine engine)
Creates a new immutable type writer.
|
| Modifier and Type | Method and Description |
|---|---|
List<DynamicType> |
InlineDynamicTypeBuilder.TargetHandler.Prepared.getAuxiliaryTypes()
Returns a list of explicitly registered auxiliary types.
|
List<DynamicType> |
InlineDynamicTypeBuilder.TargetHandler.Prepared.ForRedefinitionInstrumentation.getAuxiliaryTypes() |
List<DynamicType> |
InlineDynamicTypeBuilder.TargetHandler.Prepared.ForRebaseInstrumentation.getAuxiliaryTypes() |
| Constructor and Description |
|---|
ForRebaseInstrumentation(DynamicType placeholderType,
ElementMatcher<? super MethodDescription> ignoredMethods,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new prepared target handler for a rebase instrumentation.
|
| Modifier and Type | Method and Description |
|---|---|
List<DynamicType> |
Instrumentation.Context.ExtractableView.getRegisteredAuxiliaryTypes()
Returns any
AuxiliaryType that was registered
with this Instrumentation.Context. |
List<DynamicType> |
Instrumentation.Context.Default.getRegisteredAuxiliaryTypes() |
| 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 |
Field.Binder.AccessorProxy.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.