Top Description Inners Methods
org.easymock.bytebuddy.implementation.attribute

public Interface FieldAttributeAppender

Known Direct Implementers
org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.NoOp, org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.ForInstrumentedField, org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Explicit, org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Compound
Imports
org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.description.annotation.AnnotationDescription, org.easymock.bytebuddy.description.field.FieldDescription, org.easymock.bytebuddy.description.type.TypeDescription, org.easymock.bytebuddy.jar.asm.FieldVisitor, java.util.ArrayList, .Arrays, .List

An appender that writes attributes or annotations to a given ASM org.easymock.bytebuddy.jar.asm.FieldVisitor.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FieldAttributeAppender.Compound

A field attribute appender that combines several method attribute appenders to be represented as a single field attribute appender.

public static class
FieldAttributeAppender.Explicit

Appends an annotation to a field.

public static interface
FieldAttributeAppender.Factory

A factory that creates field attribute appenders for a given type.

public static enum
FieldAttributeAppender.ForInstrumentedField

An attribute appender that writes all annotations that are declared on a field.

public static enum
FieldAttributeAppender.NoOp

A field attribute appender that does not append any attributes.

Method Summary

Modifier and TypeMethod and Description
public void
apply(FieldVisitor
The field visitor to which the attributes that are represented by this attribute appender are written to.
fieldVisitor
,
FieldDescription
The description of the field to which the field visitor belongs to.
fieldDescription
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

Applies this attribute appender to a given field visitor.

Method Detail

applyback to summary
public void apply(FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter)

Applies this attribute appender to a given field visitor.

Parameters
fieldVisitor:FieldVisitor

The field visitor to which the attributes that are represented by this attribute appender are written to.

fieldDescription:FieldDescription

The description of the field to which the field visitor belongs to.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

org.easymock.bytebuddy.implementation.attribute back to summary

public Class FieldAttributeAppender.Compound

extends Object
implements FieldAttributeAppender
Class Inheritance
  • java.lang.Object
  • org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Compound
All Implemented Interfaces
org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender
Annotations
@Enhance

A field attribute appender that combines several method attribute appenders to be represented as a single field attribute appender.

Field Summary

Modifier and TypeField and Description
private final List<FieldAttributeAppender>
fieldAttributeAppenders

The field attribute appenders this appender represents in their application order.

Constructor Summary

AccessConstructor and Description
public
Compound(FieldAttributeAppender...
The field attribute appenders that are to be combined by this compound appender in the order of their application.
fieldAttributeAppender
)

Creates a new compound field attribute appender.

public
Compound(List<? extends FieldAttributeAppender>
The field attribute appenders that are to be combined by this compound appender in the order of their application.
fieldAttributeAppenders
)

Creates a new compound field attribute appender.

Method Summary

Modifier and TypeMethod and Description
public void
apply(FieldVisitor
The field visitor to which the attributes that are represented by this attribute appender are written to.
fieldVisitor
,
FieldDescription
The description of the field to which the field visitor belongs to.
fieldDescription
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Applies this attribute appender to a given field visitor.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fieldAttributeAppendersback to summary
private final List<FieldAttributeAppender> fieldAttributeAppenders

The field attribute appenders this appender represents in their application order.

Constructor Detail

Compoundback to summary
public Compound(FieldAttributeAppender... fieldAttributeAppender)

Creates a new compound field attribute appender.

Parameters
fieldAttributeAppender:FieldAttributeAppender[]

The field attribute appenders that are to be combined by this compound appender in the order of their application.

Compoundback to summary
public Compound(List<? extends FieldAttributeAppender> fieldAttributeAppenders)

Creates a new compound field attribute appender.

Parameters
fieldAttributeAppenders:List<? extends FieldAttributeAppender>

The field attribute appenders that are to be combined by this compound appender in the order of their application.

Method Detail

applyback to summary
public void apply(FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Doc from org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Applies this attribute appender to a given field visitor.

Parameters
fieldVisitor:FieldVisitor

The field visitor to which the attributes that are represented by this attribute appender are written to.

fieldDescription:FieldDescription

The description of the field to which the field visitor belongs to.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

org.easymock.bytebuddy.implementation.attribute back to summary

public Class FieldAttributeAppender.Explicit

extends Object
implements FieldAttributeAppender, Factory
Class Inheritance
  • java.lang.Object
  • org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Explicit
All Implemented Interfaces
org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory, org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender
Annotations
@Enhance

Appends an annotation to a field. The visibility of the annotation is determined by the annotation type's java.lang.annotation.RetentionPolicy annotation.

Field Summary

Modifier and TypeField and Description
private final List<? extends AnnotationDescription>
annotations

The annotations that this appender appends.

Constructor Summary

AccessConstructor and Description
public
Explicit(List<? extends AnnotationDescription>
The annotations to be appended to the field.
annotations
)

Creates a new annotation attribute appender for explicit annotation values.

Method Summary

Modifier and TypeMethod and Description
public void
apply(FieldVisitor
The field visitor to which the attributes that are represented by this attribute appender are written to.
fieldVisitor
,
FieldDescription
The description of the field to which the field visitor belongs to.
fieldDescription
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Applies this attribute appender to a given field visitor.
public FieldAttributeAppender
make(TypeDescription
The type for which a field attribute appender is to be applied for.
typeDescription
)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Returns a field attribute appender that is applicable for a given type description.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotationsback to summary
private final List<? extends AnnotationDescription> annotations

The annotations that this appender appends.

Constructor Detail

Explicitback to summary
public Explicit(List<? extends AnnotationDescription> annotations)

Creates a new annotation attribute appender for explicit annotation values. All values, including default values, are copied.

Parameters
annotations:List<? extends AnnotationDescription>

The annotations to be appended to the field.

Method Detail

applyback to summary
public void apply(FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Doc from org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Applies this attribute appender to a given field visitor.

Parameters
fieldVisitor:FieldVisitor

The field visitor to which the attributes that are represented by this attribute appender are written to.

fieldDescription:FieldDescription

The description of the field to which the field visitor belongs to.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

makeback to summary
public FieldAttributeAppender make(TypeDescription typeDescription)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Doc from org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Returns a field attribute appender that is applicable for a given type description.

Parameters
typeDescription:TypeDescription

The type for which a field attribute appender is to be applied for.

Returns:FieldAttributeAppender

The field attribute appender which should be applied for the given type.

org.easymock.bytebuddy.implementation.attribute back to summary

public Interface FieldAttributeAppender.Factory

Known Direct Implementers
org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.Compound, org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.ForInstrumentedField, org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Explicit, org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.NoOp

A factory that creates field attribute appenders for a given type.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FieldAttributeAppender.Factory.Compound

A field attribute appender factory that combines several field attribute appender factories to be represented as a single factory.

Method Summary

Modifier and TypeMethod and Description
public FieldAttributeAppender

Returns:

The field attribute appender which should be applied for the given type.
make
(TypeDescription
The type for which a field attribute appender is to be applied for.
typeDescription
)

Returns a field attribute appender that is applicable for a given type description.

Method Detail

makeback to summary
public FieldAttributeAppender make(TypeDescription typeDescription)

Returns a field attribute appender that is applicable for a given type description.

Parameters
typeDescription:TypeDescription

The type for which a field attribute appender is to be applied for.

Returns:FieldAttributeAppender

The field attribute appender which should be applied for the given type.

org.easymock.bytebuddy.implementation.attribute back to summary

public Class FieldAttributeAppender.Factory.Compound

extends Object
implements Factory
Class Inheritance
  • java.lang.Object
  • org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.Compound
All Implemented Interfaces
org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory
Annotations
@Enhance

A field attribute appender factory that combines several field attribute appender factories to be represented as a single factory.

Field Summary

Modifier and TypeField and Description
private final List<FieldAttributeAppender.Factory>
factories

The factories that this compound factory represents in their application order.

Constructor Summary

AccessConstructor and Description
public
Compound(FieldAttributeAppender.Factory...
The factories to represent in the order of their application.
factory
)

Creates a new compound field attribute appender factory.

public
Compound(List<? extends FieldAttributeAppender.Factory>
The factories to represent in the order of their application.
factories
)

Creates a new compound field attribute appender factory.

Method Summary

Modifier and TypeMethod and Description
public FieldAttributeAppender
make(TypeDescription
The type for which a field attribute appender is to be applied for.
typeDescription
)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Returns a field attribute appender that is applicable for a given type description.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factoriesback to summary
private final List<FieldAttributeAppender.Factory> factories

The factories that this compound factory represents in their application order.

Constructor Detail

Compoundback to summary
public Compound(FieldAttributeAppender.Factory... factory)

Creates a new compound field attribute appender factory.

Parameters
factory:FieldAttributeAppender.Factory[]

The factories to represent in the order of their application.

Compoundback to summary
public Compound(List<? extends FieldAttributeAppender.Factory> factories)

Creates a new compound field attribute appender factory.

Parameters
factories:List<? extends FieldAttributeAppender.Factory>

The factories to represent in the order of their application.

Method Detail

makeback to summary
public FieldAttributeAppender make(TypeDescription typeDescription)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Doc from org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Returns a field attribute appender that is applicable for a given type description.

Parameters
typeDescription:TypeDescription

The type for which a field attribute appender is to be applied for.

Returns:FieldAttributeAppender

The field attribute appender which should be applied for the given type.

org.easymock.bytebuddy.implementation.attribute back to summary

public final Enum FieldAttributeAppender.ForInstrumentedField

extends Enum<FieldAttributeAppender.ForInstrumentedField>
implements FieldAttributeAppender, Factory
Class Inheritance
All Implemented Interfaces
org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory, org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender

An attribute appender that writes all annotations that are declared on a field.

Field Summary

Modifier and TypeField and Description
public static final FieldAttributeAppender.ForInstrumentedField
INSTANCE

The singleton instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
apply(FieldVisitor
The field visitor to which the attributes that are represented by this attribute appender are written to.
fieldVisitor
,
FieldDescription
The description of the field to which the field visitor belongs to.
fieldDescription
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Applies this attribute appender to a given field visitor.
public FieldAttributeAppender
make(TypeDescription
The type for which a field attribute appender is to be applied for.
typeDescription
)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Returns a field attribute appender that is applicable for a given type description.
public static FieldAttributeAppender.ForInstrumentedField
public static FieldAttributeAppender.ForInstrumentedField[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final FieldAttributeAppender.ForInstrumentedField INSTANCE

The singleton instance.

Constructor Detail

ForInstrumentedFieldback to summary
private ForInstrumentedField()

Method Detail

applyback to summary
public void apply(FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Doc from org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Applies this attribute appender to a given field visitor.

Parameters
fieldVisitor:FieldVisitor

The field visitor to which the attributes that are represented by this attribute appender are written to.

fieldDescription:FieldDescription

The description of the field to which the field visitor belongs to.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

makeback to summary
public FieldAttributeAppender make(TypeDescription typeDescription)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Doc from org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Returns a field attribute appender that is applicable for a given type description.

Parameters
typeDescription:TypeDescription

The type for which a field attribute appender is to be applied for.

Returns:FieldAttributeAppender

The field attribute appender which should be applied for the given type.

valueOfback to summary
public static FieldAttributeAppender.ForInstrumentedField valueOf(String name)
valuesback to summary
public static FieldAttributeAppender.ForInstrumentedField[] values()
org.easymock.bytebuddy.implementation.attribute back to summary

public final Enum FieldAttributeAppender.NoOp

extends Enum<FieldAttributeAppender.NoOp>
implements FieldAttributeAppender, Factory
Class Inheritance
All Implemented Interfaces
org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory, org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender

A field attribute appender that does not append any attributes.

Field Summary

Modifier and TypeField and Description
public static final FieldAttributeAppender.NoOp
INSTANCE

The singleton instance.

Constructor Summary

AccessConstructor and Description
private
NoOp()

Method Summary

Modifier and TypeMethod and Description
public void
apply(FieldVisitor
The field visitor to which the attributes that are represented by this attribute appender are written to.
fieldVisitor
,
FieldDescription
The description of the field to which the field visitor belongs to.
fieldDescription
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Applies this attribute appender to a given field visitor.
public FieldAttributeAppender
make(TypeDescription
The type for which a field attribute appender is to be applied for.
typeDescription
)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Returns a field attribute appender that is applicable for a given type description.
public static FieldAttributeAppender.NoOp
public static FieldAttributeAppender.NoOp[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final FieldAttributeAppender.NoOp INSTANCE

The singleton instance.

Constructor Detail

NoOpback to summary
private NoOp()

Method Detail

applyback to summary
public void apply(FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Doc from org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.apply.

Applies this attribute appender to a given field visitor.

Parameters
fieldVisitor:FieldVisitor

The field visitor to which the attributes that are represented by this attribute appender are written to.

fieldDescription:FieldDescription

The description of the field to which the field visitor belongs to.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

makeback to summary
public FieldAttributeAppender make(TypeDescription typeDescription)

Implements org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Doc from org.easymock.bytebuddy.implementation.attribute.FieldAttributeAppender.Factory.make.

Returns a field attribute appender that is applicable for a given type description.

Parameters
typeDescription:TypeDescription

The type for which a field attribute appender is to be applied for.

Returns:FieldAttributeAppender

The field attribute appender which should be applied for the given type.

valueOfback to summary
public static FieldAttributeAppender.NoOp valueOf(String name)
valuesback to summary
public static FieldAttributeAppender.NoOp[] values()