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 StringReturns the physical input encountered when the error happened.Returns all that are logically expected.Returns the error message incurred byParsers.fail(String), ornullif none.final intgetIndex()Returns the 0-based index in the source where the error happened.Returns what is logically unexpected, ornullif none.
-
Field Details
-
index
private final int index -
encountered
-
-
Constructor Details
-
EmptyParseError
EmptyParseError(int index, String encountered)
-
-
Method Details
-
getEncountered
Description copied from interface:ParseErrorDetailsReturns the physical input encountered when the error happened.- Specified by:
getEncounteredin interfaceParseErrorDetails
-
getExpected
Description copied from interface:ParseErrorDetailsReturns all that are logically expected.- Specified by:
getExpectedin interfaceParseErrorDetails
-
getFailureMessage
Description copied from interface:ParseErrorDetailsReturns the error message incurred byParsers.fail(String), ornullif none.- Specified by:
getFailureMessagein interfaceParseErrorDetails
-
getIndex
public final int getIndex()Description copied from interface:ParseErrorDetailsReturns the 0-based index in the source where the error happened.- Specified by:
getIndexin interfaceParseErrorDetails
-
getUnexpected
Description copied from interface:ParseErrorDetailsReturns what is logically unexpected, ornullif none.- Specified by:
getUnexpectedin interfaceParseErrorDetails
-