org.glassfish.apf
Class AnnotationInfo
java.lang.Object
org.glassfish.apf.AnnotationInfo
public class AnnotationInfo
- extends java.lang.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
- See Also:
java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement
|
Constructor Summary |
AnnotationInfo(ProcessingContext context,
java.lang.reflect.AnnotatedElement element,
java.lang.annotation.Annotation annotation,
java.lang.annotation.ElementType type)
Creates a new instance of AnnotationInfo with all the information
necessary to process an annotation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationInfo
public AnnotationInfo(ProcessingContext context,
java.lang.reflect.AnnotatedElement element,
java.lang.annotation.Annotation annotation,
java.lang.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
getAnnotatedElement
public java.lang.reflect.AnnotatedElement getAnnotatedElement()
- Returns:
- the annotated element instance
getAnnotation
public java.lang.annotation.Annotation getAnnotation()
- Returns:
- the annotation instance
getProcessingContext
public ProcessingContext getProcessingContext()
- Returns:
- the processing context
getElementType
public java.lang.annotation.ElementType getElementType()
- Returns:
- the annotated element ElementType
Copyright © 2012 GlassFish Community. All Rights Reserved.