T - generic type of chronological entity to be parsedpublic interface ChronoParser<T>
Interpretes a text as chronological entity.
ChronoEntity| Modifier and Type | Method and Description |
|---|---|
default AttributeQuery |
getAttributes()
Returns the global format attributes which are active if they are not
overridden by sectional attributes.
|
default T |
parse(CharSequence text)
Interpretes given text as chronological entity starting
at the begin of text.
|
default T |
parse(CharSequence text,
ParseLog status)
Interpretes given text as chronological entity starting
at the specified position in parse log.
|
T |
parse(CharSequence text,
ParseLog status,
AttributeQuery attributes)
Interpretes given text as chronological entity starting
at the specified position in parse log.
|
default T parse(CharSequence text) throws ParseException
Interpretes given text as chronological entity starting at the begin of text.
text - text to be parsedIndexOutOfBoundsException - if the text is emptyParseException - if the text is not parseabledefault T parse(CharSequence text, ParseLog status)
Interpretes given text as chronological entity starting at the specified position in parse log.
Equivalent to parse(text, status, getAttributes()).
text - text to be parsedstatus - parser information (always as new instance)null if parsing does not workIndexOutOfBoundsException - if the start position is at end of text or even behindT parse(CharSequence text, ParseLog status, AttributeQuery attributes)
Interpretes given text as chronological entity starting at the specified position in parse log.
Implementation note: Any implementation will parse the text first
at the position status.getPosition() and then set the new
position in the parse log if successful. In case of error the
error index in the parse log will be updated instead.
text - text to be parsedstatus - parser information (always as new instance)attributes - control attributesnull if parsing does not workIndexOutOfBoundsException - if the start position is at end of text or even behinddefault AttributeQuery getAttributes()
Returns the global format attributes which are active if they are not overridden by sectional attributes.
Copyright © 2014–2017. All rights reserved.