Top Description Fields Constructors Methods
org.jparsec

pack-priv Class EmptyParseError

extends Object
implements ParseErrorDetails
Class Inheritance
All Implemented Interfaces
org.jparsec.error.ParseErrorDetails
Imports
java.util.Collections, .List, org.jparsec.error.ParseErrorDetails

Empty implementation of ParseErrorDetails for subclasses to override.
Author
benyu

Field Summary

Modifier and TypeField and Description
private final String
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
EmptyParseError(int index, String encountered)

Method Summary

Modifier and TypeMethod and Description
public final String
getEncountered()

Implements org.jparsec.error.ParseErrorDetails.getEncountered.

Returns the physical input encountered when the error happened.

public List<String>
getExpected()

Implements org.jparsec.error.ParseErrorDetails.getExpected.

Returns all that are logically expected.

public String
getFailureMessage()

Implements org.jparsec.error.ParseErrorDetails.getFailureMessage.

Returns the error message incurred by Parsers#fail(String), or null if none.

public final int
getIndex()

Implements org.jparsec.error.ParseErrorDetails.getIndex.

Returns the 0-based index in the source where the error happened.

public String
getUnexpected()

Implements org.jparsec.error.ParseErrorDetails.getUnexpected.

Returns what is logically unexpected, or null if none.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

encounteredback to summary
private final String encountered
indexback to summary
private final int index

Constructor Detail

EmptyParseErrorback to summary
pack-priv EmptyParseError(int index, String encountered)

Method Detail

getEncounteredback to summary
public final String getEncountered()

Implements org.jparsec.error.ParseErrorDetails.getEncountered.

Doc from org.jparsec.error.ParseErrorDetails.getEncountered.

Returns the physical input encountered when the error happened.

Annotations
@Override
getExpectedback to summary
public List<String> getExpected()

Implements org.jparsec.error.ParseErrorDetails.getExpected.

Doc from org.jparsec.error.ParseErrorDetails.getExpected.

Returns all that are logically expected.

Annotations
@Override
getFailureMessageback to summary
public String getFailureMessage()

Implements org.jparsec.error.ParseErrorDetails.getFailureMessage.

Doc from org.jparsec.error.ParseErrorDetails.getFailureMessage.

Returns the error message incurred by Parsers#fail(String), or null if none.

Annotations
@Override
getIndexback to summary
public final int getIndex()

Implements org.jparsec.error.ParseErrorDetails.getIndex.

Doc from org.jparsec.error.ParseErrorDetails.getIndex.

Returns the 0-based index in the source where the error happened.

Annotations
@Override
getUnexpectedback to summary
public String getUnexpected()

Implements org.jparsec.error.ParseErrorDetails.getUnexpected.

Doc from org.jparsec.error.ParseErrorDetails.getUnexpected.

Returns what is logically unexpected, or null if none.

Annotations
@Override