class DateTimeParserInternalParser extends java.lang.Object implements InternalParser
Modifier and Type | Field and Description |
---|---|
private DateTimeParser |
underlying |
Modifier | Constructor and Description |
---|---|
private |
DateTimeParserInternalParser(DateTimeParser underlying) |
Modifier and Type | Method and Description |
---|---|
int |
estimateParsedLength()
Returns the expected maximum number of characters consumed.
|
(package private) DateTimeParser |
getUnderlying() |
(package private) static InternalParser |
of(DateTimeParser underlying) |
int |
parseInto(DateTimeParserBucket bucket,
java.lang.CharSequence text,
int position)
Parse an element from the given text, saving any fields into the given
DateTimeParserBucket.
|
private final DateTimeParser underlying
private DateTimeParserInternalParser(DateTimeParser underlying)
static InternalParser of(DateTimeParser underlying)
DateTimeParser getUnderlying()
public int estimateParsedLength()
InternalParser
estimateParsedLength
in interface InternalParser
public int parseInto(DateTimeParserBucket bucket, java.lang.CharSequence text, int position)
InternalParser
If it fails, the return value is negative. To determine the position where the parse failed, apply the one's complement operator (~) on the return value.
parseInto
in interface InternalParser
bucket
- field are saved into this, not nulltext
- the text to parse, not nullposition
- position to start parsing from