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 DeclarationConfig
ClassInfo
corresponding to this transformed class, never null
ClassConfig addAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
addAnnotation
in interface DeclarationConfig
annotationType
- the annotation type, must not be null
ClassConfig 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 class, must not be null
ClassConfig addAnnotation(java.lang.annotation.Annotation annotation)
AnnotationLiteral
.addAnnotation
in interface DeclarationConfig
annotation
- the annotation to add to this class, must not be null
ClassConfig removeAnnotation(java.util.function.Predicate<AnnotationInfo> predicate)
removeAnnotation
in interface DeclarationConfig
predicate
- an annotation predicate, must not be null
ClassConfig removeAllAnnotations()
removeAllAnnotations
in interface DeclarationConfig
java.util.Collection<MethodConfig> constructors()
MethodConfig
objects for each constructor of this class,
as defined by ClassInfo.constructors
.MethodConfig
objects, never null
java.util.Collection<MethodConfig> methods()
MethodConfig
objects for each method of this class,
as defined by ClassInfo.methods
.MethodConfig
objects, never null
java.util.Collection<FieldConfig> fields()
FieldConfig
objects for each field of this class,
as defined by ClassInfo.fields
.FieldConfig
objects, never null