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:
1.1
Version:
$Id: ParsingErrorReporter.java 1383 2011-02-10 11:22:29Z michael.bedward $
Author:
Michael Bedward

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

Method Detail

addError

void addError(String errorText)
Handles an error message.

Parameters:
errorText - the error

clear

void clear()
Clears all previous messages.


getErrors

List<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 © 2009-2011. All Rights Reserved.