Package org.jparsec
Class EmptyParseError
java.lang.Object
org.jparsec.EmptyParseError
- All Implemented Interfaces:
ParseErrorDetails
Empty implementation of
ParseErrorDetails
for subclasses to override.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Returns the physical input encountered when the error happened.Returns all that are logically expected.Returns the error message incurred byParsers.fail(String)
, ornull
if none.final int
getIndex()
Returns the 0-based index in the source where the error happened.Returns what is logically unexpected, ornull
if none.
-
Field Details
-
index
private final int index -
encountered
-
-
Constructor Details
-
EmptyParseError
EmptyParseError(int index, String encountered)
-
-
Method Details
-
getEncountered
Description copied from interface:ParseErrorDetails
Returns the physical input encountered when the error happened.- Specified by:
getEncountered
in interfaceParseErrorDetails
-
getExpected
Description copied from interface:ParseErrorDetails
Returns all that are logically expected.- Specified by:
getExpected
in interfaceParseErrorDetails
-
getFailureMessage
Description copied from interface:ParseErrorDetails
Returns the error message incurred byParsers.fail(String)
, ornull
if none.- Specified by:
getFailureMessage
in interfaceParseErrorDetails
-
getIndex
public final int getIndex()Description copied from interface:ParseErrorDetails
Returns the 0-based index in the source where the error happened.- Specified by:
getIndex
in interfaceParseErrorDetails
-
getUnexpected
Description copied from interface:ParseErrorDetails
Returns what is logically unexpected, ornull
if none.- Specified by:
getUnexpected
in interfaceParseErrorDetails
-