This class is used during parsing to collect the data. Part of the parsing process involves handling optional blocks and multiple copies of the data get created to support the necessary backtracking.
Once parsing is completed, this class can be used as the resultant TemporalAccessor.
In most cases, it is only exposed once the fields have been resolved.
Implementation Specification
This class is a mutable context intended for use from a single thread. Usage of the class is thread-safe within standard parsing as a new instance of this class is automatically created for each parse and parsing is single-threaded
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Chronology | chrono
The parsed chronology. |
| private ChronoLocalDate | date
The resolved date. |
| pack-priv DateTimeFormatterBuilder. | dayPeriod
The parsed day period. |
| pack-priv Period | excessDays
The excess period from time-only parsing. |
| pack-priv final Map | fieldValues
The parsed fields. |
| pack-priv boolean | leapSecond
Whether a leap-second is parsed. |
| private ResolverStyle | resolverStyle
The resolver style to use. |
| private LocalTime | time
The resolved time. |
| pack-priv ZoneId | zone
The parsed zone. |
| pack-priv int | zoneNameType
The parsed zone name type. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Parsed | |
| private void | |
| private void | |
| public long | getLong(TemporalField field)
Implements java. Gets the value of the specified field as a |
| public boolean | isSupported(TemporalField field)
Implements java. Checks if the specified field is supported. |
| public <R> R | query(TemporalQuery<R> query)
Overrides default java. Queries this date-time. |
| pack-priv TemporalAccessor | Returns: this, for method chainingthe resolver style, not null resolverStyle, Set<TemporalField> the fields to use for resolving, null for all fields resolverFields)Resolves the fields in this context. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public String | |
| private void | |
| private void | |
| private void |
| chrono | back to summary |
|---|---|
| pack-priv Chronology chrono The parsed chronology. | |
| date | back to summary |
|---|---|
| private ChronoLocalDate date The resolved date. | |
| dayPeriod | back to summary |
|---|---|
| pack-priv DateTimeFormatterBuilder. The parsed day period. | |
| excessDays | back to summary |
|---|---|
| pack-priv Period excessDays The excess period from time-only parsing. | |
| fieldValues | back to summary |
|---|---|
| pack-priv final Map<TemporalField, Long> fieldValues The parsed fields. | |
| leapSecond | back to summary |
|---|---|
| pack-priv boolean leapSecond Whether a leap-second is parsed. | |
| resolverStyle | back to summary |
|---|---|
| private ResolverStyle resolverStyle The resolver style to use. | |
| time | back to summary |
|---|---|
| private LocalTime time The resolved time. | |
| zone | back to summary |
|---|---|
| pack-priv ZoneId zone The parsed zone. | |
| zoneNameType | back to summary |
|---|---|
| pack-priv int zoneNameType The parsed zone name type. | |
| Parsed | back to summary |
|---|---|
| pack-priv Parsed() Creates an instance. | |
| copy | back to summary |
|---|---|
| pack-priv Parsed copy() Creates a copy. | |
| crossCheck | back to summary |
|---|---|
| private void crossCheck() | |
| crossCheck | back to summary |
|---|---|
| private void crossCheck(TemporalAccessor target) | |
| getLong | back to summary |
|---|---|
| public long getLong(TemporalField field) Implements java. Doc from java. Gets the value of the specified field as a This queries the date-time for the value of the specified field. The returned value may be outside the valid range of values for the field. If the date-time cannot return the value, because the field is unsupported or for some other reason, an exception will be thrown.
| |
| isSupported | back to summary |
|---|---|
| public boolean isSupported(TemporalField field) Implements java. Doc from java. Checks if the specified field is supported.
This checks if the date-time can be queried for the specified field.
If false, then calling the
| |
| query | back to summary |
|---|---|
| public <R> R query(TemporalQuery<R> query) Overrides default java. Doc from java. Queries this date-time. This queries this date-time using the specified query strategy object. Queries are a key tool for extracting information from date-times. They exists to externalize the process of querying, permitting different approaches, as per the strategy design pattern. Examples might be a query that checks if the date is the day before February 29th in a leap year, or calculates the number of days to your next birthday.
The most common query implementations are method references, such as
| |
| resolve | back to summary |
|---|---|
| pack-priv TemporalAccessor resolve(ResolverStyle resolverStyle, Set<TemporalField> resolverFields) Resolves the fields in this context.
| |
| resolveDateFields | back to summary |
|---|---|
| private void resolveDateFields() | |
| resolveFields | back to summary |
|---|---|
| private void resolveFields() | |
| resolveFractional | back to summary |
|---|---|
| private void resolveFractional() | |
| resolveInstant | back to summary |
|---|---|
| private void resolveInstant() | |
| resolveInstantFields | back to summary |
|---|---|
| private void resolveInstantFields() | |
| resolveInstantFields0 | back to summary |
|---|---|
| private void resolveInstantFields0(ZoneId selectedZone) | |
| resolvePeriod | back to summary |
|---|---|
| private void resolvePeriod() | |
| resolveTime | back to summary |
|---|---|
| private void resolveTime(long hod, long moh, long som, long nos) | |
| resolveTimeFields | back to summary |
|---|---|
| private void resolveTimeFields() | |
| resolveTimeLenient | back to summary |
|---|---|
| private void resolveTimeLenient() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| updateCheckConflict | back to summary |
|---|---|
| private void updateCheckConflict(TemporalField targetField, TemporalField changeField, Long changeValue) | |
| updateCheckConflict | back to summary |
|---|---|
| private void updateCheckConflict(ChronoLocalDate cld) | |
| updateCheckConflict | back to summary |
|---|---|
| private void updateCheckConflict(LocalTime timeToSet, Period periodToSet) | |