APIdia Launch Partner
Top Fields Constructors Methods
com.sun.tools.jdi

public Class ArrayTypeImpl

extends ReferenceTypeImpl
implements ArrayType
Class Inheritance
All Implemented Interfaces
com.sun.jdi.ArrayType, com.sun.jdi.ReferenceType, com.sun.jdi.Accessible, java.lang.Comparable, com.sun.jdi.Type, com.sun.jdi.Mirror
Imports
java.util.ArrayList, .Iterator, .List, .Map, .Set, com.sun.jdi.ArrayReference, .ArrayType, .ClassLoaderReference, .ClassNotLoadedException, .InterfaceType, .Method, .PrimitiveType, .ReferenceType, .Type, .VirtualMachine

Field Summary

Inherited from com.sun.tools.jdi.ReferenceTypeImpl:
modifiersNO_SDE_INFO_MARKref

Constructor Summary

AccessConstructor and Description
protected
ArrayTypeImpl(VirtualMachine aVm, long aRef)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public List<Method>
allMethods()

Implements abstract com.sun.tools.jdi.ReferenceTypeImpl.allMethods.

Implements com.sun.jdi.ReferenceType.allMethods.

Returns a list containing each Method declared in this type, and its superclasses, implemented interfaces, and/or superinterfaces.

public String
componentSignature()

Implements com.sun.jdi.ArrayType.componentSignature.

Gets the JNI signature of the components of this array class.

public Type
componentType()

Implements com.sun.jdi.ArrayType.componentType.

Returns the component type of this array, as specified in the array declaration.

public String
componentTypeName()

Implements com.sun.jdi.ArrayType.componentTypeName.

Returns a text representation of the component type of this array.

public boolean
failedToInitialize()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.failedToInitialize.

Implements com.sun.jdi.ReferenceType.failedToInitialize.

Determines if initialization failed for this class.

pack-priv void
pack-priv List<ReferenceType>
public boolean
isAbstract()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isAbstract.

Implements com.sun.jdi.ReferenceType.isAbstract.

Determines if this type was declared abstract.

pack-priv boolean
pack-priv static boolean
isComponentAssignable(Type destination, Type source)

public boolean
isFinal()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isFinal.

Implements com.sun.jdi.ReferenceType.isFinal.

Determines if this type was declared final.

public boolean
isInitialized()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isInitialized.

Implements com.sun.jdi.ReferenceType.isInitialized.

Determines if this type has been initialized.

public boolean
isPrepared()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isPrepared.

Implements com.sun.jdi.ReferenceType.isPrepared.

Determines if this type has been prepared.

public boolean
isStatic()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isStatic.

Implements com.sun.jdi.ReferenceType.isStatic.

Determines if this type was declared static.

public boolean
isVerified()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isVerified.

Implements com.sun.jdi.ReferenceType.isVerified.

Determines if this type has been verified.

public ArrayReference
newInstance(int length)

Implements com.sun.jdi.ArrayType.newInstance.

Creates a new instance of this array class in the target VM.

public String
toString()

Overrides java.lang.Object.toString.

Implements com.sun.jdi.Mirror.toString.

Returns a String describing this mirror

pack-priv Type
type()

Inherited from com.sun.tools.jdi.ReferenceTypeImpl:
addAllFieldsaddToMethodMapaddVisibleFieldsallFieldsallLineLocationsallLineLocationsavailableStratabaseSourceDirbaseSourceNamebaseSourcePathclassLoaderclassObjectcompareToconstantPoolconstantPoolCountdecodeStatusdefaultStratumequalsfieldByNamefieldsfindTypegenericSignaturegetFieldMirrorgetInterfacesgetMethodMirrorgetValuegetValueshashCodeindexOfindexOfinstancesisAssignableFromisAssignableFromisPackagePrivateisPrivateisProtectedisPublicloaderStringlocationsOfLinelocationsOfLinemajorVersionmarkPreparedmethodsmethodsByNamemethodsByNameminorVersionmodifiersmodulenestedTypesnoticeRedefineClassrefsetGenericSignaturesetSignaturesetStatussignaturesourceDebugExtensionsourceNamesourceNamessourcePathsstratumupdateStatusvalidateFieldAccessvalidateFieldSetvisibleFieldsvisibleMethods

Constructor Detail

ArrayTypeImplback to summary
protected ArrayTypeImpl(VirtualMachine aVm, long aRef)

Method Detail

addVisibleMethodsback to summary
pack-priv void addVisibleMethods(Map<String, Method> map, Set<InterfaceType> seenInterfaces)

Implements abstract com.sun.tools.jdi.ReferenceTypeImpl.addVisibleMethods.

