Code example for AnnotationMirror

Methods: getAnnotationType

0
  /** . */ 
  final Name type; 
 
  public AnnotationKey(Element element, AnnotationMirror mirror) {
    this.element = ElementHandle.create(element);
    this.type = Name.parse(((TypeElement)mirror.getAnnotationType().asElement()).getQualifiedName().toString());
  } 
 
  public AnnotationKey(Element element, Name type) {
    this.element = ElementHandle.create(element);
    this.type = type;
  } 
 
  public AnnotationKey(ElementHandle<?> element, Name type) {
    this.element = element;
    this.type = type;
  } 
 
  public ElementHandle<?> getElement() { 
    return element;