- 
- All Superinterfaces:
- AnnotatedConstruct,- Element
 
 public interface TypeParameterElement extends Element Represents a formal type parameter of a generic class, interface, method, or constructor element. A type parameter declares aTypeVariable.- Since:
- 1.6
- See Also:
- TypeVariable
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description List<? extends TypeMirror>getBounds()Returns the bounds of this type parameter.ElementgetEnclosingElement()Returns the generic element of this type parameter.ElementgetGenericElement()Returns the generic class, interface, method, or constructor that is parameterized by this type parameter.- 
Methods declared in interface javax.lang.model.AnnotatedConstructgetAnnotationsByType
 - 
Methods declared in interface javax.lang.model.element.Elementaccept, asType, equals, getAnnotation, getAnnotationMirrors, getEnclosedElements, getKind, getModifiers, getSimpleName, hashCode
 
- 
 
- 
- 
- 
Method Detail- 
getGenericElementElement getGenericElement() Returns the generic class, interface, method, or constructor that is parameterized by this type parameter.- Returns:
- the generic class, interface, method, or constructor that is parameterized by this type parameter
 
 - 
getBoundsList<? extends TypeMirror> getBounds() Returns the bounds of this type parameter. These are the types given by theextendsclause used to declare this type parameter. If no explicitextendsclause was used, thenjava.lang.Objectis considered to be the sole bound.- Returns:
- the bounds of this type parameter, or an empty list if there are none
 
 - 
getEnclosingElementElement getEnclosingElement() Returns the generic element of this type parameter.- Specified by:
- getEnclosingElementin interface- Element
- Returns:
- the generic element of this type parameter
- See Also:
- Elements.getPackageOf(javax.lang.model.element.Element)
 
 
- 
 
-