public interface DeclarationConfig
Enhancement
Modifier and Type | Method and Description |
---|---|
DeclarationConfig |
addAnnotation(java.lang.annotation.Annotation annotation)
Adds given annotation to this declaration.
|
DeclarationConfig |
addAnnotation(AnnotationInfo annotation)
Adds given annotation to this declaration.
|
DeclarationConfig |
addAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Adds a marker annotation of given type to this declaration.
|
DeclarationInfo |
info()
Returns the
DeclarationInfo corresponding to this transformed declaration. |
DeclarationConfig |
removeAllAnnotations()
Removes all annotations from this declaration.
|
DeclarationConfig |
removeAnnotation(java.util.function.Predicate<AnnotationInfo> predicate)
Removes all annotations matching given predicate from this declaration.
|
DeclarationInfo info()
DeclarationInfo
corresponding to this transformed declaration.DeclarationInfo
corresponding to this transformed declaration, never null
DeclarationConfig addAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- the annotation type, must not be null
DeclarationConfig addAnnotation(AnnotationInfo annotation)
AnnotationInfo
can be obtained
from an annotation target, or constructed from scratch using AnnotationBuilder
.annotation
- the annotation to add to this declaration, must not be null
DeclarationConfig addAnnotation(java.lang.annotation.Annotation annotation)
AnnotationLiteral
.annotation
- the annotation to add to this declaration, must not be null
DeclarationConfig removeAnnotation(java.util.function.Predicate<AnnotationInfo> predicate)
predicate
- an annotation predicate, must not be null
DeclarationConfig removeAllAnnotations()