public interface TypeMirror extends AnnotatedConstruct
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(TypeVisitor<R,P> v, P p)
将访问者应用到这种类型。
|
boolean |
equals(Object obj)
遵循
Object.equals 一般合同。
|
TypeKind |
getKind()
返回此类型的
kind 。
|
int |
hashCode()
遵循
Object.hashCode 一般合同。
|
String |
toString()
返回此类型的信息字符串表示形式。
|
getAnnotation, getAnnotationMirrors, getAnnotationsByType
TypeKind getKind()
kind
。
boolean equals(Object obj)
Object.equals
一般合同。此方法不显示是否两种类型表示同一类型的类型。平等型语义比较应该使用
Types.isSameType(TypeMirror, TypeMirror)
。对
t1.equals(t2)
和
Types.isSameType(t1, t2)
结果可能不同。
equals
方法重写,继承类
Object
obj
将这种类型的比较对象
true
指定对象是否等于这一
Object.hashCode()
,
HashMap
int hashCode()
Object.hashCode
一般合同。
hashCode
方法重写,继承类
Object
equals(java.lang.Object)
String toString()
<R,P> R accept(TypeVisitor<R,P> v, P p)
R
-访问者的方法的返回类型
P
到访问者的方法的附加参数的类型
v
-访客对这种类型的操作
p
-客人额外的参数
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.