Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java Debug Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides access to the class of an array and the type of its components in the target VM.
ArrayReference
Method Summary | |
String |
componentSignature()
Gets the JNI signature of the components of this array class. |
Type |
componentType()
Returns the component type of this array, as specified in the array declaration. |
String |
componentTypeName()
Returns a text representation of the component type of this array. |
ArrayReference |
newInstance(int length)
Creates a new instance of this array class in the target VM. |
Methods inherited from interface com.sun.jdi.ReferenceType |
allFields, allLineLocations, allLineLocations, allMethods, availableStrata, classLoader, classObject, defaultStratum, equals, failedToInitialize, fieldByName, fields, getValue, getValues, hashCode, isAbstract, isFinal, isInitialized, isPrepared, isStatic, isVerified, locationsOfLine, locationsOfLine, methods, methodsByName, methodsByName, name, nestedTypes, sourceDebugExtension, sourceName, sourceNames, sourcePaths, visibleFields, visibleMethods |
Methods inherited from interface com.sun.jdi.Type |
signature |
Methods inherited from interface com.sun.jdi.Mirror |
toString, virtualMachine |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface com.sun.jdi.Accessible |
isPackagePrivate, isPrivate, isProtected, isPublic, modifiers |
Method Detail |
public ArrayReference newInstance(int length)
length
- the number of components in the new array
ArrayReference
mirroring
the new object in the target VM.public String componentSignature()
public String componentTypeName()
public Type componentType() throws ClassNotLoadedException
Note: The component type of a array will always be
created or loaded before the array - see the
fields()
) will throw
a ClassNotPreparedException
.
Use ReferenceType.isPrepared()
to determine if
a reference type is prepared.
Type
of this array's components.
ClassNotLoadedException
Type
,
Field.type() - for usage examples
|
Java Debug Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |