import {NumberPrinterParser} from 'js-joda/src/format/parser/NumberPrinterParser.js'
NumberPrinterParser
Direct Subclass:
Constructor Summary
Public Constructor | ||
public |
constructor(field: *, minWidth: *, maxWidth: *, signStyle: *, subsequentWidth: *) Constructor. |
Method Summary
Public Methods | ||
public |
field(): * |
|
public |
maxWidth(): * |
|
public |
minWidth(): * |
|
public |
parse(context: *, text: *, position: *): * |
|
public |
|
|
public |
signStyle(): * |
|
public |
toString(): * |
|
public |
withFixedWidth(): * |
|
public |
withSubsequentWidth(subsequentWidth: *): * |
Public Constructors
public constructor(field: *, minWidth: *, maxWidth: *, signStyle: *, subsequentWidth: *) source
Constructor.
Params:
Name | Type | Attribute | Description |
field | * | the field to print, not null |
|
minWidth | * | the minimum field width, from 1 to 19 |
|
maxWidth | * | the maximum field width, from minWidth to 19 |
|
signStyle | * | the positive/negative sign style, not null |
|
subsequentWidth | * | the width of subsequent non-negative numbers, 0 or greater, -1 if fixed width due to active adjacent parsing |
Public Methods
public parse(context: *, text: *, position: *): * source
Params:
Name | Type | Attribute | Description |
context | * | ||
text | * | ||
position | * |
Return:
* |
public print(context: *, buf: *): boolean source
Params:
Name | Type | Attribute | Description |
context | * | ||
buf | * |
public withSubsequentWidth(subsequentWidth: *): * source
Params:
Name | Type | Attribute | Description |
subsequentWidth | * |
Return:
* |