public class ArrayType extends ObjectType implements java.io.Externalizable
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, javalangBooleanType, javalangClassType, 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()
The type used to implement types not natively understood by the JVM.
|
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) |
java.lang.Class |
getReflectClass()
Get the java.lang.Class object for the representation type.
|
java.lang.String |
getSignature() |
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, promote, setExisting
coerceToObject, emitCoerceToObject, emitConvertFromPrimitive, emitIsInstance, getName, getRealType, getSize, getSizeInWords, getType, hashCode, isMoreSpecific, isSubtype, isValidJavaTypeName, isVoid, lookupType, lowestCommonSuperType, make, printSignature, registerTypeForClass, 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 ObjectType
public static ArrayType make(Type elements)
public Type getComponentType()
public java.lang.String getInternalName()
ObjectType
getInternalName
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 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