public interface TypeParameterElement extends Element
TypeVariable
。
TypeVariable
Modifier and Type | Method and Description |
---|---|
List<? extends TypeMirror> |
getBounds()
返回此类型参数的界限。
|
Element |
getEnclosingElement()
返回此类型参数的
generic element。
|
Element |
getGenericElement()
返回由该类型参数参数化参数的泛型类、接口、方法或构造函数。
|
accept, asType, equals, getAnnotation, getAnnotationMirrors, getEnclosedElements, getKind, getModifiers, getSimpleName, hashCode
getAnnotationsByType
Element getGenericElement()
List<? extends TypeMirror> getBounds()
extends
条款的类型。如果没有使用显式
extends
条款,然后
java.lang.Object
是唯一约束。
Element getEnclosingElement()
getEnclosingElement
接口
Element
Elements.getPackageOf(javax.lang.model.element.Element)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.