|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.bsf.engines.rexx.AccessArrayUtil
Utility class to allow Rexx to address Java arrays, at() and put() implemented for up to five dimensions for convenience. Generic implementation, that could be used by other languages as well.
AccessArrayUtil.java - convenience class for accessing up to 5-dimensional primitive Java arrays Copyright (C) 2001 Rony G. Flatscher This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA The following URL may be available for further information: http://www.gnu.org/copyleft/lesser.html
Constructor Summary | |
AccessArrayUtil()
|
Method Summary | |
static java.lang.Object |
at(java.lang.Object[][][][][] array,
int i1,
int i2,
int i3,
int i4,
int i5)
Get an element of a five dimensional array. |
static java.lang.Object |
at(java.lang.Object[][][][] array,
int i1,
int i2,
int i3,
int i4)
Get an element of a four dimensional array. |
static java.lang.Object |
at(java.lang.Object[][][] array,
int i1,
int i2,
int i3)
Get an element of a three dimensional array. |
static java.lang.Object |
at(java.lang.Object[][] array,
int i1,
int i2)
Get an element of a two dimensional array. |
static java.lang.Object |
at(java.lang.Object[] array,
int i1)
Get an element of a one dimensional array. |
static void |
put(java.lang.Object[][][][][] array,
java.lang.Object newValue,
int i1,
int i2,
int i3,
int i4,
int i5)
Put an element into a five dimensional array. |
static void |
put(java.lang.Object[][][][] array,
java.lang.Object newValue,
int i1,
int i2,
int i3,
int i4)
Put an element into a four dimensional array. |
static void |
put(java.lang.Object[][][] array,
java.lang.Object newValue,
int i1,
int i2,
int i3)
Put an element into a three dimensional array. |
static void |
put(java.lang.Object[][] array,
java.lang.Object newValue,
int i1,
int i2)
Put an element into a two dimensional array. |
static void |
put(java.lang.Object[] array,
java.lang.Object newValue,
int i1)
Put an element into a one dimensional array. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public AccessArrayUtil()
Method Detail |
public static java.lang.Object at(java.lang.Object[] array, int i1)
public static java.lang.Object at(java.lang.Object[][] array, int i1, int i2)
public static java.lang.Object at(java.lang.Object[][][] array, int i1, int i2, int i3)
public static java.lang.Object at(java.lang.Object[][][][] array, int i1, int i2, int i3, int i4)
public static java.lang.Object at(java.lang.Object[][][][][] array, int i1, int i2, int i3, int i4, int i5)
public static void put(java.lang.Object[] array, java.lang.Object newValue, int i1)
public static void put(java.lang.Object[][] array, java.lang.Object newValue, int i1, int i2)
public static void put(java.lang.Object[][][] array, java.lang.Object newValue, int i1, int i2, int i3)
public static void put(java.lang.Object[][][][] array, java.lang.Object newValue, int i1, int i2, int i3, int i4)
public static void put(java.lang.Object[][][][][] array, java.lang.Object newValue, int i1, int i2, int i3, int i4, int i5)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |