import {CompositePrinterParser} from 'js-joda/src/format/parser/CompositePrinterParser.js'
CompositePrinterParser
Constructor Summary
Public Constructor | ||
public |
constructor(printerParsers: *, optional: *) |
Method Summary
Public Methods | ||
public |
parse(context: *, text: *, position: *): * |
|
public |
|
|
public |
toString(): * |
|
public |
withOptional(optional: boolean): CompositePrinterParser Returns a copy of this printer-parser with the optional flag changed. |
Public Constructors
public constructor(printerParsers: *, optional: *) source
Params:
Name | Type | Attribute | Description |
printerParsers | * | ||
optional | * |
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 withOptional(optional: boolean): CompositePrinterParser source
Returns a copy of this printer-parser with the optional flag changed.
Params:
Name | Type | Attribute | Description |
optional | boolean | the optional flag to set in the copy |