com.sun.codemodel
Interface JAnnotatable

All Known Implementing Classes:
JAnnotationArrayMember, JDefinedClass, JEnumConstant, JFieldVar, JMethod, JPackage, JVar

public interface JAnnotatable

Annotatable program elements.

Author:
Kohsuke Kawaguchi


Method Summary
 JAnnotationUseannotate(Class<? extends Annotation> clazz)
          Adds an annotation to this program element.
 JAnnotationUseannotate(JClass clazz)
          Adds an annotation to this program element.
<W extends JAnnotationWriter>
W
annotate2(Class<W> clazz)
          Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations.
 Collection<JAnnotationUse>annotations()
          Read-only live view of all annotations on this JAnnotatable
 

Method Detail

annotate

JAnnotationUse annotate(JClass clazz)
Adds an annotation to this program element.

Parameters:
clazz - The annotation class to annotate the program element with

annotate

JAnnotationUse annotate(Class<? extends Annotation> clazz)
Adds an annotation to this program element.

Parameters:
clazz - The annotation class to annotate the program element with

annotate2

<W extends JAnnotationWriter> W annotate2(Class<W> clazz)
Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations.


annotations

Collection<JAnnotationUse> annotations()
Read-only live view of all annotations on this JAnnotatable

Returns:
Can be empty but never null.


Copyright © 2005-2011
Oracle. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14