Annotations
@Override
allMethodsback to summary
public List<Method> allMethods()

Implements abstract com.sun.tools.jdi.ReferenceTypeImpl.allMethods.

Implements com.sun.jdi.ReferenceType.allMethods.

Doc from com.sun.jdi.ReferenceType.allMethods.

Returns a list containing each Method declared in this type, and its superclasses, implemented interfaces, and/or superinterfaces. All declared and inherited methods are included, regardless of whether they are hidden or overridden.

For arrays (ArrayType) and primitive classes, the returned list is always empty.

componentSignatureback to summary
public String componentSignature()

Implements com.sun.jdi.ArrayType.componentSignature.

Doc from com.sun.jdi.ArrayType.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.

componentTypeback to summary
public Type componentType() throws ClassNotLoadedException

Implements com.sun.jdi.ArrayType.componentType.

Doc from com.sun.jdi.ArrayType.componentType.

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 a ClassNotPreparedException. Use ReferenceType#isPrepared() to determine if a reference type is prepared.

componentTypeNameback to summary
public String componentTypeName()

Implements com.sun.jdi.ArrayType.componentTypeName.

Doc from com.sun.jdi.ArrayType.componentTypeName.

Returns a text representation of the component type of this array.

failedToInitializeback to summary
public boolean failedToInitialize()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.failedToInitialize.

Implements com.sun.jdi.ReferenceType.failedToInitialize.

Doc from com.sun.jdi.ReferenceType.failedToInitialize.

Determines if initialization failed for this class. See the JVM specification for details on class initialization.

For arrays (ArrayType) and primitive classes, the return value is undefined.

getModifiersback to summary
pack-priv void getModifiers()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.getModifiers.

inheritedTypesback to summary
pack-priv List<ReferenceType> inheritedTypes()

Implements abstract com.sun.tools.jdi.ReferenceTypeImpl.inheritedTypes.

isAbstractback to summary
public boolean isAbstract()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isAbstract.

Implements com.sun.jdi.ReferenceType.isAbstract.

Doc from com.sun.jdi.ReferenceType.isAbstract.

Determines if this type was declared abstract.

For arrays (ArrayType) and primitive classes, the return value is undefined.

isAssignableToback to summary
pack-priv boolean isAssignableTo(ReferenceType destType)

Implements abstract com.sun.tools.jdi.ReferenceTypeImpl.isAssignableTo.

isComponentAssignableback to summary
pack-priv static boolean isComponentAssignable(Type destination, Type source)
isFinalback to summary
public boolean isFinal()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isFinal.

Implements com.sun.jdi.ReferenceType.isFinal.

Doc from com.sun.jdi.ReferenceType.isFinal.

Determines if this type was declared final.

For arrays (ArrayType) and primitive classes, the return value is always true.

isInitializedback to summary
public boolean isInitialized()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isInitialized.

Implements com.sun.jdi.ReferenceType.isInitialized.

Doc from com.sun.jdi.ReferenceType.isInitialized.

Determines if this type has been initialized. See the JVM specification for a definition of class verification. For InterfaceType, this method always returns the same value as isPrepared().

For arrays (ArrayType) and primitive classes, the return value is undefined.

isPreparedback to summary
public boolean isPrepared()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isPrepared.

Implements com.sun.jdi.ReferenceType.isPrepared.

Doc from com.sun.jdi.ReferenceType.isPrepared.

Determines if this type has been prepared. See the JVM specification for a definition of class preparation.

For arrays (ArrayType) and primitive classes, the return value is undefined.

isStaticback to summary
public boolean isStatic()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isStatic.

Implements com.sun.jdi.ReferenceType.isStatic.

Doc from com.sun.jdi.ReferenceType.isStatic.

Determines if this type was declared static. Only nested types, can be declared static, so false is returned for any package-level type, array type, or primitive class.

isVerifiedback to summary
public boolean isVerified()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isVerified.

Implements com.sun.jdi.ReferenceType.isVerified.

Doc from com.sun.jdi.ReferenceType.isVerified.

Determines if this type has been verified. See the JVM specification for a definition of class verification.

For arrays (ArrayType) and primitive classes, the return value is undefined.

newInstanceback to summary
public ArrayReference newInstance(int length)

Implements com.sun.jdi.ArrayType.newInstance.

Doc from com.sun.jdi.ArrayType.newInstance.

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.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements com.sun.jdi.Mirror.toString.

Doc from com.sun.jdi.Mirror.toString.

Returns a String describing this mirror

typeback to summary
pack-priv Type type() throws ClassNotLoadedException