Package org.jparsec
Class EmptyParseError
- java.lang.Object
-
- org.jparsec.EmptyParseError
-
- All Implemented Interfaces:
ParseErrorDetails
class EmptyParseError extends java.lang.Object implements ParseErrorDetails
Empty implementation ofParseErrorDetailsfor subclasses to override.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringencounteredprivate intindex
-
Constructor Summary
Constructors Constructor Description EmptyParseError(int index, java.lang.String encountered)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEncountered()Returns the physical input encountered when the error happened.java.util.List<java.lang.String>getExpected()Returns all that are logically expected.java.lang.StringgetFailureMessage()Returns the error message incurred byParsers.fail(String), ornullif none.intgetIndex()Returns the 0-based index in the source where the error happened.java.lang.StringgetUnexpected()Returns what is logically unexpected, ornullif none.
-
-
-
Method Detail
-
getEncountered
public final java.lang.String getEncountered()
Description copied from interface:ParseErrorDetailsReturns the physical input encountered when the error happened.- Specified by:
getEncounteredin interfaceParseErrorDetails
-
getExpected
public java.util.List<java.lang.String> getExpected()
Description copied from interface:ParseErrorDetailsReturns all that are logically expected.- Specified by:
getExpectedin interfaceParseErrorDetails
-
getFailureMessage
public java.lang.String 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
public java.lang.String getUnexpected()
Description copied from interface:ParseErrorDetailsReturns what is logically unexpected, ornullif none.- Specified by:
getUnexpectedin interfaceParseErrorDetails
-
-