public class SettableParser extends DelegateParser
delegate| Constructor | Description |
|---|---|
SettableParser(Parser delegate) |
| Modifier and Type | Method | Description |
|---|---|---|
SettableParser |
copy() |
Returns a shallow copy of the receiver.
|
Parser |
get() |
Return the current referred parser.
|
void |
set(Parser delegate) |
Replace the current referred parser with a new
delegate. |
static SettableParser |
undefined() |
Constructs a
SettableParser that currently refers to an FailureParser. |
static SettableParser |
undefined(String message) |
|
static SettableParser |
with(Parser parser) |
Constructs a
SettableParser referring to the supplied parser. |
getChildren, parseOn, replaceclone, 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, trimpublic SettableParser(Parser delegate)
public static SettableParser undefined()
SettableParser that currently refers to an FailureParser.public static SettableParser undefined(String message)
public static SettableParser with(Parser parser)
SettableParser referring to the supplied parser.public Parser get()
public void set(Parser delegate)
delegate.public SettableParser copy()
Parsercopy in class DelegateParserCopyright © 2018 PetitParser. All rights reserved.