|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jzos.fields.DatatypeFactory
com.ibm.jzos.fields.AssemblerDatatypeFactory
public class AssemblerDatatypeFactory
Concrete implementation of DatatypeFactory
with Assembler Field
related factory methods.
A running offset to the next field is maintained, along with a
stack which can be used to push and pop the current Field offset.
A DatatypeFactory is typically used to statically initialize static
Field variables in a Java class which maps a record described by a byte array.
For an example, see Format1DSCB
.
DatatypeFactory
Field Summary |
---|
Fields inherited from class com.ibm.jzos.fields.DatatypeFactory |
---|
maximumOffset, offset, stringEncoding, stringTrimDefault |
Constructor Summary | |
---|---|
AssemblerDatatypeFactory()
|
Method Summary | |
---|---|
BinaryAsIntField |
getBinaryAsIntField(int length,
boolean signed)
Construct and return a BinaryAsIntField, advancing the current offset by its byte length. |
BinaryAsLongField |
getBinaryAsLongField(int length,
boolean signed)
Construct and return a BinaryAsLongField, advancing the current offset by its byte length. |
Field |
getBinaryField(int length,
boolean signed)
Construct and return either a BinaryAsIntField or a BinaryAsLongField, depending on the length. |
IbmDoubleField |
getIbmDoubleField()
Construct and return an IbmDoubleField. |
IbmFloatField |
getIbmFloatField()
Construct and return an IbmFloatField. |
PackedDecimalAsBigDecimalField |
getPackedDecimalAsBigDecimalField(int length,
int scale,
boolean signed)
Construct and return a PackedDecimalAsBigDecimalField, advancing the current offset by its byte length. |
PackedDecimalAsBigIntegerField |
getPackedDecimalAsBigIntegerField(int length,
int scale,
boolean signed)
Construct and return a PackedDecimalAsBigIntegerField, advancing the current offset by its byte length. |
PackedDecimalAsIntField |
getPackedDecimalAsIntField(int length,
boolean signed)
Construct and return a PackedDecimalAsIntField, advancing the current offset by its byte length. |
PackedDecimalAsLongField |
getPackedDecimalAsLongField(int length,
boolean signed)
Construct and return a PackedDecimalAsLongField, advancing the current offset by its byte length. |
Field |
getPackedDecimalField(int length,
int scale,
boolean signed)
Construct and return either a packed decimal Field, depending on the length and scale requested. |
Field |
getZonedDecimalField(int length,
int scale,
boolean signed)
Construct and return either a zoned decimal Field, depending on the length and scale requested. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssemblerDatatypeFactory()
Method Detail |
---|
public BinaryAsLongField getBinaryAsLongField(int length, boolean signed)
length
- int the length of the field in bytessigned
- boolean true if the field is signed, false if unsigned.
BinaryAsLongField
public BinaryAsIntField getBinaryAsIntField(int length, boolean signed)
length
- int the length of the field in bytessigned
- boolean true if the field is signed, false if unsigned.
BinaryAsIntField
public Field getBinaryField(int length, boolean signed)
length
- int the length of the field in bytessigned
- boolean true if the field is signed, false if unsigned.
BinaryAsIntField
,
BinaryAsLongField
public Field getPackedDecimalField(int length, int scale, boolean signed)
length
- int the length of the field in bytesscale
- int the number of digits to the right of the decimal pointsigned
- boolean true if the field is signed, false if unsigned.
PackedDecimalAsIntField
,
PackedDecimalAsLongField
,
PackedDecimalAsBigIntegerField
,
PackedDecimalAsBigDecimalField
public PackedDecimalAsBigDecimalField getPackedDecimalAsBigDecimalField(int length, int scale, boolean signed)
length
- the size of the field in bytesscale
- the number of implied decimal digits to the right of the decimal pointsigned
- boolean true if the value is signed
PackedDecimalAsBigDecimalField.PackedDecimalAsBigDecimalField(int, int, int, boolean)
public PackedDecimalAsBigIntegerField getPackedDecimalAsBigIntegerField(int length, int scale, boolean signed)
length
- the size of the field in bytesscale
- the number of implied decimal digits to the right of the decimal pointsigned
- boolean true if the value is signed
PackedDecimalAsBigIntegerField.PackedDecimalAsBigIntegerField(int, int, int, boolean)
public PackedDecimalAsIntField getPackedDecimalAsIntField(int length, boolean signed)
length
- the size of the field in bytessigned
- boolean true if the value is signed
PackedDecimalAsIntField.PackedDecimalAsIntField(int, int, boolean)
public PackedDecimalAsLongField getPackedDecimalAsLongField(int length, boolean signed)
length
- the size of the field in bytessigned
- boolean true if the value is signed
PackedDecimalAsLongField.PackedDecimalAsLongField(int, int, boolean)
public Field getZonedDecimalField(int length, int scale, boolean signed)
length
- int the length of the field in bytesscale
- int the number of digits to the right of the decimal pointsigned
- boolean true if the field is signed, false if unsigned.
ExternalDecimalAsIntField
,
ExternalDecimalAsLongField
,
ExternalDecimalAsBigIntegerField
,
ExternalDecimalAsBigDecimalField
public IbmFloatField getIbmFloatField()
public IbmDoubleField getIbmDoubleField()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |