Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
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.attribute |
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e.
|
Modifier and Type | Method and Description |
---|---|
MemberAttributeExtension.ForField |
MemberAttributeExtension.ForField.attribute(FieldAttributeAppender.Factory attributeAppenderFactory)
Appends the supplied attribute appender factory.
|
Constructor and Description |
---|
ForField(AnnotationValueFilter.Factory annotationValueFilterFactory,
FieldAttributeAppender.Factory attributeAppenderFactory)
Creates a field attribute extension.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.FieldDefinition.Optional<S> |
DynamicType.Builder.FieldDefinition.attribute(FieldAttributeAppender.Factory fieldAttributeAppenderFactory)
Applies the supplied attribute appender factory onto the previously defined or matched field.
|
protected DynamicType.Builder.FieldDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Adapter.FieldDefinitionAdapter.materialize(FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Transformer<FieldDescription> transformer,
Object defaultValue) |
protected DynamicType.Builder.FieldDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Adapter.FieldMatchAdapter.materialize(FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Transformer<FieldDescription> transformer,
Object defaultValue) |
Constructor and Description |
---|
FieldDefinitionAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Transformer<FieldDescription> transformer,
Object defaultValue,
FieldDescription.Token token)
Creates a new field definition adapter.
|
FieldMatchAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Transformer<FieldDescription> transformer,
Object defaultValue,
LatentMatcher<? super FieldDescription> matcher)
Creates a new field match adapter.
|
Modifier and Type | Method and Description |
---|---|
protected FieldAttributeAppender.Factory |
FieldRegistry.Default.Entry.getFieldAttributeAppenderFactory()
Returns the field attribute appender factory to apply on any matched field.
|
Modifier and Type | Method and Description |
---|---|
FieldRegistry |
FieldRegistry.prepend(LatentMatcher<? super FieldDescription> matcher,
FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Object defaultValue,
Transformer<FieldDescription> transformer)
Prepends the given field definition to this field registry, i.e.
|
FieldRegistry |
FieldRegistry.Default.prepend(LatentMatcher<? super FieldDescription> matcher,
FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Object defaultValue,
Transformer<FieldDescription> transformer)
Prepends the given field definition to this field registry, i.e.
|
Constructor and Description |
---|
Entry(LatentMatcher<? super FieldDescription> matcher,
FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Object defaultValue,
Transformer<FieldDescription> transformer)
Creates a new entry.
|
Modifier and Type | Class and Description |
---|---|
static class |
FieldAttributeAppender.Explicit
Appends an annotation to a field.
|
static class |
FieldAttributeAppender.Factory.Compound
A field attribute appender factory that combines several field attribute appender factories to be
represented as a single factory.
|
static class |
FieldAttributeAppender.ForInstrumentedField
An attribute appender that writes all annotations that are declared on a field.
|
static class |
FieldAttributeAppender.NoOp
A field attribute appender that does not append any attributes.
|
Constructor and Description |
---|
Compound(FieldAttributeAppender.Factory... factory)
Creates a new compound field attribute appender factory.
|
Constructor and Description |
---|
Compound(List<? extends FieldAttributeAppender.Factory> factories)
Creates a new compound field attribute appender factory.
|
Copyright © 2014–2023. All rights reserved.