public class ParameterizedType extends ObjectType
Type.NeverReturns
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 |
---|
ParameterizedType(ClassType rawType,
Type... typeArgumentTypes) |
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.
|
void |
emitCoerceFromObject(CodeAttr code)
Compile (in given method) cast from Object to this Type.
|
void |
emitIsInstance(CodeAttr code) |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getGenericSignature() |
java.lang.String |
getName() |
ClassType |
getRawType()
Return JVM-level implementation type.
|
java.lang.Class |
getReflectClass()
Get the java.lang.Class object for the representation type.
|
java.lang.String |
getSignature() |
char |
getTypeArgumentBound(int index) |
Type |
getTypeArgumentType(int index) |
Type[] |
getTypeArgumentTypes() |
void |
setTypeArgumentBound(int index,
char bound)
Set a wildcard indicator.
|
void |
setTypeArgumentBounds(char[] bounds) |
java.lang.String |
toString() |
coerceFromObject, getContextClass, getContextClassLoader, getField, getInterfaces, getInternalName, getMethod, getMethods, getMethods, getSuperclass, isExisting, isInstance, setExisting
coerceToObject, emitCoerceToObject, emitConvertFromPrimitive, getImplementationType, getMaybeGenericSignature, getRealType, 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 ClassType getRawType()
Type
getRawType
in class Type
public java.lang.Class getReflectClass()
ObjectType
getReflectClass
in class ObjectType
public Type[] getTypeArgumentTypes()
public Type getTypeArgumentType(int index)
public void setTypeArgumentBound(int index, char bound)
public char getTypeArgumentBound(int index)
public void setTypeArgumentBounds(char[] bounds)
public java.lang.String getSignature()
getSignature
in class Type
public java.lang.String getGenericSignature()
getGenericSignature
in class Type
public void emitCoerceFromObject(CodeAttr code)
ObjectType
emitCoerceFromObject
in class ObjectType
public void emitIsInstance(CodeAttr code)
emitIsInstance
in class Type
public int compare(Type other)
Type
compare
in class ObjectType
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object