public class LazyType extends ObjectType
Type.NeverReturns
Modifier and Type | Field and Description |
---|---|
static ClassType |
lazyType |
static ClassType |
promiseType |
flags
boolean_ctype, boolean_type, booleanType, booleanValue_method, byte_type, byteType, char_type, charType, clone_method, double_type, doubleType, doubleValue_method, errorType, float_type, floatType, floatValue_method, int_type, intType, intValue_method, java_lang_Class_type, javalangannotationAnnotationType, javalangBooleanType, javalangCharacterType, javalangClassType, javalanginvokeMethodHandleType, javalangNumberType, javalangObjectType, javalangStringType, javalangThrowableType, long_type, longType, longValue_method, neverReturnsType, nullType, number_type, objectType, pointer_type, reflectClass, short_type, shortType, string_type, throwable_type, toString_method, tostring_type, toStringType, typeArray0, void_type, voidType
Constructor and Description |
---|
LazyType(ClassType rawType,
Type valueType) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Type other)
Return a numeric code showing "subtype" relationship:
1: if other is a pure subtype of this;
0: if has the same values;
-1: if this is a pure subtype of other;
-2: if they have values in common but neither is a subtype of the other;
-3: if the types have no values in common.
|
Type |
getImplementationType()
Return Java-level implementation type.
|
static LazyType |
getInstance(ClassType rawType,
Type valueType) |
static LazyType |
getLazyType(Type valueType) |
static LazyType |
getPromiseType(Type valueType) |
Type |
getRawType()
Return JVM-level implementation type.
|
Type |
getValueType() |
static boolean |
maybeLazy(Type type) |
java.lang.String |
toString() |
coerceFromObject, emitCoerceFromObject, getContextClass, getContextClassLoader, getField, getInterfaces, getInternalName, getMethod, getMethods, getMethods, getReflectClass, getSuperclass, isExisting, isInstance, setExisting
coerceToObject, emitCoerceToObject, emitConvertFromPrimitive, emitIsInstance, getGenericSignature, getMaybeGenericSignature, getName, getRealType, getSignature, getSize, getSizeInWords, getType, hashCode, isCompatibleWithValue, isCompatibleWithValue, isInterface, isMoreSpecific, isSame, isSubtype, isValidJavaTypeName, isVoid, lookupType, lowestCommonSharedType, lowestCommonSuperType, make, make, printSignature, promote, promoteIfUnsigned, registerTypeForClass, setGenericSignature, setName, setReflectClass, setSignature, signatureLength, signatureLength, signatureToName, signatureToPrimitive, signatureToType, signatureToType, swappedCompareResult
public static final ClassType lazyType
public static final ClassType promiseType
public Type getValueType()
public Type getRawType()
Type
getRawType
in class Type
public Type getImplementationType()
Type
getImplementationType
in class Type
public int compare(Type other)
Type
compare
in class ObjectType
public static boolean maybeLazy(Type type)