Package org.glassfish.apf
Class AnnotationInfo
- java.lang.Object
-
- org.glassfish.apf.AnnotationInfo
-
public class AnnotationInfo extends Object
Instances encapsulate all information necessary for an AnnotationHandler to process an annotation. In particular, instances of this class provide access to :- the Annotation instance
- the ProcessingContext of the tool
- the AnnotatedElement which is a reference to the annotation element (Type, Method...).
- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description AnnotationInfo(ProcessingContext context, AnnotatedElement element, Annotation annotation, ElementType type)
Creates a new instance of AnnotationInfo with all the information necessary to process an annotation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotatedElement
getAnnotatedElement()
Annotation
getAnnotation()
ElementType
getElementType()
ProcessingContext
getProcessingContext()
String
toString()
-
-
-
Constructor Detail
-
AnnotationInfo
public AnnotationInfo(ProcessingContext context, AnnotatedElement element, Annotation annotation, ElementType type)
Creates a new instance of AnnotationInfo with all the information necessary to process an annotation.- Parameters:
context
- the annotation processor processing contextelement
- the annotated elementannotation
- the annotation
-
-
Method Detail
-
getAnnotatedElement
public AnnotatedElement getAnnotatedElement()
- Returns:
- the annotated element instance
-
getAnnotation
public Annotation getAnnotation()
- Returns:
- the annotation instance
-
getProcessingContext
public ProcessingContext getProcessingContext()
- Returns:
- the processing context
-
getElementType
public ElementType getElementType()
- Returns:
- the annotated element ElementType
-
-