public abstract class PredictiveRecognizer extends java.lang.Object implements Recognizer
Recognizer.Continuation, Recognizer.Success
Constructor and Description |
---|
PredictiveRecognizer() |
Modifier and Type | Method and Description |
---|---|
void |
recognize(BacktrackScanner inp,
Recognizer.Continuation cont)
For each possible way of recognizing the input, advance
inp
past the point where the input is recognized and invoke cont . |
public void recognize(BacktrackScanner inp, Recognizer.Continuation cont) throws Recognizer.Success
Recognizer
inp
past the point where the input is recognized and invoke cont
.
If the continuation throws Success
, leave the input position
where it is and throw the same exception to the caller.recognize
in interface Recognizer
Recognizer.Success