public abstract class TypeUtils extends Object
| 构造器和说明 |
|---|
TypeUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AClass[] |
directSuperAmongArrayType(AClass subType)
4.10.3 Subtyping among Array Types
The following rules define the direct supertype relation among array types:
If S and T are both reference types, then S[] >1 T[] iff S >1 T.
|
static AClass[] |
directSuperAmongClassAndInterfaceType(AClass subType)
4.10.2 Subtyping among Class and Interface Types
Given a generic type declaration C |
static AClass |
directSuperAmongPrimitiveType(AClass subType)
4.10.1 Subtyping among Primitive Types
The following rules define the direct supertype relation among the primitive types:
double >1 float
float >1 long
long >1 int
int >1 char
int >1 short
short >1 byte
|
static AClass[] |
directSuperType(AClass subType)
4.10 Subtyping
The subtype and supertype relations are binary relations on types.
|
static boolean |
isSubtyping(AClass subType,
AClass superType)
4.10 Subtyping
The subtype and supertype relations are binary relations on types.
|
public static boolean isSubtyping(AClass subType, AClass superType)
The subtype and supertype relations are binary relations on types.
check is subtyping
sub - sup - public static AClass[] directSuperType(AClass subType)
The subtype and supertype relations are binary relations on types.
get direct super type
subType - public static AClass directSuperAmongPrimitiveType(AClass subType)
The following rules define the direct supertype relation among the primitive types:
sub - public static AClass[] directSuperAmongClassAndInterfaceType(AClass subType)
subType - public static AClass[] directSuperAmongArrayType(AClass subType)
The following rules define the direct supertype relation among array types:
subType - Copyright © 2015. All rights reserved.