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

public Interface TypeAttributeAppender

Known Direct Implementers
org.easymock.bytebuddy.implementation.attribute.TypeAttributeAppender.NoOp, org.easymock.bytebuddy.implementation.attribute.TypeAttributeAppender.ForInstrumentedType, org.easymock.bytebuddy.implementation.attribute.TypeAttributeAppender.ForInstrumentedType.Differentiating, org.easymock.bytebuddy.implementation.attribute.TypeAttributeAppender.Explicit, org.easymock.bytebuddy.implementation.attribute.TypeAttributeAppender.Compound, org.easymock.bytebuddy.build.RepeatedAnnotationPlugin.RepeatedAnnotationAppender
Imports
org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.description.annotation.AnnotationDescription, .AnnotationList, org.easymock.bytebuddy.description.type.TypeDescription, .TypeList, org.easymock.bytebuddy.jar.asm.ClassVisitor, java.util.ArrayList, .Arrays, .List

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
TypeAttributeAppender.Compound

A compound type attribute appender that concatenates a number of other attribute appenders.

public static class
TypeAttributeAppender.Explicit

An attribute appender that appends a single annotation to a given type.

public static enum
TypeAttributeAppender.ForInstrumentedType

An attribute appender that writes all annotations that are found on a given target type to the instrumented type this type attribute appender is applied onto.

public static enum
TypeAttributeAppender.NoOp

A type attribute appender that does not append any attributes.

Method Summary

Modifier and TypeMethod and Description
public void
apply(ClassVisitor
The class visitor to which the annotations of this visitor should be written to.
classVisitor
,
TypeDescription
A description of the instrumented type that is target of the ongoing instrumentation.
instrumentedType
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

Applies this type attribute appender.

Method Detail

applyback to summary
public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter)

Applies this type attribute appender.

Parameters
classVisitor:ClassVisitor

The class visitor to which the annotations of this visitor should be written to.

instrumentedType:TypeDescription

A description of the instrumented type that is target of the ongoing instrumentation.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

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

public Class TypeAttributeAppender.Compound

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

A compound type attribute appender that concatenates a number of other attribute appenders.

Field Summary

Modifier and TypeField and Description
private final List<TypeAttributeAppender>
typeAttributeAppenders

The type attribute appenders this compound appender represents in their application order.

Constructor Summary

AccessConstructor and Description
public
Compound(TypeAttributeAppender...
The type attribute appenders to concatenate in the order of their application.
typeAttributeAppender
)

Creates a new compound attribute appender.

public
Compound(List<? extends TypeAttributeAppender>
The type attribute appenders to concatenate in the order of their application.
typeAttributeAppenders
)

Creates a new compound attribute appender.

Method Summary

Modifier and TypeMethod and Description
public void
apply(ClassVisitor
The class visitor to which the annotations of this visitor should be written to.
classVisitor
,
TypeDescription
A description of the instrumented type that is target of the ongoing instrumentation.
instrumentedType
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

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

Applies this type attribute appender.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

typeAttributeAppendersback to summary
private final List<TypeAttributeAppender> typeAttributeAppenders

The type attribute appenders this compound appender represents in their application order.

Constructor Detail

Compoundback to summary
public Compound(TypeAttributeAppender... typeAttributeAppender)

Creates a new compound attribute appender.

Parameters
typeAttributeAppender:TypeAttributeAppender[]

The type attribute appenders to concatenate in the order of their application.

Compoundback to summary
public Compound(List<? extends TypeAttributeAppender> typeAttributeAppenders)

Creates a new compound attribute appender.

Parameters
typeAttributeAppenders:List<? extends TypeAttributeAppender>

The type attribute appenders to concatenate in the order of their application.

Method Detail

applyback to summary
public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter)

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

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

Applies this type attribute appender.

Parameters
classVisitor:ClassVisitor

The class visitor to which the annotations of this visitor should be written to.

instrumentedType:TypeDescription

A description of the instrumented type that is target of the ongoing instrumentation.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

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

public Class TypeAttributeAppender.Explicit

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

An attribute appender that appends a single annotation to a given type. The visibility for the annotation will be inferred from the annotation's java.lang.annotation.RetentionPolicy.

Field Summary

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

The annotations to write to the given type.

Constructor Summary

AccessConstructor and Description
public
Explicit(List<? extends AnnotationDescription>
The annotations to write to the given type.
annotations
)

Creates a new annotation attribute appender for explicit annotation values.

Method Summary

Modifier and TypeMethod and Description
public void
apply(ClassVisitor
The class visitor to which the annotations of this visitor should be written to.
classVisitor
,
TypeDescription
A description of the instrumented type that is target of the ongoing instrumentation.
instrumentedType
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

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

Applies this type attribute appender.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

The annotations to write to the given type.

Constructor Detail

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

Creates a new annotation attribute appender for explicit annotation values.

Parameters
annotations:List<? extends AnnotationDescription>

The annotations to write to the given type.

Method Detail

applyback to summary
public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter)

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

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

Applies this type attribute appender.

Parameters
classVisitor:ClassVisitor

The class visitor to which the annotations of this visitor should be written to.

instrumentedType:TypeDescription

A description of the instrumented type that is target of the ongoing instrumentation.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

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

public final Enum TypeAttributeAppender.ForInstrumentedType

