public class AssemblerDatatypeFactory extends DatatypeFactory
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
Constructor and Description |
---|
AssemblerDatatypeFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
getByteArrayField, getExternalDecimalAsBigDecimalField, getExternalDecimalAsBigDecimalField, getExternalDecimalAsBigIntegerField, getExternalDecimalAsBigIntegerField, getExternalDecimalAsIntField, getExternalDecimalAsIntField, getExternalDecimalAsLongField, getExternalDecimalAsLongField, getMaximumOffset, getOffset, getStringEncoding, getStringField, getStringField, getStringField, getStringField, getStringField, getStringTrimDefault, incrementOffset, popOffset, pushOffset, setOffset, setStringEncoding, setStringTrimDefault
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 signedPackedDecimalAsBigDecimalField.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 signedPackedDecimalAsBigIntegerField.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 signedPackedDecimalAsIntField.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 signedPackedDecimalAsLongField.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()