public interface IJavaArray extends IJavaObject, IIndexedValue
IJavaValue
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Returns the length of this array.
|
IJavaValue |
getValue(int index)
Returns the value at the given index in this array.
|
IJavaValue[] |
getValues()
Returns the values contained in this array.
|
void |
setValue(int index,
IJavaValue value)
Sets the value at the given index to the specified value.
|
void |
setValues(IJavaValue[] values)
Replaces values in this array.
|
void |
setValues(int offset,
int length,
IJavaValue[] values,
int startOffset)
Replaces a range of values in this array.
|
disableCollection, enableCollection, getField, getField, getOwningThread, getReferringObjects, getUniqueId, getWaitingThreads, sendMessage, sendMessage
getGenericSignature, getJavaType, getSignature, isNull
getReferenceTypeName, getValueString, getVariables, hasVariables, isAllocated
getDebugTarget, getLaunch, getModelIdentifier
getAdapter
getInitialOffset, getSize, getVariable, getVariables
IJavaValue[] getValues() throws DebugException
DebugException
- if this method fails. Reasons include:
IJavaValue getValue(int index) throws DebugException
index
- the index of the value to returnDebugException
- if this method fails. Reasons include:
IndexOutOfBoundsException
- if the index is not within the bounds of this array.int getLength() throws DebugException
DebugException
- if this method fails. Reasons include:
void setValue(int index, IJavaValue value) throws DebugException
index
- the index at which to assign a new valuevalue
- the new valueDebugException
- if this method fails. Reasons include:
IndexOutOfBoundsException
- if the index is not within the bounds of this array.void setValues(IJavaValue[] values) throws DebugException
values
- replacement valuesDebugException
- if an exception occurs replacing valuesvoid setValues(int offset, int length, IJavaValue[] values, int startOffset) throws DebugException
offset
- offset in this array to start replacing values atlength
- the number of values to replace in this arrayvalues
- replacement valuesstartOffset
- the first offset where values are copied from the given
replacement valuesDebugException
- if an exception occurs replacing values or if the given
offsets and length are not within the range of this array
or the replacement values
Copyright (c) 2000, 2013 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.