ActionParser, AndParser, CompositeParser, ContinuationParser, EndOfInputParser, FlattenParser, GrammarParser, NotParser, OptionalParser, RepeatingParser, SettableParser, TokenParser, TrimmingParserpublic class DelegateParser extends Parser
| Constructor | Description |
|---|---|
DelegateParser(Parser delegate) |
| Modifier and Type | Method | Description |
|---|---|---|
DelegateParser |
copy() |
Returns a shallow copy of the receiver.
|
List<Parser> |
getChildren() |
Returns a list of directly referring parsers.
|
Result |
parseOn(Context context) |
Primitive method doing the actual parsing.
|
void |
replace(Parser source,
Parser target) |
Replaces the referring parser
source with target. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, and, callCC, delimitedBy, end, end, flatten, hasEqualChildren, hasEqualProperties, 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, trimprotected Parser delegate
public DelegateParser(Parser delegate)
public Result parseOn(Context context)
Parserpublic void replace(Parser source, Parser target)
Parsersource with target. Does nothing if the parser
does not exist.public List<Parser> getChildren()
ParsergetChildren in class Parserpublic DelegateParser copy()
ParserCopyright © 2018 PetitParser. All rights reserved.