com.sun.codemodel
Interface JAnnotationWriter<A extends Annotation>


public interface JAnnotationWriter<A extends Annotation>

Base interface for typed annotation writer.

Annotation compiler can generate a strongly typed annotation writer to assist applications to write uses of annotations. Such typed annotation writer interfaces all derive from this common interface.

The type parameter 'A' represents the

Author:
Kohsuke Kawaguchi

Method Summary
 Class<A> getAnnotationType()
          The type of the annotation that this writer is writing.
 JAnnotationUse getAnnotationUse()
          Gets the underlying annotation use object to which we are writing.
 

Method Detail

getAnnotationUse

JAnnotationUse getAnnotationUse()
Gets the underlying annotation use object to which we are writing.


getAnnotationType

Class<A> getAnnotationType()
The type of the annotation that this writer is writing.



Copyright © 2005-2013 Oracle. All Rights Reserved.