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

CompositePrinterParser

Constructor Summary

Public Constructor
public

constructor(printerParsers: *, optional: *)

Method Summary

Public Methods
public

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

public

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

public

toString(): *

public

Returns a copy of this printer-parser with the optional flag changed.

Public Constructors

public constructor(printerParsers: *, optional: *) source

Params:

NameTypeAttributeDescription
printerParsers *
optional *

Public Methods

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

Return:

*

public withOptional(optional: boolean): CompositePrinterParser source

Returns a copy of this printer-parser with the optional flag changed.

Params:

NameTypeAttributeDescription
optional boolean

the optional flag to set in the copy

Return:

CompositePrinterParser

the new printer-parser, not null