|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpobs.PParser
pobs.parser.PLimit
Semantic parser which verifies if a parsed numeric (double) value is within specified, inclusive boundaries.
Constructor Summary | |
PLimit(PObject parser,
double min,
double max)
Sole constructor. |
Method Summary | |
PMatch |
parse(PScanner input,
long begin,
PContext context)
Matches if the numerical (parsed as double) data parsed by the specified parser is within the specified minimal and maximum boundaries, inclusive. |
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 PLimit(PObject parser, double min, double max)
parser
- the parser which will handle parsing the numbermin
- the lower boundarymax
- the higher boundaryMethod 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 |