public interface MethodConfig extends DeclarationConfig
Enhancement| Modifier and Type | Method and Description |
|---|---|
MethodConfig |
addAnnotation(java.lang.annotation.Annotation annotation)
Adds given annotation to this method.
|
MethodConfig |
addAnnotation(AnnotationInfo annotation)
Adds given annotation to this method.
|
MethodConfig |
addAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Adds a marker annotation of given type to this method.
|
MethodInfo |
info()
Returns the
MethodInfo corresponding to this transformed method. |
java.util.List<ParameterConfig> |
parameters()
Returns a list of
ParameterConfig objects for each parameter of this method. |
MethodConfig |
removeAllAnnotations()
Removes all annotations from this method.
|
MethodConfig |
removeAnnotation(java.util.function.Predicate<AnnotationInfo> predicate)
Removes all annotations matching given predicate from this method.
|
MethodInfo info()
MethodInfo corresponding to this transformed method.info in interface DeclarationConfigMethodInfo corresponding to this transformed method, never nullMethodConfig addAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
addAnnotation in interface DeclarationConfigannotationType - the annotation type, must not be nullMethodConfig 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, must not be nullMethodConfig addAnnotation(java.lang.annotation.Annotation annotation)
AnnotationLiteral.addAnnotation in interface DeclarationConfigannotation - the annotation to add to this method, must not be nullMethodConfig removeAnnotation(java.util.function.Predicate<AnnotationInfo> predicate)
removeAnnotation in interface DeclarationConfigpredicate - an annotation predicate, must not be nullMethodConfig removeAllAnnotations()
removeAllAnnotations in interface DeclarationConfigjava.util.List<ParameterConfig> parameters()
ParameterConfig objects for each parameter of this method.ParameterConfig objects, never null