extends Enum<TypeAttributeAppender.ForInstrumentedType>
implements TypeAttributeAppender
Class Inheritance
All Implemented Interfaces
org.easymock.bytebuddy.implementation.attribute.TypeAttributeAppender

An attribute appender that writes all annotations that are found on a given target type to the instrumented type this type attribute appender is applied onto. The visibility for the annotation will be inferred from the annotations' java.lang.annotation.RetentionPolicy.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
TypeAttributeAppender.ForInstrumentedType.Differentiating

A type attribute appender that writes all annotations of the instrumented but excludes annotations up to a given index.

Field Summary

Modifier and TypeField and Description
public static final TypeAttributeAppender.ForInstrumentedType
INSTANCE

The singleton instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
apply(ClassVisitor
The class visitor to which the annotations of this visitor should be written to.
classVisitor
,
TypeDescription
A description of the instrumented type that is target of the ongoing instrumentation.
instrumentedType
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

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

Applies this type attribute appender.
public static TypeAttributeAppender.ForInstrumentedType
public static TypeAttributeAppender.ForInstrumentedType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final TypeAttributeAppender.ForInstrumentedType INSTANCE

The singleton instance.

Constructor Detail

ForInstrumentedTypeback to summary
private ForInstrumentedType()

Method Detail

applyback to summary
public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter)

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

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

Applies this type attribute appender.

Parameters
classVisitor:ClassVisitor

The class visitor to which the annotations of this visitor should be written to.

instrumentedType:TypeDescription

A description of the instrumented type that is target of the ongoing instrumentation.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

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

public Class TypeAttributeAppender.ForInstrumentedType.Differentiating

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

A type attribute appender that writes all annotations of the instrumented but excludes annotations up to a given index.

Field Summary

Modifier and TypeField and Description
private final int
annotationIndex

The index of the first annotations that should be directly written onto the type.

private final int
interfaceTypeIndex

The index of the first interface type for which type annotations should be directly written onto the type.

private final int
typeVariableIndex

The index of the first type variable for which type annotations should be directly written onto the type.

Constructor Summary

AccessConstructor and Description
public
Differentiating(TypeDescription
The type for which to resolve all exclusion indices.
typeDescription
)

Creates a new differentiating type attribute appender.

protected
Differentiating(int
The index of the first annotations that should be directly written onto the type.
annotationIndex
,
int
The index of the first interface type for which type annotations should be directly written onto the type.
typeVariableIndex
,
int
The index of the first interface type for which type annotations should be directly written onto the type.
interfaceTypeIndex
)

Creates a new differentiating type attribute appender.

Method Summary

Modifier and TypeMethod and Description
public void
apply(ClassVisitor
The class visitor to which the annotations of this visitor should be written to.
classVisitor
,
TypeDescription
A description of the instrumented type that is target of the ongoing instrumentation.
instrumentedType
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

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

Applies this type attribute appender.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotationIndexback to summary
private final int annotationIndex

The index of the first annotations that should be directly written onto the type.

interfaceTypeIndexback to summary
private final int interfaceTypeIndex

The index of the first interface type for which type annotations should be directly written onto the type.

typeVariableIndexback to summary
private final int typeVariableIndex

The index of the first type variable for which type annotations should be directly written onto the type.

Constructor Detail

Differentiatingback to summary
public Differentiating(TypeDescription typeDescription)

Creates a new differentiating type attribute appender.

Parameters
typeDescription:TypeDescription

The type for which to resolve all exclusion indices.

Differentiatingback to summary
protected Differentiating(int annotationIndex, int typeVariableIndex, int interfaceTypeIndex)

Creates a new differentiating type attribute appender.

Parameters
annotationIndex:int

The index of the first annotations that should be directly written onto the type.

typeVariableIndex:int

The index of the first interface type for which type annotations should be directly written onto the type.

interfaceTypeIndex:int

The index of the first interface type for which type annotations should be directly written onto the type.

Method Detail

applyback to summary
public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter)

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

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

Applies this type attribute appender.

Parameters
classVisitor:ClassVisitor

The class visitor to which the annotations of this visitor should be written to.

instrumentedType:TypeDescription

A description of the instrumented type that is target of the ongoing instrumentation.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

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

public final Enum TypeAttributeAppender.NoOp

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

A type attribute appender that does not append any attributes.

Field Summary

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

The singleton instance.

Constructor Summary

AccessConstructor and Description
private
NoOp()

Method Summary

Modifier and TypeMethod and Description
public void
apply(ClassVisitor
The class visitor to which the annotations of this visitor should be written to.
classVisitor
,
TypeDescription
A description of the instrumented type that is target of the ongoing instrumentation.
instrumentedType
,
AnnotationValueFilter
The annotation value filter to apply when writing annotations.
annotationValueFilter
)

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

Applies this type attribute appender.
public static TypeAttributeAppender.NoOp
public static TypeAttributeAppender.NoOp[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final TypeAttributeAppender.NoOp INSTANCE

The singleton instance.

Constructor Detail

NoOpback to summary
private NoOp()

Method Detail

applyback to summary
public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter)

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

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

Applies this type attribute appender.

Parameters
classVisitor:ClassVisitor

The class visitor to which the annotations of this visitor should be written to.

instrumentedType:TypeDescription

A description of the instrumented type that is target of the ongoing instrumentation.

annotationValueFilter:AnnotationValueFilter

The annotation value filter to apply when writing annotations.

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