public class ArrayType extends ObjectType implements java.io.Externalizable
Type.NeverReturns| Modifier and Type | Field and Description |
|---|---|
Type |
elements |
flagsboolean_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, setExistingcoerceToObject, 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, toStringpublic Type elements
public ArrayType(Type elements)
public java.lang.String getSignature()
getSignature in class Typepublic Type getImplementationType()
TypegetImplementationType in class Typepublic Type getRawType()
TypegetRawType in class Typepublic static ArrayType make(Type elements)
public Type getComponentType()
public java.lang.String getInternalName()
ObjectTypegetInternalName in class ObjectTypepublic ClassType getSuperclass()
getSuperclass in class ObjectTypepublic ClassType[] getInterfaces()
getInterfaces in class ObjectTypepublic java.lang.Class getReflectClass()
ObjectTypegetReflectClass in class ObjectTypepublic int getMethods(Filter filter, int searchSupers, java.util.List<Method> result)
getMethods in class ObjectTypepublic int isCompatibleWithValue(Type valueType)
TypeisCompatibleWithValue in class Typepublic int compare(Type other)
Typecompare in class ObjectTypepublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException