- All Superinterfaces:
Tree
A tree node for a type parameter.
For example:
name name extends bounds annotations name
- See Java Language Specification:
-
4.4 Type Variables
- Since:
- 1.6
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<? extends AnnotationTree>
Returns annotations on the type parameter declaration.Returns the bounds of the type parameter.getName()
Returns the name of the type parameter.
-
Method Details
-
getName
Name getName()Returns the name of the type parameter.- Returns:
- the name
-
getBounds
Returns the bounds of the type parameter.- Returns:
- the bounds
-
getAnnotations
List<? extends AnnotationTree> getAnnotations()Returns annotations on the type parameter declaration. Annotations need Target meta-annotations ofElementType.TYPE_PARAMETER
orElementType.TYPE_USE
to appear in this position.- Returns:
- annotations on the type parameter declaration
- Since:
- 1.8
-