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 DeclarationConfigParameterInfo corresponding to this transformed method parameter, never nullParameterConfig addAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
addAnnotation in interface DeclarationConfigannotationType - the annotation type, must not be nullParameterConfig addAnnotation(AnnotationInfo annotation)
AnnotationInfo can be obtained
from an annotation target, or constructed from scratch using AnnotationBuilder.addAnnotation in interface DeclarationConfigannotation - the annotation to add to this method parameter, must not be nullParameterConfig addAnnotation(java.lang.annotation.Annotation annotation)
AnnotationLiteral.addAnnotation in interface DeclarationConfigannotation - the annotation to add to this method parameter, must not be nullParameterConfig removeAnnotation(java.util.function.Predicate<AnnotationInfo> predicate)
removeAnnotation in interface DeclarationConfigpredicate - an annotation predicate, must not be nullParameterConfig removeAllAnnotations()
removeAllAnnotations in interface DeclarationConfig