|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpobs.PParser
pobs.parser.POptional
Matches succesful always, the length of the match is zero when the specified
parser fails or the length of the specified parsers' succesful match.
BNF: this := parser?
Constructor Summary | |
POptional(PObject parser)
Sole constructor. |
Method Summary | |
PMatch |
parse(PScanner input,
long begin,
PContext context)
|
Methods inherited from class pobs.PParser |
addControl, getErrorInfo, process, setErrorInfo, setMatchAction, setMismatchAction |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public POptional(PObject parser)
parser
- a parserMethod Detail |
public PMatch parse(PScanner input, long begin, PContext context)
input
- Input to be parsed.begin
- Index of first character of input
to be parsed.context
- Parsing context.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |