| Package | Description |
|---|---|
| net.bytebuddy.description.field |
Contains descriptions of Java fields.
|
| 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.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.implementation |
The implementation package contains any logic for intercepting method calls.
|
| net.bytebuddy.implementation.attribute |
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e.
|
| 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.constant |
StackManipulations in this package are responsible for
creating compile-time constants and pushing them onto the operand stack. |
| net.bytebuddy.implementation.bytecode.member |
StackManipulations of this package are responsible for
accessing type or method members, i.e. |
| net.bytebuddy.matcher |
Contains an API for matching Java byte code entities.
|
| net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldDescription.AbstractFieldDescription
An abstract base implementation of a field description.
|
static class |
FieldDescription.ForLoadedField
An implementation of a field description for a loaded field.
|
static class |
FieldDescription.Latent
A latent field description describes a field that is not attached to a declaring
TypeDescription. |
| Modifier and Type | Method and Description |
|---|---|
FieldDescription |
FieldList.ForLoadedField.get(int index) |
FieldDescription |
FieldList.Explicit.get(int index) |
| Modifier and Type | Method and Description |
|---|---|
protected FieldList |
FieldList.ForLoadedField.wrap(List<FieldDescription> values) |
protected FieldList |
FieldList.Explicit.wrap(List<FieldDescription> values) |
| Constructor and Description |
|---|
Explicit(List<? extends FieldDescription> fieldDescriptions)
Creates a new immutable wrapper field list.
|
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder.FieldValueTarget<T> |
DynamicType.Builder.defineField(FieldDescription fieldDescription)
Defines a new field for this type.
|
DynamicType.Builder.FieldValueTarget<S> |
DynamicType.Builder.AbstractBase.defineField(FieldDescription fieldDescription) |
DynamicType.Builder.FieldValueTarget<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.defineField(FieldDescription fieldDescription) |
| Modifier and Type | Class and Description |
|---|---|
protected class |
InstrumentedType.AbstractBase.FieldToken
An implementation of a new field for the enclosing instrumented type.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<FieldDescription> |
InstrumentedType.AbstractBase.fieldDescriptions
A list of field descriptions registered for this instrumented type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TypeWriter.FieldPool.Entry.apply(ClassVisitor classVisitor,
FieldDescription fieldDescription)
Writes this entry to a given class visitor.
|
void |
TypeWriter.FieldPool.Entry.NoOp.apply(ClassVisitor classVisitor,
FieldDescription fieldDescription) |
void |
TypeWriter.FieldPool.Entry.Simple.apply(ClassVisitor classVisitor,
FieldDescription fieldDescription) |
TypeWriter.FieldPool.Entry |
TypeWriter.FieldPool.target(FieldDescription fieldDescription)
Returns the field attribute appender that matches a given field description or a default field
attribute appender if no appender was registered for the given field.
|
TypeWriter.FieldPool.Entry |
FieldRegistry.Compiled.NoOp.target(FieldDescription fieldDescription) |
TypeWriter.FieldPool.Entry |
FieldRegistry.Default.Compiled.target(FieldDescription fieldDescription) |
| Constructor and Description |
|---|
AbstractBase(LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
String typeName,
List<? extends FieldDescription> fieldDescriptions,
List<? extends MethodDescription> methodDescriptions)
Creates a new instrumented type with the given loaded type initializer and field and methods.
|
| Constructor and Description |
|---|
InlineInstrumentedType(TypeDescription levelType,
String name,
List<TypeDescription> interfaces,
int modifiers,
List<? extends FieldDescription> fieldDescriptions,
List<? extends MethodDescription> methodDescriptions,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer)
Creates a new inlined instrumented type.
|
| Constructor and Description |
|---|
SubclassInstrumentedType(ClassFileVersion classFileVersion,
TypeDescription superClass,
List<TypeDescription> interfaces,
int modifiers,
String name,
List<? extends FieldDescription> fieldDescriptions,
List<? extends MethodDescription> methodDescriptions,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer)
Creates a new immutable type instrumentation for a loaded superclass.
|
| Modifier and Type | Method and Description |
|---|---|
FieldDescription |
Implementation.Context.cache(StackManipulation fieldValue,
TypeDescription fieldType)
Caches a single value by storing it in form of a
private, final and static field. |
FieldDescription |
Implementation.Context.Default.cache(StackManipulation fieldValue,
TypeDescription fieldType) |
FieldDescription |
FieldAccessor.FieldLocator.locate(String name)
Locates a field of a given name or throws an exception if no field with such a name exists.
|
FieldDescription |
FieldAccessor.FieldLocator.ForInstrumentedTypeHierarchy.locate(String name) |
FieldDescription |
FieldAccessor.FieldLocator.ForGivenType.locate(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected ByteCodeAppender.Size |
FieldAccessor.applyGetter(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
FieldDescription fieldDescription,
MethodDescription methodDescription)
Applies a field getter implementation.
|
protected ByteCodeAppender.Size |
FieldAccessor.applySetter(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
FieldDescription fieldDescription,
MethodDescription methodDescription)
Applies a field setter implementation.
|
MethodDescription |
Implementation.Context.Default.registerGetterFor(FieldDescription fieldDescription) |
MethodDescription |
Implementation.Context.Default.registerSetterFor(FieldDescription fieldDescription) |
StackManipulation |
Implementation.Context.Default.FieldCacheEntry.storeIn(FieldDescription fieldDescription)
Returns a stack manipulation where the represented value is stored in the given field.
|
| Constructor and Description |
|---|
FieldGetter(FieldDescription fieldDescription)
Creates a new field getter implementation.
|
FieldSetter(FieldDescription fieldDescription)
Creates a new field setter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FieldAttributeAppender.apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription)
Applies this attribute appender to a given field visitor.
|
void |
FieldAttributeAppender.NoOp.apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription) |
void |
FieldAttributeAppender.ForAnnotation.apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription) |
void |
FieldAttributeAppender.ForLoadedField.apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription) |
void |
FieldAttributeAppender.Compound.apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription) |
| Modifier and Type | Method and Description |
|---|---|
MethodDescription |
AuxiliaryType.MethodAccessorFactory.registerGetterFor(FieldDescription fieldDescription)
Registers a getter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription |
AuxiliaryType.MethodAccessorFactory.Illegal.registerGetterFor(FieldDescription fieldDescription) |
MethodDescription |
AuxiliaryType.MethodAccessorFactory.registerSetterFor(FieldDescription fieldDescription)
Registers a setter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription |
AuxiliaryType.MethodAccessorFactory.Illegal.registerSetterFor(FieldDescription fieldDescription) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract FieldDescription |
FieldProxy.Binder.FieldLocator.Resolution.getFieldDescription()
Returns a description of the located field.
|
protected FieldDescription |
FieldProxy.Binder.FieldLocator.Resolution.Unresolved.getFieldDescription() |
protected FieldDescription |
FieldProxy.Binder.FieldLocator.Resolution.Resolved.getFieldDescription() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Implementation |
FieldProxy.Binder.AccessType.access(FieldDescription fieldDescription,
Assigner assigner,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
Returns an implementation that implements the sort of accessor implementation that is represented by
this instance.
|
| Constructor and Description |
|---|
AccessorProxy(FieldDescription accessedField,
Assigner assigner,
TypeDescription instrumentedType,
FieldProxy.Binder.AccessType accessType,
boolean serializableProxy) |
Getter(FieldDescription accessedField,
Assigner assigner,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
Creates a new getter implementation.
|
Resolved(FieldDescription fieldDescription)
Creates a new successful resolution.
|
Setter(FieldDescription accessedField,
Assigner assigner,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
Creates a new setter implementation.
|
| Modifier and Type | Method and Description |
|---|---|
static StackManipulation |
MethodHandleConstant.ofGetter(FieldDescription fieldDescription)
Creates a method handle for a field getter.
|
static StackManipulation |
MethodHandleConstant.ofPutter(FieldDescription fieldDescription)
Creates a method handle for a field putter.
|
| Modifier and Type | Method and Description |
|---|---|
FieldDescription |
FieldAccess.Defined.getDefinedField()
Returns the field for which this field access is defined for.
|
FieldDescription |
FieldAccess.AccessDispatcher.getDefinedField() |
| Modifier and Type | Method and Description |
|---|---|
static FieldAccess.Defined |
FieldAccess.forField(FieldDescription fieldDescription)
Creates a field access representation for a given field.
|
| Constructor and Description |
|---|
AccessDispatcher(FieldDescription fieldDescription)
Creates a new access dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends TypeDescription> |
ElementMatchers.declaresField(ElementMatcher<? super FieldDescription> fieldMatcher)
Matches a type by a another matcher that is applied on any of its declared fields.
|
| Modifier and Type | Method and Description |
|---|---|
static JavaInstance.MethodType |
JavaInstance.MethodType.ofGetter(FieldDescription fieldDescription)
Returns a method type for a getter of the given field.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofGetter(FieldDescription fieldDescription)
Returns a method handle for a setter of the given field.
|
protected static JavaInstance.MethodHandle.HandleType |
JavaInstance.MethodHandle.HandleType.ofGetter(FieldDescription fieldDescription)
Extracts a handle type for a getter of the given field.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.ofSetter(FieldDescription fieldDescription)
Returns a method type for a setter of the given field.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofSetter(FieldDescription fieldDescription)
Returns a method handle for a getter of the given field.
|
protected static JavaInstance.MethodHandle.HandleType |
JavaInstance.MethodHandle.HandleType.ofSetter(FieldDescription fieldDescription)
Extracts a handle type for a setter of the given field.
|
Copyright © 2014–2015. All rights reserved.