import {DateTimeParseContext} from 'js-joda/src/format/DateTimeParseContext.js'DateTimeParseContext
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
charEquals(ch1: *, ch2: *): * Helper to compare two {@code char}. |
|
| public |
charEqualsIgnoreCase(c1: *, c2: *): * Compares two characters ignoring case. |
|
| public |
copy(): * Creates a copy of this context. |
|
| public |
currentParsed(): * |
|
| public |
endOptional(successful: boolean) Ends the parsing of an optional segment of the input. |
|
| public |
Gets the effective chronology during parsing. |
|
| public |
getParsed(field: *): * |
|
| public |
isCaseSensitive(): * Checks if parsing is case sensitive. |
|
| public |
isStrict(): * |
|
| public |
setCaseSensitive(caseSensitive: *) Sets whether the parsing is case sensitive or not. |
|
| public |
setParsedField(field: *, value: *, errorPos: *, successPos: *): * |
|
| public |
Stores the leap second. |
|
| public |
setParsedZone(zone: ZoneId) Stores the parsed zone. |
|
| public |
setStrict(strict: *) |
|
| public |
Starts the parsing of an optional segment of the input. |
|
| public |
subSequenceEquals(cs1: *, offset1: *, cs2: *, offset2: *, length: *): * Helper to compare two {@code CharSequence} instances. |
|
| public |
symbols(): * |
|
| public |
toParsed(): * |
|
Public Constructors
public constructor source
Public Methods
public charEquals(ch1: *, ch2: *): * source
Helper to compare two {@code char}. This uses {@link #isCaseSensitive()}.
Params:
| Name | Type | Attribute | Description |
| ch1 | * | the first character |
|
| ch2 | * | the second character |
Return:
| * | true if equal |
public charEqualsIgnoreCase(c1: *, c2: *): * source
Compares two characters ignoring case.
Params:
| Name | Type | Attribute | Description |
| c1 | * | the first |
|
| c2 | * | the second |
Return:
| * | true if equal |
public endOptional(successful: boolean) source
Ends the parsing of an optional segment of the input.
Params:
| Name | Type | Attribute | Description |
| successful | boolean | whether the optional segment was successfully parsed |
public getEffectiveChronology(): * source
Gets the effective chronology during parsing.
Return:
| * | the effective parsing chronology, not null |
public isCaseSensitive(): * source
Checks if parsing is case sensitive.
Return:
| * | true if parsing is case sensitive, false if case insensitive |
public setCaseSensitive(caseSensitive: *) source
Sets whether the parsing is case sensitive or not.
Params:
| Name | Type | Attribute | Description |
| caseSensitive | * | changes the parsing to be case sensitive or not from now on |
public setParsedField(field: *, value: *, errorPos: *, successPos: *): * source
Params:
| Name | Type | Attribute | Description |
| field | * | ||
| value | * | ||
| errorPos | * | ||
| successPos | * |
Return:
| * |
public setParsedZone(zone: ZoneId) source
Stores the parsed zone.
This stores the zone that has been parsed. No validation is performed other than ensuring it is not null.
Params:
| Name | Type | Attribute | Description |
| zone | ZoneId | the parsed zone, not null |
public setStrict(strict: *) source
Params:
| Name | Type | Attribute | Description |
| strict | * |
public subSequenceEquals(cs1: *, offset1: *, cs2: *, offset2: *, length: *): * source
Helper to compare two {@code CharSequence} instances. This uses {@link #isCaseSensitive()}.
Params:
| Name | Type | Attribute | Description |
| cs1 | * | the first character sequence, not null |
|
| offset1 | * | the offset into the first sequence, valid |
|
| cs2 | * | the second character sequence, not null |
|
| offset2 | * | the offset into the second sequence, valid |
|
| length | * | the length to check, valid |
Return:
| * | true if equal |