public class FailureParser extends Parser
| Modifier and Type | Method | Description |
|---|---|---|
FailureParser |
copy() |
Returns a shallow copy of the receiver.
|
protected boolean |
hasEqualProperties(Parser other) |
Compares the properties of two parsers.
|
Result |
parseOn(Context context) |
Primitive method doing the actual parsing.
|
String |
toString() |
Returns a human readable string identifying this parser.
|
static Parser |
withMessage(String message) |
Construct a
FailureParser that fails with the supplied message. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, and, callCC, delimitedBy, end, end, flatten, getChildren, hasEqualChildren, isEqualTo, isEqualTo, map, matches, matchesSkipping, neg, neg, not, not, optional, optional, or, parse, permute, pick, plus, plusGreedy, plusLazy, repeat, repeatGreedy, repeatLazy, replace, separatedBy, seq, settable, star, starGreedy, starLazy, times, token, trim, trim, trimpublic static Parser withMessage(String message)
FailureParser that fails with the supplied message.public Result parseOn(Context context)
Parserprotected boolean hasEqualProperties(Parser other)
ParserhasEqualProperties in class Parserpublic FailureParser copy()
ParserCopyright © 2018 PetitParser. All rights reserved.