JavaTM 2 Platform
Standard Ed. 6

javax.lang.model.element
接口 TypeParameterElement

所有超级接口:
Element

public interface TypeParameterElement
extends Element

表示一般类、接口、方法或构造方法元素的形式类型参数。类型参数声明一个 TypeVariable

从以下版本开始:
1.6
另请参见:
TypeVariable

方法摘要
 List<? extends TypeMirror> getBounds()
          返回此类型参数的边界。
 Element getGenericElement()
          返回由此类型参数参数化的一般类、接口、方法或构造方法。
 
从接口 javax.lang.model.element.Element 继承的方法
accept, asType, equals, getAnnotation, getAnnotationMirrors, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, hashCode
 

方法详细信息

getGenericElement

Element getGenericElement()
返回由此类型参数参数化的一般类、接口、方法或构造方法。

返回:
由此类型参数参数化的一般类、接口、方法或构造方法

getBounds

List<? extends TypeMirror> getBounds()
返回此类型参数的边界。它们是用来声明此类型参数的 extends 子句所指定的类型。如果没有使用显式的 extends 子句,则认为 java.lang.Object 是唯一的边界。

返回:
此类型参数的边界;如果没有,则返回一个空列表

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only