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

public Interface TypeParameterTree

extends Tree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCTypeParameter
Imports
java.util.List, javax.lang.model.element.Name

A tree node for a type parameter. For example:
  name

  name extends bounds

  annotations name
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
4.4 Type Variables

Method Summary

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

Returns:

annotations on the type parameter declaration
getAnnotations
()

Returns annotations on the type parameter declaration.

public List<? extends Tree>

Returns:

the bounds
getBounds
()

Returns the bounds of the type parameter.

public Name

Returns:

the name
getName
()

Returns the name of the type parameter.

Inherited from com.sun.source.tree.Tree:
acceptgetKind

Method Detail

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

Returns annotations on the type parameter declaration. Annotations need Target meta-annotations of java.lang.annotation.ElementType#TYPE_PARAMETER or java.lang.annotation.ElementType#TYPE_USE to appear in this position.

Returns:List<? extends AnnotationTree>

annotations on the type parameter declaration

Since
1.8
getBoundsback to summary
public List<? extends Tree> getBounds()

Returns the bounds of the type parameter.

Returns:List<? extends Tree>

the bounds

getNameback to summary
public Name getName()

Returns the name of the type parameter.

Returns:Name

the name