org.maverickdbms.basic
Class Array

java.lang.Object
  extended byorg.maverickdbms.basic.Array
All Implemented Interfaces:
Variable

public class Array
extends java.lang.Object
implements Variable

Class to represent fixed size arrays.


Method Summary
 void DIM(ConstantString[] arraysize)
          Dimensions the array.
 mvString get(ConstantString a)
          Get array element.
 mvString get(ConstantString[] position)
          Get array element.
 mvString get(ConstantString a, ConstantString b)
          Get array element.
 mvString get(ConstantString a, ConstantString b, ConstantString c)
          Get array element.
 mvString INMAT(mvString val)
           
 void MAT(Array a)
          Copies the array.
 void MAT(ConstantString mvs)
          Assigns a string to every value in the array.
 void MATBUILD(mvString result, ConstantString start, ConstantString end, ConstantString delimiter)
           
 void MATPARSE(mvString count, ConstantString s, ConstantString start, ConstantString end, ConstantString delimiter)
          Parse a dynamic array into the Array.
 void reference(mvString[] arr, int offset, int[] dim)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

DIM

public void DIM(ConstantString[] arraysize)
Dimensions the array.

Parameters:
arraysize - array containing the dimensions of the array

INMAT

public mvString INMAT(mvString val)

reference

public void reference(mvString[] arr,
                      int offset,
                      int[] dim)

MAT

public void MAT(ConstantString mvs)
Assigns a string to every value in the array.

Parameters:
mvs - the string to assign to each element

MAT

public void MAT(Array a)
Copies the array.

Parameters:
a - the array from which to assign to each element

MATBUILD

public void MATBUILD(mvString result,
                     ConstantString start,
                     ConstantString end,
                     ConstantString delimiter)

MATPARSE

public void MATPARSE(mvString count,
                     ConstantString s,
                     ConstantString start,
                     ConstantString end,
                     ConstantString delimiter)
Parse a dynamic array into the Array.

Parameters:
count - number of elements in the array
s - the dynamic array to parse
start - the starting position in array
end - the finishing position in array
delimiter - the delimiter to separate elements

get

public mvString get(ConstantString[] position)
Get array element.

Parameters:
position - Array containing position of item
Returns:
reference to the array element

get

public mvString get(ConstantString a)
Get array element.

Parameters:
a - position of item
Returns:
reference to the array element

get

public mvString get(ConstantString a,
                    ConstantString b)
Get array element.

Parameters:
a - position of item
Returns:
reference to the array element

get

public mvString get(ConstantString a,
                    ConstantString b,
                    ConstantString c)
Get array element.

Parameters:
a - position of item
Returns:
reference to the array element

size

public int size()