APIdia Launch Partner
Top Description Methods
javax.lang.model.element

public Interface Parameterizable

extends Element
Known Direct Subinterfaces
javax.lang.model.element.TypeElement, javax.lang.model.element.ExecutableElement
Imports
java.util.List

A mixin interface for an element that has type parameters.
Since
1.7
Java Language Specification
4.5 Parameterized Types, 8.4.4 Generic Methods, 8.8.4 Generic Constructors

Method Summary

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

Returns:

the formal type parameters, or an empty list if there are none
getTypeParameters
()

Returns the formal type parameters of an element in declaration order.

Inherited from javax.lang.model.element.Element:
acceptasTypeequalsgetAnnotationgetAnnotationMirrorsgetAnnotationsByTypegetEnclosedElementsgetEnclosingElementgetKindgetModifiersgetSimpleNamehashCode

Method Detail

getTypeParametersback to summary
public List<? extends TypeParameterElement> getTypeParameters()

Returns the formal type parameters of an element in declaration order.

Returns:List<? extends TypeParameterElement>

the formal type parameters, or an empty list if there are none