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