ANTLRErrorStrategy.recoverInline

This method is called when an unexpected symbol is encountered during an inline match operation, such as {@link Parser#match}. If the error strategy successfully recovers from the match failure, this method returns the {@link Token} instance which should be treated as the successful result of the match.

<p>This method handles the consumption of any tokens - the caller should <b>not</b> call {@link Parser#consume} after a successful recovery.</p>

<p>Note that the calling code will not report an error if this method returns successfully. The error strategy implementation is responsible for calling {@link Parser#notifyErrorListeners} as appropriate.</p>

@param recognizer the parser instance @throws RecognitionException if the error strategy was not able to recover from the unexpected input symbol

interface ANTLRErrorStrategy
recoverInline

Meta