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

public Class ArrayReferenceImpl

extends ObjectReferenceImpl
implements ArrayReference
Class Inheritance
All Implemented Interfaces
com.sun.jdi.ArrayReference, com.sun.jdi.ObjectReference, com.sun.jdi.Value, com.sun.jdi.Mirror
Imports
java.util.ArrayList, .List, com.sun.jdi.ArrayReference, .ClassNotLoadedException, .InvalidTypeException, .Method, .Type, .Value, .VirtualMachine

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv int
Inherited from com.sun.tools.jdi.ObjectReferenceImpl:
addedListenerref

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv ArrayTypeImpl
private static <T> T
public Value
getValue(int index)

Implements com.sun.jdi.ArrayReference.getValue.

Returns an array component value.

public List<Value>
getValues()

Implements com.sun.jdi.ArrayReference.getValues.

Returns all of the components in this array.

public List<Value>
getValues(int index, int length)

Implements com.sun.jdi.ArrayReference.getValues.

Returns a range of array components.

protected ClassTypeImpl
public int
length()

Implements com.sun.jdi.ArrayReference.length.

Return array length.

public void
setValue(int index, Value value)

Implements com.sun.jdi.ArrayReference.setValue.

Replaces an array component with another value.

public void
setValues(List<? extends Value> values)

Implements com.sun.jdi.ArrayReference.setValues.

Replaces all array components with other values.

public void
setValues(int index, List<? extends Value> values, int srcIndex, int length)

Implements com.sun.jdi.ArrayReference.setValues.

Replaces a range of array components with other values.

public String
toString()

Overrides com.sun.tools.jdi.ObjectReferenceImpl.toString.

Implements com.sun.jdi.Mirror.toString.

Returns a String describing this mirror

pack-priv byte
private void
validateArrayAccess(int index, int length)

Validate that the range to set/get is valid.

pack-priv void
Inherited from com.sun.tools.jdi.ObjectReferenceImpl:
descriptiondisableCollectionenableCollectionentryCountequalsgetCachegetValuegetValueshashCodeinvokeMethodisClassObjectisCollectedjdwpMonitorInfonewCacheowningThreadprepareForAssignmentTorefreferenceTypereferringObjectssendInvokeCommandsetValuetypeuniqueIDvalidateClassMethodInvocationvalidateIfaceMethodInvocationvalidateMethodInvocationvmNotSuspendedvmSuspendedwaitingThreads

Field Detail

lengthback to summary
pack-priv int length

Constructor Detail

ArrayReferenceImplback to summary
pack-priv ArrayReferenceImpl(VirtualMachine aVm, long aRef)

Method Detail

arrayTypeback to summary
pack-priv ArrayTypeImpl arrayType()
castback to summary
private static <T> T cast(Object x)
Annotations
@SuppressWarnings:unchecked
getValueback to summary
public Value getValue(int index)

Implements com.sun.jdi.ArrayReference.getValue.

Doc from com.sun.jdi.ArrayReference.getValue.

Returns an array component value.

getValuesback to summary
public List<Value> getValues()

Implements com.sun.jdi.ArrayReference.getValues.

Doc from com.sun.jdi.ArrayReference.getValues.

Returns all of the components in this array.

getValuesback to summary
public List<Value> getValues(int index, int length)

Implements com.sun.jdi.ArrayReference.getValues.

Doc from com.sun.jdi.ArrayReference.getValues.

Returns a range of array components.

invokableReferenceTypeback to summary
protected ClassTypeImpl invokableReferenceType(Method method)

Overrides com.sun.tools.jdi.ObjectReferenceImpl.invokableReferenceType.

lengthback to summary
public int length()

Implements com.sun.jdi.ArrayReference.length.

Return array length. Need not be synchronized since it cannot be provably stale.

setValueback to summary
public void setValue(int index, Value value) throws InvalidTypeException, ClassNotLoadedException

Implements com.sun.jdi.ArrayReference.setValue.

Doc from com.sun.jdi.ArrayReference.setValue.

Replaces an array component with another value.

Object values must be assignment compatible with the component type (This implies that the component type must be loaded through the declaring class's class loader). Primitive values must be either assignment compatible with the component type or must be convertible to the component type without loss of information. See JLS section 5.2 for more information on assignment compatibility.

Exceptions
InvalidTypeException:
if the type of value is not compatible with the declared type of array components.
ClassNotLoadedException:
if the array component type has not yet been loaded through the appropriate class loader.
setValuesback to summary
public void setValues(List<? extends Value> values) throws InvalidTypeException, ClassNotLoadedException

Implements com.sun.jdi.ArrayReference.setValues.

Doc from com.sun.jdi.ArrayReference.setValues.

Replaces all array components with other values. If the given list is larger in size than the array, the values at the end of the list are ignored.

Object values must be assignment compatible with the element type (This implies that the component type must be loaded through the enclosing class's class loader). Primitive values must be either assignment compatible with the component type or must be convertible to the component type without loss of information. See JLS section 5.2 for more information on assignment compatibility.

Exceptions
InvalidTypeException:
if any of the new values is not compatible with the declared type of array components.
ClassNotLoadedException:
if the array component type has not yet been loaded through the appropriate class loader.
setValuesback to summary
public void setValues(int index, List<? extends Value> values, int srcIndex, int length) throws InvalidTypeException, ClassNotLoadedException

Implements com.sun.jdi.ArrayReference.setValues.

Doc from com.sun.jdi.ArrayReference.setValues.

Replaces a range of array components with other values.

Object values must be assignment compatible with the component type (This implies that the component type must be loaded through the enclosing class's class loader). Primitive values must be either assignment compatible with the component type or must be convertible to the component type without loss of information. See JLS section 5.2 for more information on assignment compatibility.

Exceptions
InvalidTypeException:
if any element of values is not compatible with the declared type of array components.
toStringback to summary
public String toString()

Overrides com.sun.tools.jdi.ObjectReferenceImpl.toString.

Implements com.sun.jdi.Mirror.toString.

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

Returns a String describing this mirror

typeValueKeyback to summary
pack-priv byte typeValueKey()

Overrides com.sun.tools.jdi.ObjectReferenceImpl.typeValueKey.

validateArrayAccessback to summary
private void validateArrayAccess(int index, int length)

Validate that the range to set/get is valid. length of -1 (meaning rest of array) has been converted before entry.

validateAssignmentback to summary
pack-priv void validateAssignment(ValueContainer destination) throws InvalidTypeException, ClassNotLoadedException

Overrides com.sun.tools.jdi.ObjectReferenceImpl.validateAssignment.

com.sun.tools.jdi back to summary

pack-priv Class ArrayReferenceImpl.Component

extends Object
implements ValueContainer
Class Inheritance
All Implemented Interfaces
com.sun.tools.jdi.ValueContainer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Type
public String
public Type
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Componentback to summary
pack-priv Component()

Method Detail

findTypeback to summary
public Type findType(String signature) throws ClassNotLoadedException

Implements com.sun.tools.jdi.ValueContainer.findType.

signatureback to summary
public String signature()

Implements com.sun.tools.jdi.ValueContainer.signature.

typeback to summary
public Type type() throws ClassNotLoadedException

Implements com.sun.tools.jdi.ValueContainer.type.

typeNameback to summary
public String typeName()

Implements com.sun.tools.jdi.ValueContainer.typeName.