| 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.instrumentation |
The instrumentation package contains any logic for intercepting method calls.
|
| net.bytebuddy.instrumentation.method.bytecode |
Types and classes in this package are responsible for creating Java byte code for a given byte code target
which is represented by a
MethodDescription. |
| 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 | Class and Description |
|---|---|
static class |
AgentBuilder.Default.InitializationStrategy.SelfInjection
An initialization strategy that adds a code block to an instrumented type's type initializer which
then calls a specific class that is responsible for the explicit initialization.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender |
AgentBuilder.Default.InitializationStrategy.SelfInjection.appender(Instrumentation.Target instrumentationTarget) |
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender |
TypeWriter.MethodPool.Entry.getByteCodeAppender()
The byte code appender to be used for the instrumentation by this entry.
|
ByteCodeAppender |
TypeWriter.MethodPool.Entry.Skip.getByteCodeAppender() |
ByteCodeAppender |
TypeWriter.MethodPool.Entry.Simple.getByteCodeAppender() |
| Constructor and Description |
|---|
Entry(ElementMatcher<? super MethodDescription> methodMatcher,
ByteCodeAppender byteCodeAppender,
MethodAttributeAppender attributeAppender)
Creates an entry of a compiled default method registry.
|
Simple(ByteCodeAppender byteCodeAppender,
MethodAttributeAppender methodAttributeAppender)
Creates a new simple entry of a method pool.
|
| Modifier and Type | Class and Description |
|---|---|
protected static class |
InlineDynamicTypeBuilder.TargetHandler.Prepared.ForRebaseInstrumentation.MethodRebaseDelegation
A method pool entry with a rebase implementation as its default behavior.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender |
InlineDynamicTypeBuilder.TargetHandler.Prepared.ForRebaseInstrumentation.MethodRebaseDelegation.getByteCodeAppender() |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultMethodCall.Appender
The appender for implementing a
DefaultMethodCall. |
class |
ExceptionMethod
This instrumentation causes a
Throwable to be thrown when the instrumented method is invoked. |
protected class |
FieldAccessor.Appender
An byte code appender for an field accessor instrumentation.
|
protected static class |
FixedValue.ForPoolValue
A fixed value instrumentation that represents its fixed value as a value that is written to the instrumented
class's constant pool.
|
protected class |
Forwarding.Appender
An appender for implementing a
Forwarding operation. |
protected static class |
Instrumentation.Context.Default.AccessorMethodDelegation
An implementation of a
TypeWriter.MethodPool.Entry for implementing
an accessor method. |
protected static class |
Instrumentation.Context.Default.FieldCacheAppender
A byte code appender that writes the field cache entries to a given
MethodVisitor. |
protected static class |
Instrumentation.Context.Default.FieldGetter
An implementation for a field getter.
|
protected static class |
Instrumentation.Context.Default.FieldSetter
An implementation for a field setter.
|
static class |
Instrumentation.ForAbstractMethod
An instrumentation for an abstract method that does not append any code and will throw an exception if it is
attempted to be composed with other methods that do provide an implementation.
|
protected class |
InvocationHandlerAdapter.ForInstanceDelegation.Appender
An appender for implementing the
InvocationHandlerAdapter.ForInstanceDelegation. |
protected class |
InvocationHandlerAdapter.ForStaticDelegation.Appender
An appender for implementing the
InvocationHandlerAdapter.ForStaticDelegation. |
protected static class |
MethodDelegation.Appender
The appender for implementing a
MethodDelegation. |
class |
StubMethod
This instrumentation creates a method stub which does nothing but returning the default value of the return
type of the method.
|
protected static class |
SuperMethodCall.Appender
An appender for implementing a
SuperMethodCall. |
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender |
SuperMethodCall.appender(Instrumentation.Target instrumentationTarget) |
ByteCodeAppender |
SuperMethodCall.WithoutReturn.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) |
ByteCodeAppender |
Instrumentation.Context.Default.AccessorMethodDelegation.getByteCodeAppender() |
ByteCodeAppender |
Instrumentation.Context.Default.FieldGetter.getByteCodeAppender() |
ByteCodeAppender |
Instrumentation.Context.Default.FieldSetter.getByteCodeAppender() |
| Constructor and Description |
|---|
Simple(ByteCodeAppender... byteCodeAppender)
Creates a new simple instrumentation for the given byte code appenders.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
ByteCodeAppender.Compound
A compound appender that combines a given number of other byte code appenders.
|
static class |
ByteCodeAppender.Simple
A simple byte code appender that only represents a given array of
StackManipulations. |
| Constructor and Description |
|---|
Compound(ByteCodeAppender... byteCodeAppender)
Creates a new compound byte code appender.
|
| Modifier and Type | Class and Description |
|---|---|
protected class |
Field.Binder.AccessType.Getter.Appender
A byte code appender for a getter method.
|
protected class |
Field.Binder.AccessType.Setter.Appender
A byte code appender for a setter method.
|
protected static class |
Field.Binder.InstanceFieldConstructor.Appender
An appender for implementing an
Field.Binder.InstanceFieldConstructor. |
protected static class |
Morph.Binder.RedirectionProxy.InstanceFieldConstructor.Appender
The byte code appender that implements the constructor.
|
protected class |
Morph.Binder.RedirectionProxy.MethodCall.Appender
The byte code appender to implement the method.
|
| 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) |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MethodCallProxy.ConstructorCall.Appender
The appender for implementing the
MethodCallProxy.ConstructorCall. |
protected class |
MethodCallProxy.MethodCall.Appender
The appender for implementing the
MethodCallProxy.MethodCall. |
protected class |
TypeProxy.MethodCall.Appender
Implementation of a byte code appender for a
TypeProxy.MethodCall. |
protected static class |
TypeProxy.SilentConstruction.Appender
The appender for implementing a
TypeProxy.SilentConstruction. |
| 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) |
Copyright © 2014. All rights reserved.