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.