类 AbstractTypeReference
java.lang.Object
cn.taketoday.aot.hint.AbstractTypeReference
- 所有已实现的接口:
TypeReference,Comparable<TypeReference>
Base
TypeReference implementation that ensures consistent behaviour
for equals(), hashCode(), and toString() based on
the canonical name.- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll, Harry Yang
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protectedAbstractTypeReference(String packageName, String simpleName, TypeReference enclosingType) -
方法概要
修饰符和类型方法说明protected StringaddPackageIfNecessary(String part) intcompareTo(TypeReference other) booleanReturn the enclosing type reference, ornullif this type reference does not have an enclosing type.getName()Return the fully qualified name of this type reference.Return the package name of this type.Return the simple name of this type reference.inthashCode()protected abstract booleantoString()从接口继承的方法 cn.taketoday.aot.hint.TypeReference
getCanonicalName
-
字段详细资料
-
packageName
-
simpleName
-
enclosingType
-
-
构造器详细资料
-
AbstractTypeReference
protected AbstractTypeReference(String packageName, String simpleName, @Nullable TypeReference enclosingType)
-
-
方法详细资料
-
getName
从接口复制的说明:TypeReferenceReturn the fully qualified name of this type reference.- 指定者:
getName在接口中TypeReference- 返回:
- the reflection target name
-
getPackageName
从接口复制的说明:TypeReferenceReturn the package name of this type.- 指定者:
getPackageName在接口中TypeReference- 返回:
- the package name
-
getSimpleName
从接口复制的说明:TypeReferenceReturn the simple name of this type reference.- 指定者:
getSimpleName在接口中TypeReference- 返回:
- the simple name
-
getEnclosingType
从接口复制的说明:TypeReferenceReturn the enclosing type reference, ornullif this type reference does not have an enclosing type.- 指定者:
getEnclosingType在接口中TypeReference- 返回:
- the enclosing type, if any
-
isPrimitive
protected abstract boolean isPrimitive() -
compareTo
- 指定者:
compareTo在接口中Comparable<TypeReference>
-
addPackageIfNecessary
-
hashCode
public int hashCode() -
equals
-
toString
-