T - The type of the function argument.R - The type of the function result.public class ActionParser<T,R> extends DelegateParser
| Modifier and Type | Field | Description |
|---|---|---|
protected Function<T,R> |
function |
delegate| Constructor | Description |
|---|---|
ActionParser(Parser delegate,
Function<T,R> function) |
| Modifier and Type | Method | Description |
|---|---|---|
ActionParser<T,R> |
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.
|
getChildren, replaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, and, callCC, delimitedBy, end, end, flatten, hasEqualChildren, isEqualTo, isEqualTo, map, matches, matchesSkipping, neg, neg, not, not, optional, optional, or, parse, permute, pick, plus, plusGreedy, plusLazy, repeat, repeatGreedy, repeatLazy, separatedBy, seq, settable, star, starGreedy, starLazy, times, token, toString, trim, trim, trimpublic Result parseOn(Context context)
ParserparseOn in class DelegateParserprotected boolean hasEqualProperties(Parser other)
ParserhasEqualProperties in class Parserpublic ActionParser<T,R> copy()
Parsercopy in class DelegateParserCopyright © 2018 PetitParser. All rights reserved.