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

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
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

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

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:

NameTypeAttributeDescription
ch1 *

the first character

ch2 *

the second character

Return:

*

true if equal

public charEqualsIgnoreCase(c1: *, c2: *): * source

Compares two characters ignoring case.

Params:

NameTypeAttributeDescription
c1 *

the first

c2 *

the second

Return:

*

true if equal

public copy(): * source

Creates a copy of this context.

Return:

*

public currentParsed(): * source

Return:

*

public endOptional(successful: boolean) source

Ends the parsing of an optional segment of the input.

Params:

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

Params:

NameTypeAttributeDescription
field *

Return:

*

public isCaseSensitive(): * source

Checks if parsing is case sensitive.

Return:

*

true if parsing is case sensitive, false if case insensitive

public isStrict(): * source

Return:

*

public setCaseSensitive(caseSensitive: *) source

Sets whether the parsing is case sensitive or not.

Params:

NameTypeAttributeDescription
caseSensitive *

changes the parsing to be case sensitive or not from now on

public setParsedField(field: *, value: *, errorPos: *, successPos: *): * source

Params:

NameTypeAttributeDescription
field *
value *
errorPos *
successPos *

Return:

*

public setParsedLeapSecond() source

Stores the leap second.

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:

NameTypeAttributeDescription
zone ZoneId

the parsed zone, not null

public setStrict(strict: *) source

Params:

NameTypeAttributeDescription
strict *

public startOptional() source

Starts the parsing of an optional segment of the input.

public subSequenceEquals(cs1: *, offset1: *, cs2: *, offset2: *, length: *): * source

Helper to compare two {@code CharSequence} instances. This uses {@link #isCaseSensitive()}.

Params:

NameTypeAttributeDescription
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

public symbols(): * source

Return:

*

public toParsed(): * source

Return:

*