Home Reference Source Repository
import {NumberPrinterParser} from 'js-joda/src/format/parser/NumberPrinterParser.js'
public class | source

NumberPrinterParser

Direct Subclass:

ReducedPrinterParser

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

print(context: *, buf: *): boolean

public

signStyle(): *

public

toString(): *

public
public

withSubsequentWidth(subsequentWidth: *): *

Public Constructors

public constructor(field: *, minWidth: *, maxWidth: *, signStyle: *, subsequentWidth: *) source

Constructor.

Params:

NameTypeAttributeDescription
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 field(): * source

Return:

*

public maxWidth(): * source

Return:

*

public minWidth(): * source

Return:

*

public parse(context: *, text: *, position: *): * source

Params:

NameTypeAttributeDescription
context *
text *
position *

Return:

*

public print(context: *, buf: *): boolean source

Params:

NameTypeAttributeDescription
context *
buf *

Return:

boolean

public signStyle(): * source

Return:

*

public toString(): * source

Return:

*

public withFixedWidth(): * source

Return:

*

public withSubsequentWidth(subsequentWidth: *): * source

Params:

NameTypeAttributeDescription
subsequentWidth *

Return:

*