APIdia Launch Partner
Top Description Methods
com.sun.source.tree

public Interface AnnotatedTypeTree

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

A tree node for an annotated type. For example:
   @annotationType String
   @annotationType ( arguments ) Date
Author
Mahmood Ali
Since
1.8
See Also
308: Annotations on Java Types"

Method Summary

Modifier and TypeMethod and Description
public List<? extends AnnotationTree>

Returns:

the annotations
getAnnotations
()

Returns the annotations associated with this type expression.

public ExpressionTree

Returns:

the underlying type
getUnderlyingType
()

Returns the underlying type with which the annotations are associated.

Method Detail

getAnnotationsback to summary
public List<? extends AnnotationTree> getAnnotations()

Returns the annotations associated with this type expression.

Returns:List<? extends AnnotationTree>

the annotations

getUnderlyingTypeback to summary
public ExpressionTree getUnderlyingType()

Returns the underlying type with which the annotations are associated.

Returns:ExpressionTree

the underlying type