net.bytebuddy.jar.asm.ClassVisitor .
| Modifier and Type | Class 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. |
| Modifier and Type | Method 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. |
| apply | back to summary |
|---|---|
| public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | typeAttributeAppenders
The type attribute appenders this compound appender represents in their application order. |
| Access | Constructor 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. |
| Modifier and Type | Method 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 net. |
| typeAttributeAppenders | back to summary |
|---|---|
| private final List<TypeAttributeAppender> typeAttributeAppenders The type attribute appenders this compound appender represents in their application order. | |
| Compound | back to summary |
|---|---|
| public Compound(TypeAttributeAppender... typeAttributeAppender) Creates a new compound attribute appender.
| |
| Compound | back to summary |
|---|---|
| public Compound(List<? extends TypeAttributeAppender> typeAttributeAppenders) Creates a new compound attribute appender.
| |
| apply | back to summary |
|---|---|
| public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Implements net. Doc from net. Applies this type attribute appender.
| |
java.lang.annotation.RetentionPolicy .
| Modifier and Type | Field and Description |
|---|---|
| private final List | annotations
The annotations to write to the given type. |
| Access | Constructor 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. |
| Modifier and Type | Method 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 net. |
| annotations | back to summary |
|---|---|
| private final List<? extends AnnotationDescription> annotations The annotations to write to the given type. | |
| Explicit | back to summary |
|---|---|
| public Explicit(List<? extends AnnotationDescription> annotations) Creates a new annotation attribute appender for explicit annotation values.
| |
| apply | back to summary |
|---|---|
| public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Implements net. Doc from net. Applies this type attribute appender.
| |
java.lang.annotation.RetentionPolicy .
| Modifier and Type | Class 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. |
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeAttributeAppender. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method 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 net. |
| public static TypeAttributeAppender. | |
| public static TypeAttributeAppender. |
| INSTANCE | back to summary |
|---|---|
| public static final TypeAttributeAppender. The singleton instance. | |
| ForInstrumentedType | back to summary |
|---|---|
| private ForInstrumentedType() | |
| apply | back to summary |
|---|---|
| public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Implements net. Doc from net. Applies this type attribute appender.
| |
| valueOf | back to summary |
|---|---|
| public static TypeAttributeAppender. | |
| values | back to summary |
|---|---|
| public static TypeAttributeAppender. | |
| Modifier and Type | Field 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. |
| Access | Constructor 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. |
| Modifier and Type | Method 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 net. |
| annotationIndex | back to summary |
|---|---|
| private final int annotationIndex The index of the first annotations that should be directly written onto the type. | |
| interfaceTypeIndex | back to summary |
|---|---|
| private final int interfaceTypeIndex The index of the first interface type for which type annotations should be directly written onto the type. | |
| typeVariableIndex | back to summary |
|---|---|
| private final int typeVariableIndex The index of the first type variable for which type annotations should be directly written onto the type. | |
| Differentiating | back to summary |
|---|---|
| public Differentiating(TypeDescription typeDescription) Creates a new differentiating type attribute appender.
| |
| Differentiating | back to summary |
|---|---|
| protected Differentiating(int annotationIndex, int typeVariableIndex, int interfaceTypeIndex) Creates a new differentiating type attribute appender.
| |
| apply | back to summary |
|---|---|
| public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Implements net. Doc from net. Applies this type attribute appender.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeAttributeAppender. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method 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 net. |
| public static TypeAttributeAppender. | |
| public static TypeAttributeAppender. |
| INSTANCE | back to summary |
|---|---|
| public static final TypeAttributeAppender. The singleton instance. | |
| NoOp | back to summary |
|---|---|
| private NoOp() | |
| apply | back to summary |
|---|---|
| public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Implements net. Doc from net. Applies this type attribute appender.
| |
| valueOf | back to summary |
|---|---|
| public static TypeAttributeAppender. | |
| values | back to summary |
|---|---|
| public static TypeAttributeAppender. | |