Top Description Methods
com.sun.source.tree

public Interface AnnotationTree

extends ExpressionTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCAnnotation
Imports
java.util.List

A tree node for an annotation. For example:
   @annotationType
   @annotationType ( arguments )
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
9.7 Annotations

Method Summary

Modifier and TypeMethod and Description
public Tree

Returns:

the annotation type
getAnnotationType
()

Returns the annotation type.

public List<? extends ExpressionTree>

Returns:

the arguments for the annotation type
getArguments
()

Returns the arguments, if any, for the annotation.

Method Detail

getAnnotationTypeback to summary
public Tree getAnnotationType()

Returns the annotation type.

Returns:Tree

the annotation type

getArgumentsback to summary
public List<? extends ExpressionTree> getArguments()

Returns the arguments, if any, for the annotation.

Returns:List<? extends ExpressionTree>

the arguments for the annotation type