| Modifier and Type | Class and Description |
|---|---|
| public static class | MemberAttributeExtension.
A visitor that adds attributes to a field. |
| public static class | MemberAttributeExtension.
A visitor that adds attributes to a method. |
| Modifier and Type | Field and Description |
|---|---|
| protected final AnnotationValueFilter. | annotationValueFilterFactory
The annotation value filter factory to apply. |
| protected final T | attributeAppenderFactory
The attribute appender factory to use. |
| Access | Constructor and Description |
|---|---|
| protected | MemberAttributeExtension(AnnotationValueFilter.
The annotation value filter factory to apply. annotationValueFilterFactory,The attribute appender factory to use. attributeAppenderFactory)Creates a new member attribute extension. |
| annotationValueFilterFactory | back to summary |
|---|---|
| protected final AnnotationValueFilter. The annotation value filter factory to apply. | |
| attributeAppenderFactory | back to summary |
|---|---|
| protected final T attributeAppenderFactory The attribute appender factory to use. | |
| MemberAttributeExtension | back to summary |
|---|---|
| protected MemberAttributeExtension(AnnotationValueFilter. Creates a new member attribute extension.
| |
| Modifier and Type | Class and Description |
|---|---|
| private static class | MemberAttributeExtension.
A field visitor to apply an field attribute appender. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ForField(AnnotationValueFilter.
The annotation value filter factory to apply. annotationValueFilterFactoryCreates a field attribute extension. |
| protected | ForField(AnnotationValueFilter.
The annotation value filter factory to apply. annotationValueFilterFactory,The field attribute appender factory to use. attributeAppenderFactoryCreates a field attribute extension. |
| Modifier and Type | Method and Description |
|---|---|
| public MemberAttributeExtension. | Returns: A new field attribute extension that appends any previously registered attributes and the supplied annotations.The annotations to append. annotation)Appends the supplied annotations. |
| public MemberAttributeExtension. | Returns: A new field attribute extension that appends any previously registered attributes and the supplied annotations.The annotations to append. annotations)Appends the supplied annotations. |
| public MemberAttributeExtension. | Returns: A new field attribute extension that appends any previously registered attributes and the supplied annotations.The annotations to append. annotation)Appends the supplied annotations. |
| public MemberAttributeExtension. | Returns: A new field attribute extension that appends any previously registered attributes and the supplied annotations.The annotations to append. annotations)Appends the supplied annotations. |
| public MemberAttributeExtension. | Returns: A new field attribute extension that appends any previously registered attributes and the supplied annotations.The attribute appender factory to append. attributeAppenderFactoryAppends the supplied attribute appender factory. |
| public AsmVisitorWrapper | Returns: An appropriate ASM visitor wrapper.The matcher that decides what fields the represented extension is applied to. matcher)Applies this attribute extension on any field that matches the supplied matcher. |
| public FieldVisitor | wrap(TypeDescription
The instrumented type. instrumentedType, FieldDescription.The field that is currently being defined. fieldDescription,The original field visitor that defines the given field. fieldVisitor)Implements org. |
| ForField | back to summary |
|---|---|
| public ForField() Creates a field attribute extension that appends default values of annotations. | |
| ForField | back to summary |
|---|---|
| public ForField(AnnotationValueFilter. Creates a field attribute extension.
| |
| ForField | back to summary |
|---|---|
| protected ForField(AnnotationValueFilter. Creates a field attribute extension.
| |
| annotate | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations.
| |
| annotate | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations.
| |
| annotate | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations.
| |
| annotate | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations.
| |
| attribute | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied attribute appender factory.
| |
| on | back to summary |
|---|---|
| public AsmVisitorWrapper on(ElementMatcher<? super FieldDescription. Applies this attribute extension on any field that matches the supplied matcher.
| |
| wrap | back to summary |
|---|---|
| public FieldVisitor wrap(TypeDescription instrumentedType, FieldDescription. Implements org. Doc from org. Wraps a field visitor.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AnnotationValueFilter | annotationValueFilter
The annotation value filter to apply. |
| private final FieldAttributeAppender | fieldAttributeAppender
The field attribute appender to apply. |
| private final FieldDescription | fieldDescription
The field to add annotations to. |
| Access | Constructor and Description |
|---|---|
| private | FieldAttributeVisitor(FieldVisitor
The field visitor to apply changes to. fieldVisitor, FieldDescription The field to add annotations to. fieldDescription, FieldAttributeAppender The field attribute appender to apply. fieldAttributeAppender, AnnotationValueFilter The annotation value filter to apply. annotationValueFilter)Creates a new field attribute visitor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | visitEnd()
Overrides org. |
| annotationValueFilter | back to summary |
|---|---|
| private final AnnotationValueFilter annotationValueFilter The annotation value filter to apply. | |
| fieldAttributeAppender | back to summary |
|---|---|
| private final FieldAttributeAppender fieldAttributeAppender The field attribute appender to apply. | |
| fieldDescription | back to summary |
|---|---|
| private final FieldDescription fieldDescription The field to add annotations to. | |
| FieldAttributeVisitor | back to summary |
|---|---|
| private FieldAttributeVisitor(FieldVisitor fieldVisitor, FieldDescription fieldDescription, FieldAttributeAppender fieldAttributeAppender, AnnotationValueFilter annotationValueFilter) Creates a new field attribute visitor.
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. Visits the end of the field. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the field have been visited.
| |
| Modifier and Type | Class and Description |
|---|---|
| private static class | MemberAttributeExtension.
A method visitor to apply a method attribute appender. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ForMethod(AnnotationValueFilter.
The annotation value filter factory to apply. annotationValueFilterFactoryCreates a method attribute extension. |
| protected | ForMethod(AnnotationValueFilter.
The annotation value filter factory to apply. annotationValueFilterFactory,The method attribute appender factory to use. attributeAppenderFactoryCreates a method attribute extension. |
| Modifier and Type | Method and Description |
|---|---|
| public MemberAttributeExtension. | Returns: A new method attribute extension that appends any previously registered attributes and the supplied annotations.The annotations to append. annotation)Appends the supplied annotations. |
| public MemberAttributeExtension. | Returns: A new method attribute extension that appends any previously registered attributes and the supplied annotations.The annotations to append. annotations)Appends the supplied annotations. |
| public MemberAttributeExtension. | Returns: A new method attribute extension that appends any previously registered attributes and the supplied annotations.The annotations to append. annotation)Appends the supplied annotations. |
| public MemberAttributeExtension. | Returns: A new method attribute extension that appends any previously registered attributes and the supplied annotations.The annotations to append. annotations)Appends the supplied annotations. |
| public MemberAttributeExtension. | Returns: A new method attribute extension that appends any previously registered attributes and the supplied annotations.The parameter index. index, Annotation... The annotations to append. annotation)Appends the supplied annotations to the parameter at the given index. |
| public MemberAttributeExtension. | Returns: A new method attribute extension that appends any previously registered attributes and the supplied annotations.The parameter index. index, List<? extends Annotation> The annotations to append. annotations)Appends the supplied annotations to the parameter at the given index. |
| public MemberAttributeExtension. | Returns: A new method attribute extension that appends any previously registered attributes and the supplied annotations.The parameter index. index, AnnotationDescription... The annotations to append. annotation)Appends the supplied annotations to the parameter at the given index. |
| public MemberAttributeExtension. | Returns: A new method attribute extension that appends any previously registered attributes and the supplied annotations.The parameter index. index, Collection<? extends AnnotationDescription> The annotations to append. annotations)Appends the supplied annotations to the parameter at the given index. |
| public MemberAttributeExtension. | Returns: A new method attribute extension that appends any previously registered attributes and the supplied annotations.The attribute appender factory to append. attributeAppenderFactoryAppends the supplied method attribute appender factory. |
| public AsmVisitorWrapper | Returns: An appropriate ASM visitor wrapper.The matcher that decides what methods or constructors the represented extension is applied to. matcher)Applies this attribute extension on any method or constructor that matches the supplied matcher. |
| public MethodVisitor | wrap(TypeDescription
The instrumented type. instrumentedType, MethodDescription The method that is currently being defined. instrumentedMethod, MethodVisitor The original field visitor that defines the given method. methodVisitor, Implementation.The implementation context to use. implementationContext,The type pool to use. typePool, int The ASM writerFlags, int org. reader flags to consider.The ASM readerFlags)org. reader flags to consider.Implements org. |
| ForMethod | back to summary |
|---|---|
| public ForMethod() Creates a method attribute extension. | |
| ForMethod | back to summary |
|---|---|
| public ForMethod(AnnotationValueFilter. Creates a method attribute extension.
| |
| ForMethod | back to summary |
|---|---|
| protected ForMethod(AnnotationValueFilter. Creates a method attribute extension.
| |
| annotateMethod | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations.
| |
| annotateMethod | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations.
| |
| annotateMethod | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations.
| |
| annotateMethod | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations.
| |
| annotateParameter | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations to the parameter at the given index.
| |
| annotateParameter | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations to the parameter at the given index.
| |
| annotateParameter | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations to the parameter at the given index.
| |
| annotateParameter | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied annotations to the parameter at the given index.
| |
| attribute | back to summary |
|---|---|
| public MemberAttributeExtension. Appends the supplied method attribute appender factory.
| |
| on | back to summary |
|---|---|
| public AsmVisitorWrapper on(ElementMatcher<? super MethodDescription> matcher) Applies this attribute extension on any method or constructor that matches the supplied matcher.
| |
| wrap | back to summary |
|---|---|
| public MethodVisitor wrap(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodVisitor methodVisitor, Implementation. Implements org. Doc from org. Wraps a method visitor.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AnnotationValueFilter | annotationValueFilter
The annotation value filter to apply. |
| private boolean | applicable
|
| private final MethodAttributeAppender | methodAttributeAppender
The field to add annotations to. |
| private final MethodDescription | methodDescription
The instrumented method. |
| Access | Constructor and Description |
|---|---|
| private | AttributeAppendingMethodVisitor(MethodVisitor
The method visitor to apply changes to. methodVisitor, MethodDescription The method to add annotations to. methodDescription, MethodAttributeAppender The annotation value filter to apply. methodAttributeAppender, AnnotationValueFilter The annotation value filter to apply. annotationValueFilter)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | visitCode()
Overrides org. |
| public void | visitEnd()
Overrides org. |
| annotationValueFilter | back to summary |
|---|---|
| private final AnnotationValueFilter annotationValueFilter The annotation value filter to apply. | |
| applicable | back to summary |
|---|---|
| private boolean applicable
| |
| methodAttributeAppender | back to summary |
|---|---|
| private final MethodAttributeAppender methodAttributeAppender The field to add annotations to. | |
| methodDescription | back to summary |
|---|---|
| private final MethodDescription methodDescription The instrumented method. | |
| AttributeAppendingMethodVisitor | back to summary |
|---|---|
private AttributeAppendingMethodVisitor(MethodVisitor methodVisitor, MethodDescription methodDescription, MethodAttributeAppender methodAttributeAppender, AnnotationValueFilter annotationValueFilter)
| |
| visitCode | back to summary |
|---|---|
| public void visitCode() Overrides org. Doc from org. Starts the visit of the method's code, if any (i.e. non abstract method).
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. Visits the end of the method. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the method have been visited.
| |