public class ArrayType extends ObjectType implements java.io.Externalizable
Type.NeverReturns
Modifier and Type | Field and Description |
---|---|
Type |
elements |
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
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 |
getComponentType() |
Type |
getImplementationType()
Return Java-level implementation type.
|
ClassType[] |
getInterfaces() |
java.lang.String |
getInternalName()
Returns class name if a class type, signature if an array type.
|
int |
getMethods(Filter filter,
int searchSupers,
java.util.List<Method> result) |
Type |
getRawType()
Return JVM-level implementation type.
|
java.lang.Class |
getReflectClass()
Get the java.lang.Class object for the representation type.
|
java.lang.String |
getSignature() |
ClassType |
getSuperclass() |
int |
isCompatibleWithValue(Type valueType)
If this is the target type, is a given source type compatible?
|
static ArrayType |
make(Type elements)
Find or create an ArrayType for the specified element type.
|
void |
readExternal(java.io.ObjectInput in) |
java.lang.Object |
readResolve() |
void |
writeExternal(java.io.ObjectOutput out) |
coerceFromObject, emitCoerceFromObject, getContextClass, getContextClassLoader, getField, getMethod, getMethods, isExisting, isInstance, setExisting
coerceToObject, emitCoerceToObject, emitConvertFromPrimitive, emitIsInstance, getGenericSignature, getMaybeGenericSignature, getName, getRealType, getSize, getSizeInWords, getType, hashCode, 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, toString
public Type elements
public ArrayType(Type elements)
public java.lang.String getSignature()
getSignature
in class Type
public Type getImplementationType()
Type
getImplementationType
in class Type
public Type getRawType()
Type
getRawType
in class Type
public static ArrayType make(Type elements)
public Type getComponentType()
public java.lang.String getInternalName()
ObjectType
getInternalName
in class ObjectType
public ClassType getSuperclass()
getSuperclass
in class ObjectType
public ClassType[] getInterfaces()
getInterfaces
in class ObjectType
public java.lang.Class getReflectClass()
ObjectType
getReflectClass
in class ObjectType
public int getMethods(Filter filter, int searchSupers, java.util.List<Method> result)
getMethods
in class ObjectType
public int isCompatibleWithValue(Type valueType)
Type
isCompatibleWithValue
in class Type
public int compare(Type other)
Type
compare
in class ObjectType
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException