public class TypeVariable extends ObjectType
Type.NeverReturnsflagsboolean_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 |
|---|
TypeVariable(java.lang.String name) |
| 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.
|
ClassType |
getRawType()
Return JVM-level implementation type.
|
java.lang.String |
getSignature() |
static TypeVariable |
make(java.lang.reflect.TypeVariable rtype) |
coerceFromObject, getContextClass, getContextClassLoader, getField, getInternalName, getMethod, getMethods, getMethods, getReflectClass, isExisting, isInstance, setExistingcoerceToObject, emitCoerceToObject, emitConvertFromPrimitive, emitIsInstance, getGenericSignature, getImplementationType, getMaybeGenericSignature, getName, getRealType, getSize, getSizeInWords, getType, hashCode, isCompatibleWithValue, isCompatibleWithValue, isInterface, isMoreSpecific, isSubtype, isValidJavaTypeName, isVoid, lookupType, lowestCommonSuperType, make, make, printSignature, promote, registerTypeForClass, setGenericSignature, setName, setReflectClass, setSignature, signatureLength, signatureLength, signatureToName, signatureToPrimitive, signatureToType, signatureToType, swappedCompareResult, toStringpublic static TypeVariable make(java.lang.reflect.TypeVariable rtype)
public int compare(Type other)
Typecompare in class ObjectTypepublic ClassType getRawType()
TypegetRawType in class Typepublic void emitCoerceFromObject(CodeAttr code)
ObjectTypeemitCoerceFromObject in class ObjectTypepublic java.lang.String getSignature()
getSignature in class Type