- 
- All Superinterfaces:
- Accessible,- Comparable<ReferenceType>,- Mirror,- ReferenceType,- Type
 
 public interface ArrayType extends ReferenceType Provides access to the class of an array and the type of its components in the target VM.- Since:
- 1.3
- See Also:
- ArrayReference
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcomponentSignature()Gets the JNI signature of the components of this array class.TypecomponentType()Returns the component type of this array, as specified in the array declaration.StringcomponentTypeName()Returns a text representation of the component type of this array.ArrayReferencenewInstance(int length)Creates a new instance of this array class in the target VM.- 
Methods declared in interface com.sun.jdi.AccessibleisPackagePrivate, isPrivate, isProtected, isPublic, modifiers
 - 
Methods declared in interface java.lang.ComparablecompareTo
 - 
Methods declared in interface com.sun.jdi.MirrortoString, virtualMachine
 - 
Methods declared in interface com.sun.jdi.ReferenceTypeallFields, allLineLocations, allLineLocations, allMethods, availableStrata, classLoader, classObject, constantPool, constantPoolCount, defaultStratum, equals, failedToInitialize, fieldByName, fields, genericSignature, getValue, getValues, hashCode, instances, isAbstract, isFinal, isInitialized, isPrepared, isStatic, isVerified, locationsOfLine, locationsOfLine, majorVersion, methods, methodsByName, methodsByName, minorVersion, module, name, nestedTypes, sourceDebugExtension, sourceName, sourceNames, sourcePaths, visibleFields, visibleMethods
 
- 
 
- 
- 
- 
Method Detail- 
newInstanceArrayReference newInstance(int length) Creates a new instance of this array class in the target VM. The array is created with the given length and each component is initialized to is standard default value.- Parameters:
- length- the number of components in the new array
- Returns:
- the newly created ArrayReferencemirroring the new object in the target VM.
- Throws:
- VMCannotBeModifiedException- if the VirtualMachine is read-only - see- VirtualMachine.canBeModified().
 
 - 
componentSignatureString componentSignature() Gets the JNI signature of the components of this array class. The signature describes the declared type of the components. If the components are objects, their actual type in a particular run-time context may be a subclass of the declared class.- Returns:
- a string containing the JNI signature of array components.
 
 - 
componentTypeNameString componentTypeName() Returns a text representation of the component type of this array.- Returns:
- a text representation of the component type.
 
 - 
componentTypeType componentType() throws ClassNotLoadedException Returns the component type of this array, as specified in the array declaration.Note: The component type of a array will always be created or loaded before the array - see The Java™ Virtual Machine Specification, section 5.3.3 - Creating Array Classes. However, although the component type will be loaded it may not yet be prepared, in which case the type will be returned but attempts to perform some operations on the returned type (e.g. fields()) will throw aClassNotPreparedException. UseReferenceType.isPrepared()to determine if a reference type is prepared.- Returns:
- the Typeof this array's components.
- Throws:
- ClassNotLoadedException
- See Also:
- Type,- Field.type() - for usage examples
 
 
- 
 
-