public interface ClassConfig extends DeclarationConfig
Enhancement| Modifier and Type | Method and Description |
|---|---|
ClassConfig |
addAnnotation(java.lang.annotation.Annotation annotation)
Adds given annotation to this class.
|
ClassConfig |
addAnnotation(AnnotationInfo annotation)
Adds given annotation to this class.
|
ClassConfig |
addAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Adds a marker annotation of given type to this class.
|
java.util.Collection<MethodConfig> |
constructors()
Returns a collection of
MethodConfig objects for each constructor of this class,
as defined by ClassInfo.constructors. |
java.util.Collection<FieldConfig> |
fields()
Returns a collection of
FieldConfig objects for each field of this class,
as defined by ClassInfo.fields. |
ClassInfo |
info()
Returns the
ClassInfo corresponding to this transformed class. |
java.util.Collection<MethodConfig> |
methods()
Returns a collection of
MethodConfig objects for each method of this class,
as defined by ClassInfo.methods. |
ClassConfig |
removeAllAnnotations()
Removes all annotations from this class.
|
ClassConfig |
removeAnnotation(java.util.function.Predicate<AnnotationInfo> predicate)
Removes all annotations matching given predicate from this class.
|
ClassInfo info()
ClassInfo corresponding to this transformed class.info in interface DeclarationConfigClassInfo corresponding to this transformed class, never nullClassConfig addAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
addAnnotation in interface DeclarationConfigannotationType - the annotation type, must not be nullClassConfig 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 class, must not be nullClassConfig addAnnotation(java.lang.annotation.Annotation annotation)
AnnotationLiteral.addAnnotation in interface DeclarationConfigannotation - the annotation to add to this class, must not be nullClassConfig removeAnnotation(java.util.function.Predicate<AnnotationInfo> predicate)
removeAnnotation in interface DeclarationConfigpredicate - an annotation predicate, must not be nullClassConfig removeAllAnnotations()
removeAllAnnotations in interface DeclarationConfigjava.util.Collection<MethodConfig> constructors()
MethodConfig objects for each constructor of this class,
as defined by ClassInfo.constructors.MethodConfig objects, never nulljava.util.Collection<MethodConfig> methods()
MethodConfig objects for each method of this class,
as defined by ClassInfo.methods.MethodConfig objects, never nulljava.util.Collection<FieldConfig> fields()
FieldConfig objects for each field of this class,
as defined by ClassInfo.fields.FieldConfig objects, never null