public abstract class AnnotationModel<T extends java.lang.annotation.Annotation>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
valid |
| Constructor and Description |
|---|
AnnotationModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
check(EnhancedAnnotation<T> annotatedAnnotation) |
AnnotatedType<T> |
getAnnotatedAnnotation()
Gets the annotated annotation
|
protected abstract java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getMetaAnnotationTypes()
Gets the meta-annotation that should be present
|
java.lang.Class<T> |
getRawType()
Gets the type of the annotation
|
protected void |
init(EnhancedAnnotation<T> annotatedAnnotation)
Initializes the type and validates it
|
protected void |
initType(EnhancedAnnotation<T> annotatedAnnotation)
Initializes the type
|
protected void |
initValid(EnhancedAnnotation<T> annotatedAnnotation)
Validates the data for correct annotation
|
boolean |
isValid()
Indicates if the annotation is valid
|
java.lang.String |
toString()
Gets a string representation of the annotation model
|
public AnnotationModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)
type - The annotation typeprotected void init(EnhancedAnnotation<T> annotatedAnnotation)
protected void initType(EnhancedAnnotation<T> annotatedAnnotation)
protected void initValid(EnhancedAnnotation<T> annotatedAnnotation)
protected void check(EnhancedAnnotation<T> annotatedAnnotation)
public java.lang.Class<T> getRawType()
protected abstract java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getMetaAnnotationTypes()
public boolean isValid()
public AnnotatedType<T> getAnnotatedAnnotation()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015. All Rights Reserved.