com.ibm.bsf.engines.rexx
Class AccessArrayUtil

java.lang.Object
  |
  +--com.ibm.bsf.engines.rexx.AccessArrayUtil

public abstract class AccessArrayUtil
extends java.lang.Object

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

Since:
2001-04-24 by Rony G. Flatscher
Version:
0.9.9, 2001-04-27
Author:
Rony G. Flatscher (WU Wien University)

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

AccessArrayUtil

public AccessArrayUtil()
Method Detail

at

public static java.lang.Object at(java.lang.Object[] array,
                                  int i1)
Get an element of a one dimensional array.

at

public static java.lang.Object at(java.lang.Object[][] array,
                                  int i1,
                                  int i2)
Get an element of a two dimensional array.

at

public static java.lang.Object at(java.lang.Object[][][] array,
                                  int i1,
                                  int i2,
                                  int i3)
Get an element of a three dimensional array.

at

public 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.

at

public 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.

put

public static void put(java.lang.Object[] array,
                       java.lang.Object newValue,
                       int i1)
Put an element into a one dimensional array.

put

public static void put(java.lang.Object[][] array,
                       java.lang.Object newValue,
                       int i1,
                       int i2)
Put an element into a two dimensional array.

put

public 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.

put

public 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.

put

public 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.