|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.apl2.Apl2object
Java object class which manages APL2 workspace data objects.
The final fields provide constant values for datatypes returned by the type
method.
Field Summary | |
---|---|
static int |
CDWRTA
Workspace object type code: Integer progression vector. |
static int |
CDWRTB
Workspace object type code: Boolean. |
static int |
CDWRTC
Workspace object type code: Single byte character. |
static int |
CDWRTD
Workspace object type code: Four byte character. |
static int |
CDWRTG
Workspace object type code: General array. |
static int |
CDWRTI
Workspace object type code: Integer. |
static int |
CDWRTJ
Workspace object type code: Complex. |
static int |
CDWRTR
Workspace object type code: Real. |
Constructor Summary | |
---|---|
Apl2object(Apl2interp Apl2interp,
Apl2cdr Value)
Construct an object from an Apl2cdr object |
|
Apl2object(Apl2interp Apl2interp,
boolean Value)
Construct an object from a boolean value. |
|
Apl2object(Apl2interp Apl2interp,
byte Value)
Construct an object from a byte value. |
|
Apl2object(Apl2interp Apl2interp,
char Value)
Construct an object from a char value. |
|
Apl2object(Apl2interp Apl2interp,
double Value)
Construct an object from a double value. |
|
Apl2object(Apl2interp Apl2interp,
float Value)
Construct an object from a float value. |
|
Apl2object(Apl2interp Apl2interp,
int Value)
Construct an object from an int value. |
|
Apl2object(Apl2interp Apl2interp,
long Value)
Construct an object from a long value. |
|
Apl2object(Apl2interp Apl2interp,
java.lang.Object Value)
Construct an object from an arbitrary Object. |
|
Apl2object(Apl2interp Apl2interp,
java.lang.Object Value,
boolean Global)
Construct an object containing a global reference to an arbitrary Object. |
|
Apl2object(Apl2interp Apl2interp,
short Value)
Construct an object from a short value. |
|
Apl2object(Apl2interp Apl2interp,
java.lang.String Value)
Construct an object from a String value. |
Method Summary | |
---|---|
boolean[] |
booleanarrayValue()
Returns the value of the specified object as an array of boolean s. |
boolean |
booleanValue()
Returns the value of the specified object as a boolean . |
byte[] |
bytearrayValue()
Returns the value of the specified object as an array of byte s. |
byte |
byteValue()
Returns the value of the specified object as a byte . |
Apl2cdr |
cdrValue()
Returns the value of the specified object in its Canonical Data Representation. |
char[] |
chararrayValue()
Returns the value of the specified object as an array of char s. |
char |
charValue()
Returns the value of the specified object as a char . |
double[] |
doublearrayValue()
Returns the value of the specified object as an array of double s. |
double |
doubleValue()
Returns the value of the specified object as a double . |
float[] |
floatarrayValue()
Returns the value of the specified object as an array of float s. |
float |
floatValue()
Returns the value of the specified object as a float . |
void |
Free()
Free the object |
Apl2interp |
GetApl2interp()
Get the Apl2interp object used to construct the Apl2object |
int[] |
intarrayValue()
Returns the value of the specified object as an array of int s. |
int |
intValue()
Returns the value of the specified object as an int . |
long[] |
longarrayValue()
Returns the value of the specified object as an array of long s. |
long |
longValue()
Returns the value of the specified object as a long . |
int |
rank()
Returns the specified object's rank. |
int[] |
shape()
Returns the specified object's shape. |
short[] |
shortarrayValue()
Returns the value of the specified object as an array of short s. |
short |
shortValue()
Returns the value of the specified object as a short . |
java.lang.String[] |
stringarrayValue()
Returns the value of the specified object as an array of String s. |
java.lang.String |
stringValue()
Returns the value of the specified object as a String . |
int |
type()
Returns the data type of the specified object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CDWRTB
public static final int CDWRTI
public static final int CDWRTR
public static final int CDWRTJ
public static final int CDWRTC
public static final int CDWRTD
public static final int CDWRTA
public static final int CDWRTG
Constructor Detail |
public Apl2object(Apl2interp Apl2interp, boolean Value) throws Apl2exception
boolean
value.
Apl2interp
- APL2 interpreter in which to create objectValue
- Boolean value from which to create objectpublic Apl2object(Apl2interp Apl2interp, byte Value) throws Apl2exception
byte
value.
Apl2interp
- APL2 interpreter in which to create objectValue
- byte value from which to create objectpublic Apl2object(Apl2interp Apl2interp, char Value) throws Apl2exception
char
value.
Apl2interp
- APL2 interpreter in which to create objectValue
- char value from which to create objectpublic Apl2object(Apl2interp Apl2interp, double Value) throws Apl2exception
double
value.
Apl2interp
- APL2 interpreter in which to create objectValue
- double value from which to create objectpublic Apl2object(Apl2interp Apl2interp, float Value) throws Apl2exception
float
value.
Apl2interp
- APL2 interpreter in which to create objectValue
- float value from which to create objectpublic Apl2object(Apl2interp Apl2interp, int Value) throws Apl2exception
int
value.
Apl2interp
- APL2 interpreter in which to create objectValue
- int value from which to create objectpublic Apl2object(Apl2interp Apl2interp, long Value) throws Apl2exception
long
value.
Apl2interp
- APL2 interpreter in which to create objectValue
- long value from which to create objectpublic Apl2object(Apl2interp Apl2interp, short Value) throws Apl2exception
short
value.
Apl2interp
- APL2 interpreter in which to create objectValue
- short value from which to create objectpublic Apl2object(Apl2interp Apl2interp, java.lang.String Value) throws Apl2exception
String
value.
Apl2interp
- APL2 interpreter in which to create objectValue
- String value from which to create objectpublic Apl2object(Apl2interp Apl2interp, java.lang.Object Value) throws Apl2exception
Apl2interp
- APL2 interpreter in which to create objectValue
- Object from which to create objectpublic Apl2object(Apl2interp Apl2interp, java.lang.Object Value, boolean Global) throws Apl2exception
Apl2interp
- APL2 interpreter in which to create objectValue
- Object from which to create objectGlobal
- Boolean must be truepublic Apl2object(Apl2interp Apl2interp, Apl2cdr Value) throws Apl2exception
Apl2interp
- APL2 interpreter in which to create objectValue
- Apl2cdr Object from which to create workspace objectMethod Detail |
public Apl2interp GetApl2interp()
public void Free() throws Apl2exception
Apl2exception
public int type() throws Apl2exception
Apl2exception
public int rank() throws Apl2exception
Apl2exception
public int[] shape() throws Apl2exception
Apl2exception
public boolean booleanValue() throws Apl2exception
boolean
.
Apl2exception
public byte byteValue() throws Apl2exception
byte
.
Apl2exception
public char charValue() throws Apl2exception
char
.
Apl2exception
public double doubleValue() throws Apl2exception
double
.
Apl2exception
public float floatValue() throws Apl2exception
float
.
Apl2exception
public int intValue() throws Apl2exception
int
.
Apl2exception
public long longValue() throws Apl2exception
long
.
Apl2exception
public short shortValue() throws Apl2exception
short
.
Apl2exception
public java.lang.String stringValue() throws Apl2exception
String
.
Apl2exception
public boolean[] booleanarrayValue() throws Apl2exception
boolean
s.
Apl2exception
public byte[] bytearrayValue() throws Apl2exception
byte
s.
Apl2exception
public char[] chararrayValue() throws Apl2exception
char
s.
Apl2exception
public double[] doublearrayValue() throws Apl2exception
double
s.
Apl2exception
public float[] floatarrayValue() throws Apl2exception
float
s.
Apl2exception
public int[] intarrayValue() throws Apl2exception
int
s.
Apl2exception
public long[] longarrayValue() throws Apl2exception
long
s.
Apl2exception
public short[] shortarrayValue() throws Apl2exception
short
s.
Apl2exception
public java.lang.String[] stringarrayValue() throws Apl2exception
String
s.
Apl2exception
public Apl2cdr cdrValue() throws Apl2exception
Apl2exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |