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.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.
|
net.bytebuddy.implementation.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 . |
Modifier and Type | Class and Description |
---|---|
protected static class |
ByteBuddy.EnumerationImplementation.InitializationAppender
A byte code appender for the type initializer of any enumeration type.
|
protected static class |
ByteBuddy.EnumerationImplementation.ValuesMethodAppender
A byte code appender for the
values method of any enumeration type. |
Modifier and Type | Method and Description |
---|---|
ByteCodeAppender |
ByteBuddy.EnumerationImplementation.appender(Implementation.Target implementationTarget) |
Modifier and Type | Class and Description |
---|---|
protected static class |
AgentBuilder.InitializationStrategy.SelfInjection.Nexus.Accessor.InitializationAppender
A byte code appender for invoking a Nexus for initializing the instrumented type.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeAppender |
AgentBuilder.InitializationStrategy.SelfInjection.Nexus.Accessor.identifiedBy(int identification)
Creates a byte code appender for injecting a self-initializing type initializer block into the generated class.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DynamicType.Builder.initialize(ByteCodeAppender byteCodeAppender)
Defines an explicit type initialization block that is appended to any potentially existing
type initializer.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.initialize(ByteCodeAppender byteCodeAppender) |
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.initialize(ByteCodeAppender byteCodeAppender) |
Modifier and Type | Interface and Description |
---|---|
static interface |
InstrumentedType.TypeInitializer
A type initializer is responsible for defining a type's static initialization block.
|
Modifier and Type | Class and Description |
---|---|
static class |
InstrumentedType.TypeInitializer.None
Canonical implementation of a non-defined type initializer.
|
static class |
InstrumentedType.TypeInitializer.Simple
A simple, defined type initializer that executes a given
ByteCodeAppender . |
static class |
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge
A record for a visibility bridge.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeAppender |
TypeWriter.Default.ForInlining.RedefinitionClassVisitor.TypeInitializerInjection.getByteCodeAppender() |
ByteCodeAppender |
InstrumentedType.TypeInitializer.withReturn()
Returns this type initializer with an ending return statement.
|
ByteCodeAppender |
InstrumentedType.TypeInitializer.None.withReturn() |
ByteCodeAppender |
InstrumentedType.TypeInitializer.Simple.withReturn() |
Modifier and Type | Method and Description |
---|---|
InstrumentedType.TypeInitializer |
InstrumentedType.TypeInitializer.expandWith(ByteCodeAppender byteCodeAppender)
Expands this type initializer with another byte code appender.
|
InstrumentedType.TypeInitializer |
InstrumentedType.TypeInitializer.None.expandWith(ByteCodeAppender byteCodeAppender) |
InstrumentedType.TypeInitializer |
InstrumentedType.TypeInitializer.Simple.expandWith(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.prepend(ByteCodeAppender byteCodeAppender)
Prepends the given method appender to this entry.
|
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForNonDefinedMethod.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForDefinedMethod.WithBody.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForDefinedMethod.WithoutBody.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForDefinedMethod.WithAnnotationDefaultValue.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.prepend(ByteCodeAppender byteCodeAppender) |
InstrumentedType |
InstrumentedType.withInitializer(ByteCodeAppender byteCodeAppender)
Creates a new instrumented type that executes the given initializer in the instrumented type's
type initializer.
|
InstrumentedType |
InstrumentedType.Default.withInitializer(ByteCodeAppender byteCodeAppender) |
Constructor and Description |
---|
Compiled(ByteCodeAppender byteCodeAppender)
Creates a new compiled handler for a method implementation.
|
Simple(ByteCodeAppender byteCodeAppender)
Creates a new simple type initializer.
|
WithBody(MethodDescription methodDescription,
ByteCodeAppender byteCodeAppender)
Creates a new record for an implemented method without attributes or a modifier resolver.
|
WithBody(MethodDescription methodDescription,
ByteCodeAppender byteCodeAppender,
MethodAttributeAppender methodAttributeAppender)
Creates a new entry for a method that defines a method as byte code.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultMethodCall.Appender
The appender for implementing a
DefaultMethodCall . |
class |
ExceptionMethod
This implementation causes a
Throwable to be thrown when the instrumented method is invoked. |
protected class |
FieldAccessor.Appender
An byte code appender for an field accessor implementation.
|
protected static class |
FixedValue.ForPoolValue
A fixed value implementation 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 |
Implementation.Context.Default.AbstractDelegationRecord
An abstract method pool entry that delegates the implementation of a method to itself.
|
protected static class |
Implementation.Context.Default.AccessorMethodDelegation
An implementation of a
TypeWriter.MethodPool.Record for implementing
an accessor method. |
protected static class |
Implementation.Context.Default.FieldGetterDelegation
An implementation for a field getter.
|
protected static class |
Implementation.Context.Default.FieldSetterDelegation
An implementation for a field setter.
|
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 class |
InvokeDynamic.Appender
The byte code appender to be used by the
InvokeDynamic implementation. |
protected class |
MethodCall.Appender
The appender being used to implement a
MethodCall . |
protected static class |
MethodDelegation.Appender
The appender for implementing a
MethodDelegation . |
class |
StubMethod
This implementation 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(Implementation.Target implementationTarget) |
ByteCodeAppender |
SuperMethodCall.WithoutReturn.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
StubMethod.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
MethodDelegation.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
MethodCall.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
InvokeDynamic.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
InvokeDynamic.WithImplicitFieldType.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
InvokeDynamic.WithImplicitArgumentType.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
InvocationHandlerAdapter.ForStaticDelegation.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
InvocationHandlerAdapter.ForInstanceDelegation.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
Implementation.appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
ByteCodeAppender |
Implementation.Compound.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
Implementation.Simple.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
Forwarding.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
FixedValue.ForPoolValue.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
FixedValue.ForStaticField.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
FieldAccessor.ForUnnamedField.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
FieldAccessor.ForNamedField.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
ExceptionMethod.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
DefaultMethodCall.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
Implementation.Context.ExtractableView.InjectedCode.getByteCodeAppender()
Returns a byte code appender for appending the injected code.
|
ByteCodeAppender |
Implementation.Context.ExtractableView.InjectedCode.None.getByteCodeAppender() |
Modifier and Type | Method and Description |
---|---|
TypeWriter.MethodPool.Record |
Implementation.Context.Default.AbstractDelegationRecord.prepend(ByteCodeAppender byteCodeAppender) |
Constructor and Description |
---|
Simple(ByteCodeAppender... byteCodeAppender)
Creates a new simple implementation for the given byte code appenders.
|
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(Implementation.Target implementationTarget) |
ByteCodeAppender |
TypeProxy.MethodCall.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
MethodCallProxy.ConstructorCall.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
MethodCallProxy.MethodCall.appender(Implementation.Target implementationTarget) |
Modifier and Type | Class and Description |
---|---|
protected class |
FieldProxy.Binder.AccessType.Getter.Appender
A byte code appender for a getter method.
|
protected class |
FieldProxy.Binder.AccessType.Setter.Appender
A byte code appender for a setter method.
|
protected static class |
FieldProxy.Binder.InstanceFieldConstructor.Appender
An appender for implementing an
FieldProxy.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(Implementation.Target implementationTarget) |
ByteCodeAppender |
Pipe.Binder.Redirection.MethodCall.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
Morph.Binder.RedirectionProxy.StaticFieldConstructor.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
Morph.Binder.RedirectionProxy.InstanceFieldConstructor.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
Morph.Binder.RedirectionProxy.MethodCall.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
FieldProxy.Binder.StaticFieldConstructor.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
FieldProxy.Binder.AccessType.Getter.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
FieldProxy.Binder.AccessType.Setter.appender(Implementation.Target implementationTarget) |
ByteCodeAppender |
FieldProxy.Binder.InstanceFieldConstructor.appender(Implementation.Target implementationTarget) |
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
StackManipulation s. |
Constructor and Description |
---|
Compound(ByteCodeAppender... byteCodeAppender)
Creates a new compound byte code appender.
|
Copyright © 2014–2015. All rights reserved.