public class DeclaredFieldAnnotationDetails extends Object
| Constructor and Description |
|---|
DeclaredFieldAnnotationDetails(FieldMetadata field,
AnnotationMetadata fieldAnnotation)
Overloaded constructor which is used in the most typical case of ADDING
an annotation to a field, not removing one.
|
DeclaredFieldAnnotationDetails(FieldMetadata field,
AnnotationMetadata fieldAnnotation,
boolean removeAnnotation)
Constructor must contain
FieldMetadata of existing field (may
already contain field annotations) and a list of new Annotations which
should be introduced by an AspectJ ITD. |
| Modifier and Type | Method and Description |
|---|---|
FieldMetadata |
getField() |
AnnotationMetadata |
getFieldAnnotation() |
boolean |
isRemoveAnnotation() |
public DeclaredFieldAnnotationDetails(FieldMetadata field, AnnotationMetadata fieldAnnotation)
field - FieldMetadata of existing field (may not be null)fieldAnnotation - Annotation to be added to field via an ITD (may
not be null)public DeclaredFieldAnnotationDetails(FieldMetadata field, AnnotationMetadata fieldAnnotation, boolean removeAnnotation)
FieldMetadata of existing field (may
already contain field annotations) and a list of new Annotations which
should be introduced by an AspectJ ITD. The added annotations can not
already be present in FieldMetadata.field - FieldMetadata of existing field (may not be null)fieldAnnotation - Annotation to be added to field via an ITD (may
not be null)removeAnnotation - if true, will cause the specified annotation to
be REMOVED via AspectJ's "-" syntax (usually would be false)public FieldMetadata getField()
public AnnotationMetadata getFieldAnnotation()
public final boolean isRemoveAnnotation()
Copyright © 2009–2016. All rights reserved.