| 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.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.instrumentation |
The instrumentation package contains any logic for intercepting method calls.
|
| net.bytebuddy.instrumentation.method.bytecode.bind |
The types and classes of this package are responsible for binding a method call to calling another method.
|
| 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 |
|---|---|
ByteCodeAppender |
AgentBuilder.Default.InitializationStrategy.SelfInjection.appender(Instrumentation.Target instrumentationTarget) |
| Modifier and Type | Method and Description |
|---|---|
TypeWriter.MethodPool.Entry |
TypeWriter.MethodPool.Entry.Skip.compile(Instrumentation.Target instrumentationTarget) |
TypeWriter.MethodPool.Entry |
TypeWriter.MethodPool.Entry.Factory.compile(Instrumentation.Target instrumentationTarget)
Compiles a
TypeWriter.MethodPool.Entry. |
| Modifier and Type | Class and Description |
|---|---|
class |
RebaseInstrumentationTarget
An instrumentation target for redefining a given type while preserving the original methods within the
instrumented type.
|
| Modifier and Type | Method and Description |
|---|---|
Instrumentation.Target |
RebaseInstrumentationTarget.Factory.make(MethodLookupEngine.Finding finding) |
| Modifier and Type | Method and Description |
|---|---|
TypeWriter.MethodPool.Entry |
InlineDynamicTypeBuilder.TargetHandler.Prepared.ForRebaseInstrumentation.MethodRebaseDelegation.Factory.compile(Instrumentation.Target instrumentationTarget) |
| Constructor and Description |
|---|
MethodRebaseDelegation(Instrumentation.Target instrumentationTarget)
Creates a new method rebase delegation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SubclassInstrumentationTarget
An instrumentation target for creating a subclass of a given type.
|
| Modifier and Type | Method and Description |
|---|---|
Instrumentation.Target |
SubclassInstrumentationTarget.Factory.make(MethodLookupEngine.Finding finding) |
| Modifier and Type | Class and Description |
|---|---|
static class |
Instrumentation.Target.AbstractBase
An abstract base implementation for an
Instrumentation.Target. |
| Modifier and Type | Method and Description |
|---|---|
Instrumentation.Target |
Instrumentation.Target.Factory.make(MethodLookupEngine.Finding finding)
Creates an
Instrumentation.Target for the given instrumented
type's description. |
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender |
SuperMethodCall.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
StubMethod.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
MethodDelegation.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
InvocationHandlerAdapter.ForStaticDelegation.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
InvocationHandlerAdapter.ForInstanceDelegation.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Instrumentation.appender(Instrumentation.Target instrumentationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
ByteCodeAppender |
Instrumentation.ForAbstractMethod.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Instrumentation.Compound.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Instrumentation.Simple.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Forwarding.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
FixedValue.ForPoolValue.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
FixedValue.ForStaticField.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
FieldAccessor.ForUnnamedField.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
FieldAccessor.ForNamedField.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
ExceptionMethod.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
DefaultMethodCall.appender(Instrumentation.Target instrumentationTarget) |
| Constructor and Description |
|---|
Appender(Instrumentation.Target instrumentationTarget,
List<TypeDescription> prioritizedInterfaces)
Creates a new appender for implementing a
DefaultMethodCall. |
Appender(StackManipulation preparingStackAssignment,
Instrumentation.Target instrumentationTarget,
Iterable<? extends MethodDescription> targetMethods,
MethodDelegationBinder.Processor processor)
Creates a new appender.
|
| Modifier and Type | Method and Description |
|---|---|
MethodDelegationBinder.MethodBinding |
MethodDelegationBinder.bind(Instrumentation.Target instrumentationTarget,
MethodDescription source,
MethodDescription target)
Attempts a binding of a source method to a given target method.
|
MethodDelegationBinder.MethodBinding |
MethodDelegationBinder.Processor.process(Instrumentation.Target instrumentationTarget,
MethodDescription source,
Iterable<? extends MethodDescription> targets) |
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender |
Pipe.Binder.Redirection.ConstructorCall.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Pipe.Binder.Redirection.MethodCall.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Morph.Binder.RedirectionProxy.StaticFieldConstructor.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Morph.Binder.RedirectionProxy.InstanceFieldConstructor.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Morph.Binder.RedirectionProxy.MethodCall.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Field.Binder.StaticFieldConstructor.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Field.Binder.AccessType.Getter.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Field.Binder.AccessType.Setter.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
Field.Binder.InstanceFieldConstructor.appender(Instrumentation.Target instrumentationTarget) |
MethodDelegationBinder.ParameterBinding<?> |
AllArguments.Binder.bind(AnnotationDescription.Loadable<AllArguments> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Argument.Binder.bind(AnnotationDescription.Loadable<Argument> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Default.Binder.bind(AnnotationDescription.Loadable<Default> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
DefaultCall.Binder.bind(AnnotationDescription.Loadable<DefaultCall> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Empty.Binder.bind(AnnotationDescription.Loadable<Empty> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Field.Binder.bind(AnnotationDescription.Loadable<Field> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Morph.Binder.bind(AnnotationDescription.Loadable<Morph> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Origin.Binder.bind(AnnotationDescription.Loadable<Origin> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Pipe.Binder.bind(AnnotationDescription.Loadable<Pipe> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Super.Binder.bind(AnnotationDescription.Loadable<Super> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
SuperCall.Binder.bind(AnnotationDescription.Loadable<SuperCall> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
TargetMethodAnnotationDrivenBinder.ParameterBinder.bind(AnnotationDescription.Loadable<T> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
This.Binder.bind(AnnotationDescription.Loadable<This> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.MethodBinding |
TargetMethodAnnotationDrivenBinder.bind(Instrumentation.Target instrumentationTarget,
MethodDescription source,
MethodDescription target) |
Iterator<AnnotationDescription> |
TargetMethodAnnotationDrivenBinder.DefaultsProvider.makeIterator(Instrumentation.Target instrumentationTarget,
MethodDescription source,
MethodDescription target)
Creates an iterator from which a value is pulled each time no processable annotation is found on a
method parameter.
|
Iterator<AnnotationDescription> |
TargetMethodAnnotationDrivenBinder.DefaultsProvider.Empty.makeIterator(Instrumentation.Target instrumentationTarget,
MethodDescription source,
MethodDescription target) |
Iterator<AnnotationDescription> |
Argument.NextUnboundAsDefaultsProvider.makeIterator(Instrumentation.Target instrumentationTarget,
MethodDescription source,
MethodDescription target) |
protected abstract StackManipulation |
Super.Instantiation.proxyFor(TypeDescription parameterType,
Instrumentation.Target instrumentationTarget,
AnnotationDescription.Loadable<Super> annotation)
Creates a stack manipulation which loads a
super-call proxy onto the stack. |
Instrumentation.SpecialMethodInvocation |
Morph.Binder.DefaultMethodLocator.resolve(Instrumentation.Target instrumentationTarget,
MethodDescription source)
Locates the correct default method to a given source method.
|
Instrumentation.SpecialMethodInvocation |
Morph.Binder.DefaultMethodLocator.Implicit.resolve(Instrumentation.Target instrumentationTarget,
MethodDescription source) |
Instrumentation.SpecialMethodInvocation |
Morph.Binder.DefaultMethodLocator.Explicit.resolve(Instrumentation.Target instrumentationTarget,
MethodDescription source) |
Instrumentation.SpecialMethodInvocation |
DefaultCall.Binder.DefaultMethodLocator.resolve(Instrumentation.Target instrumentationTarget,
MethodDescription source)
Locates the correct default method to a given source method.
|
Instrumentation.SpecialMethodInvocation |
DefaultCall.Binder.DefaultMethodLocator.Implicit.resolve(Instrumentation.Target instrumentationTarget,
MethodDescription source) |
Instrumentation.SpecialMethodInvocation |
DefaultCall.Binder.DefaultMethodLocator.Explicit.resolve(Instrumentation.Target instrumentationTarget,
MethodDescription source) |
| Constructor and Description |
|---|
Appender(Instrumentation.Target instrumentationTarget)
Creates a new appender.
|
Appender(Instrumentation.Target instrumentationTarget)
Creates a new appender.
|
Appender(Instrumentation.Target instrumentationTarget)
Creates a new appender for a setter method.
|
Appender(Instrumentation.Target instrumentationTarget)
Creates a new appender for a setter method.
|
Appender(Instrumentation.Target instrumentationTarget)
Creates a new appender.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender |
TypeProxy.SilentConstruction.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
TypeProxy.MethodCall.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
MethodCallProxy.ConstructorCall.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
MethodCallProxy.MethodCall.appender(Instrumentation.Target instrumentationTarget) |
Instrumentation.SpecialMethodInvocation |
TypeProxy.InvocationFactory.invoke(Instrumentation.Target instrumentationTarget,
TypeDescription proxiedType,
MethodDescription instrumentedMethod)
Creates a special method invocation to implement for a given method.
|
| Constructor and Description |
|---|
ForDefaultMethod(TypeDescription proxiedType,
Instrumentation.Target instrumentationTarget,
boolean serializableProxy)
Creates a new proxy creation for a default interface type proxy.
|
ForSuperMethodByConstructor(TypeDescription proxiedType,
Instrumentation.Target instrumentationTarget,
List<TypeDescription> constructorParameters,
boolean ignoreFinalizer,
boolean serializableProxy)
Creates a new stack operation for creating a type proxy by calling one of its constructors.
|
ForSuperMethodByReflectionFactory(TypeDescription proxiedType,
Instrumentation.Target instrumentationTarget,
boolean ignoreFinalizer,
boolean serializableProxy)
Creates a new stack operation for reflectively creating a type proxy for the given arguments.
|
TypeProxy(TypeDescription proxiedType,
Instrumentation.Target instrumentationTarget,
TypeProxy.InvocationFactory invocationFactory,
boolean ignoreFinalizer,
boolean serializableProxy)
Creates a new type proxy.
|
Copyright © 2014. All rights reserved.