1 23 24 package com.sun.enterprise.deployment.annotation; 25 26 import java.lang.reflect.AnnotatedElement ; 27 import java.lang.annotation.Annotation ; 28 import java.lang.annotation.ElementType ; 29 30 47 public class AnnotationInfo { 48 49 final private AnnotatedElement annotatedElement; 51 52 final private Annotation annotation; 54 55 final private ProcessingContext context; 57 58 final private ElementType type; 60 61 69 public AnnotationInfo(ProcessingContext context, AnnotatedElement element, 70 Annotation annotation, ElementType type) { 71 72 this.context = context; 73 this.annotatedElement = element; 74 this.annotation = annotation; 75 this.type = type; 76 } 77 78 81 public AnnotatedElement getAnnotatedElement() { 82 return annotatedElement; 83 } 84 85 88 public Annotation getAnnotation() { 89 90 return annotation; 91 } 92 93 94 97 public ProcessingContext getProcessingContext() { 98 return context; 99 } 100 101 104 public ElementType getElementType() { 105 return type; 106 } 107 } 108 | Popular Tags |