Package | Description |
---|---|
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. fields, types and byte code methods.
|
Modifier and Type | Method and Description |
---|---|
FieldAttributeAppender |
TypeWriter.FieldPool.Record.getFieldAppender()
Returns the field attribute appender for a given field.
|
FieldAttributeAppender |
TypeWriter.FieldPool.Record.ForImplicitField.getFieldAppender() |
FieldAttributeAppender |
TypeWriter.FieldPool.Record.ForExplicitField.getFieldAppender() |
Constructor and Description |
---|
Entry(ElementMatcher<? super FieldDescription> matcher,
FieldAttributeAppender fieldAttributeAppender,
Object defaultValue,
FieldTransformer fieldTransformer)
Creates a new entry.
|
ForExplicitField(FieldAttributeAppender attributeAppender,
Object defaultValue,
FieldDescription fieldDescription)
Creates a record for a rich field.
|
Modifier and Type | Class and Description |
---|---|
static class |
FieldAttributeAppender.Compound
A field attribute appender that combines several method attribute appenders to be represented as a single
field attribute appender.
|
static class |
FieldAttributeAppender.Explicit
Appends an annotation to a field.
|
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.
|
Modifier and Type | Method and Description |
---|---|
FieldAttributeAppender |
FieldAttributeAppender.NoOp.make(TypeDescription typeDescription) |
FieldAttributeAppender |
FieldAttributeAppender.Factory.make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.
|
FieldAttributeAppender |
FieldAttributeAppender.Factory.Compound.make(TypeDescription typeDescription) |
FieldAttributeAppender |
FieldAttributeAppender.ForInstrumentedField.make(TypeDescription typeDescription) |
FieldAttributeAppender |
FieldAttributeAppender.Explicit.make(TypeDescription typeDescription) |
Constructor and Description |
---|
Compound(FieldAttributeAppender... fieldAttributeAppender)
Creates a new compound field attribute appender.
|
Constructor and Description |
---|
Compound(List<? extends FieldAttributeAppender> fieldAttributeAppenders)
Creates a new compound field attribute appender.
|
Copyright © 2014–2016. All rights reserved.