Lines Matching refs:value
26 * This returns 1, if the Frame value is null, or if the value is not an array.
31 Object value = super.getValue();
32 if (value == null || !value.getClass().isArray()) {
49 Object value = super.getValue();
50 if (value == null || value.getClass().isArray()) {
54 Object[] array = (Object[])Array.newInstance(value.getClass(), 1);
55 array[0] = value;
61 * Returns the value at the specified index.
63 * In case the value is null or not an array, the index must be 0, and the value itself is
67 * @return The value at that index.
70 Object value = super.getValue();
71 if (value == null || !value.getClass().isArray()) {
75 return value;
78 return Array.get(value, index);
83 * Returns the value as a FrameValue at the specified index.
89 * @return The value as a FrameValue at that index (must release).
92 Object value = getValueAtIndex(index);
94 result.setValue(value);
110 * Assign a value at the specified index.
112 * In case the held value is not an array, the index must be 0, and the object will be replaced
115 * @param value The value to assign.
118 public void setValueAtIndex(Object value, int index) {
125 curValue = value;
128 Array.set(curValue, index, value);
133 * Assign a FrameValue's value at the specified index.
135 * This method unpacks the FrameValue and assigns the unpacked value to the specified index.
138 * @param frame The frame value to assign.
142 Object value = frame.getValue();
143 setValueAtIndex(value, index);