Class DefaultInvalidInputErrorFormatter
java.lang.Object
org.parboiled.errors.DefaultInvalidInputErrorFormatter
- All Implemented Interfaces:
Formatter<InvalidInputError>
public class DefaultInvalidInputErrorFormatter
extends Object
implements Formatter<InvalidInputError>
A
Formatter for InvalidInputErrors that automatically creates the correct "expected" text
for the error.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(InvalidInputError error) Create a string representation for the given object.String[]Gets the labels corresponding to the given matcher, AnyOfMatchers are treated specially in that their label is constructed as a list of their contents
-
Constructor Details
-
DefaultInvalidInputErrorFormatter
public DefaultInvalidInputErrorFormatter()
-
-
Method Details
-
format
Description copied from interface:FormatterCreate a string representation for the given object.- Specified by:
formatin interfaceFormatter<InvalidInputError>- Parameters:
error- the object to format- Returns:
- a string describing the object
-
getExpectedString
-
getLabels
-
join
-