FileDocCategorySizeDatePackage
AnnotationInfo.javaAPI DocGlassfish v2 API4071Fri May 04 22:30:20 BST 2007com.sun.enterprise.deployment.annotation

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...).

  • see
    java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement
    author
    Jerome Dochez

    Fields Summary
    private final AnnotatedElement
    annotatedElement
    private final Annotation
    annotation
    private final ProcessingContext
    context
    private final ElementType
    type
    Constructors Summary
    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.

    param
    context the annotation processor processing context
    param
    element the annotated element
    param
    annotation the annotation

            
            this.context = context;
            this.annotatedElement = element;
            this.annotation = annotation;
            this.type = type;
        
    Methods Summary
    public java.lang.reflect.AnnotatedElementgetAnnotatedElement()

    return
    the annotated element instance

            return annotatedElement;
        
    public java.lang.annotation.AnnotationgetAnnotation()

    return
    the annotation instance

    
            return annotation;
        
    public java.lang.annotation.ElementTypegetElementType()

    return
    the annotated element ElementType

            return type;
        
    public ProcessingContextgetProcessingContext()

    return
    the processing context

            return context;