org.jaitools.jiffle.parser
Interface ParsingErrorReporter

All Known Implementing Classes:
DeferredErrorReporter, NullErrorReporter

public interface ParsingErrorReporter

Defines methods to intercept parsing error messages. This is used by the Jiffle compiler to capture ANTLR error messages as distinct from errors defined by Jiffle.

Since:
0.1
Version:
$Id: ParsingErrorReporter.java 1653 2011-06-16 10:23:02Z michael.bedward $
Author:
Michael Bedward

Method Summary
 void addError(java.lang.String errorText)
          Handles an error message.
 void clear()
          Clears all previous messages.
 java.util.List<java.lang.String> getErrors()
          Gets the error messages.
 int getNumErrors()
          Gets the number of errorss that have been handled.
 

Method Detail

addError

void addError(java.lang.String errorText)
Handles an error message.

Parameters:
errorText - the error

clear

void clear()
Clears all previous messages.


getErrors

java.util.List<java.lang.String> getErrors()
Gets the error messages.

Returns:
error messages

getNumErrors

int getNumErrors()
Gets the number of errorss that have been handled.

Returns:
number of errors


Copyright © 2011. All Rights Reserved.