public interface ICobolVar extends CobValue
| Modifier and Type | Field and Description |
|---|---|
static int |
LIKE_L_TRIM |
static int |
LIKE_NOT_CS |
static int |
LIKE_R_TRIM |
static int |
LIKE_TRIM |
| Modifier and Type | Method and Description |
|---|---|
String |
basicToString()
for internal use only
|
int |
compare(ICobolVar other)
compares this variable with the one specified by
other |
int |
compareTo(CobolNum val)
for internal use only
|
void |
dynSet(ICobolVar src)
for internal use only
|
boolean |
existsDynamicElement(int[] idxs)
for internal use only
|
byte[] |
getBytes()
returns the bytes contained in the memory buffer
|
void |
getBytes(byte[] dest,
int len)
writes the bytes contained in the memory buffer in the array specified by
dest |
Enumeration |
getChildren()
if the variable is a group-item, returns an Enumeration of the child variables or an empty Enumeration otherwise
|
int |
getDependingDelta()
for internal use only
|
ICobolVar |
getDependingOn()
for internal use only
|
int[] |
getDimensions()
if the variable is a table, it returns an int array with its dimensions, or null otherwise
|
int |
getDynamicCapacity(int[] idxs)
for internal use only
|
int |
getDynamicCapacity(int[] idxs,
boolean recur)
for internal use only
|
ICobolVar |
getIParent()
if the variable is a sub-item, it returns its parent, or null otherwise
|
IXMLAttributes |
getIXMLAttributes()
returns the XML attributes associated to this variable
|
int |
getLastDimension()
for internal use only
|
int |
getLength()
returns the variable length
if the variable contains an OCCURS DEPENDING, it returns the length considering the current value of the DEPENDING ON variable if the variable is in the LINKAGE SECTION and it is not linked, it returns 0 |
int |
getMaxDimension()
for internal use only
|
int |
getMaxLength()
returns the variable length
if the variable contains an OCCURS DEPENDING, it returns the maximum possible length |
int |
getMemoryLength()
returns the length of the memory buffer currently associated to the variable
if the variable is a sub-item, it returns the length of the memory of the 01 level if the variable is in the LINKAGE SECTION, it returns the length of the memory of the linked variable, or 0 if it is not linked |
String |
getName()
returns the cobol name of the variable
|
int |
getOffset()
if the variable is a sub-item, it returns its offset in the group-item, or 0 otherwise
|
Object |
getOId()
for internal use only
|
Enumeration |
getRedefines()
if the variable is a group-item, returns an Enumeration of the REDEFINES variables contained in this group-item or an empty Enumeration otherwise
|
int |
getType()
for internal use only
|
boolean |
hasDynamicData()
returns true if
isDynamicLength() returns true and at least one
dynamic variable has a length greater than 0. |
void |
initialize(int[] categories,
ICobolVar[] src,
boolean withFiller)
for internal use only
|
ICobolVar |
intIAt(int i)
for internal use only
|
ICobolVar |
intIAt(int[] i)
for internal use only
|
ICobolVar |
intIAtNoClone(int[] i)
for internal use only
|
ICobolVar |
intICopy()
for internal use only
|
ICobolVar |
intIOffs(int newOffset)
for internal use only
|
ICobolVar |
intISub(int start)
for internal use only
|
ICobolVar |
intISub(int start,
int subLen)
for internal use only
|
boolean |
isDecimalPointComma()
returns true if the decimal point is ','
|
boolean |
isDynamicLength()
returns true if the variable is a group-item and it contains OCCURS DYNAMIC or ANY LENGTH variables
|
boolean |
isFinal()
returns true if the variable represents a constant, false otherwise
|
boolean |
isInDynamicTable()
for internal use only
|
int |
length()
returns the variable length
if the variable contains an OCCURS DEPENDING, it returns the length considering the current value of the DEPENDING ON variable |
ICobolVar |
link(ICobolVar v)
for internal use only
|
ICobolVar |
moveTo(ICobolVar dst)
writes the value of this variable into the variable specified by
dst |
ICobolVar |
moveTo(INumericVar dst)
writes the value of this variable into the variable specified by
dst |
ICobolVar |
moveTo(IPicNumEdit dst)
writes the value of this variable into the variable specified by
dst |
boolean |
set(boolean value)
sets the value of the variable with the specified boolean, the boolean will be converted in bytes before writing it in the memory buffer
|
boolean |
set(byte value)
sets the value of the variable with the specified byte
|
boolean |
set(byte[] src)
writes the bytes specified by
src in the memory buffer |
boolean |
set(byte[] src,
int srcStart,
int srcLen,
boolean filling)
writes the bytes specified by
src in the memory buffer |
boolean |
set(char value)
sets the value of the variable with the specified char, the char will be converted in bytes before writing it in the memory buffer
|
boolean |
set(CobolNum value)
sets the value of the variable with the specified CobolNum, the CobolNum will be converted in bytes before writing it in the memory buffer
|
boolean |
set(double value)
sets the value of the variable with the specified double, the double will be converted in bytes before writing it in the memory buffer
|
boolean |
set(float value)
sets the value of the variable with the specified float, the float will be converted in bytes before writing it in the memory buffer
|
boolean |
set(int value)
sets the value of the variable with the specified int, the int will be converted in bytes before writing it in the memory buffer
|
boolean |
set(long value)
sets the value of the variable with the specified long, the long will be converted in bytes before writing it in the memory buffer
|
boolean |
set(short value)
sets the value of the variable with the specified short, the short will be converted in bytes before writing it in the memory buffer
|
boolean |
set(String value)
sets the value of the variable with the specified string, the string will be converted in bytes before writing it in the memory buffer
|
boolean |
set(String value,
boolean filling)
sets the value of the variable with the specified string, the string will be converted in bytes before writing it in the memory buffer
|
ICobolVar |
setByVal(boolean bv)
for internal use only
|
void |
setOId(Object oid)
for internal use only
|
void |
setSpace()
fills the memory buffer with spaces
|
boolean |
setUsingMaxLen(byte[] src)
for internal use only
|
void |
setValue(ICobolVar value)
for internal use only
|
boolean |
toboolean()
returns a boolean representation of this variable
|
byte |
tobyte()
returns a byte representation of this variable
|
char |
tochar()
returns a char representation of this variable
|
double |
todouble()
returns a double representation of this variable
|
float |
tofloat()
returns a float representation of this variable
|
int |
toint()
returns a int representation of this variable
|
long |
tolong()
returns a long representation of this variable
|
short |
toshort()
returns a short representation of this variable
|
String |
toStringNoGui()
for internal use only
|
ICobolVar |
xmlClone()
for internal use only
|
eval, ieval, isJustified, moveToTable, toStringstatic final int LIKE_NOT_CS
static final int LIKE_L_TRIM
static final int LIKE_R_TRIM
static final int LIKE_TRIM
boolean set(byte[] src,
int srcStart,
int srcLen,
boolean filling)
src in the memory buffersrc - the bytes to be writtensrcStart - the start offsetsrcLen - the number of bytes to be writtenfilling - specifies if the buffer must be filled with spacesboolean set(String value)
value - the string value to be writtenboolean set(String value, boolean filling)
value - the string value to be writtenfilling - specifies if the buffer must be filled with spacesboolean set(byte[] src)
src in the memory buffersrc - the bytes to be writtenboolean set(boolean value)
value - the boolean value to be writtenboolean set(byte value)
value - the byte value to be writtenboolean set(char value)
value - the char value to be writtenboolean set(short value)
value - the short value to be writtenboolean set(int value)
value - the int value to be writtenboolean set(long value)
value - the long value to be writtenboolean set(float value)
value - the float value to be writtenboolean set(double value)
value - the double value to be writtenboolean set(CobolNum value)
value - the CobolNum value to be writtenboolean setUsingMaxLen(byte[] src)
void setValue(ICobolVar value)
void setSpace()
int compare(ICobolVar other)
otherother - the variable to be comparedother.Enumeration getRedefines()
Enumeration getChildren()
boolean toboolean()
byte tobyte()
char tochar()
short toshort()
int toint()
long tolong()
float tofloat()
double todouble()
int getLength()
int length()
int getMemoryLength()
int getMaxLength()
boolean isFinal()
String basicToString()
int[] getDimensions()
int getLastDimension()
int getType()
int getOffset()
ICobolVar intIAt(int i)
ICobolVar intIAt(int[] i)
ICobolVar intIAtNoClone(int[] i)
ICobolVar intICopy()
ICobolVar intISub(int start)
ICobolVar intISub(int start, int subLen)
ICobolVar intIOffs(int newOffset)
int getMaxDimension()
ICobolVar getDependingOn()
int getDependingDelta()
void getBytes(byte[] dest,
int len)
destdest - the destination byte arraylen - the maximum number of bytes to be writtenbyte[] getBytes()
ICobolVar getIParent()
ICobolVar moveTo(ICobolVar dst)
dstdst - the destination variableICobolVar moveTo(INumericVar dst)
dstdst - the destination variableICobolVar moveTo(IPicNumEdit dst)
dstdst - the destination variableboolean isDecimalPointComma()
isDecimalPointComma in interface CobValueboolean isInDynamicTable()
boolean isDynamicLength()
boolean hasDynamicData()
isDynamicLength() returns true and at least one
dynamic variable has a length greater than 0.Object getOId()
void setOId(Object oid)
String getName()
void initialize(int[] categories,
ICobolVar[] src,
boolean withFiller)
int compareTo(CobolNum val)
IXMLAttributes getIXMLAttributes()
ICobolVar setByVal(boolean bv)
boolean existsDynamicElement(int[] idxs)
int getDynamicCapacity(int[] idxs)
int getDynamicCapacity(int[] idxs,
boolean recur)
void dynSet(ICobolVar src)
ICobolVar xmlClone()
String toStringNoGui()