org.jaitools.jiffle.parser
Class DeferredErrorReporter

java.lang.Object
  extended by org.jaitools.jiffle.parser.DeferredErrorReporter
All Implemented Interfaces:
ParsingErrorReporter

public class DeferredErrorReporter
extends java.lang.Object
implements ParsingErrorReporter

Used by the Jiffle compiler to accumulate ANTLR parsing error messages.

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

Constructor Summary
DeferredErrorReporter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeferredErrorReporter

public DeferredErrorReporter()
Method Detail

addError

public void addError(java.lang.String errorText)
Description copied from interface: ParsingErrorReporter
Handles an error message.

Specified by:
addError in interface ParsingErrorReporter
Parameters:
errorText - the error

getNumErrors

public int getNumErrors()
Description copied from interface: ParsingErrorReporter
Gets the number of errorss that have been handled.

Specified by:
getNumErrors in interface ParsingErrorReporter
Returns:
number of errors

getErrors

public java.util.List<java.lang.String> getErrors()
Description copied from interface: ParsingErrorReporter
Gets the error messages.

Specified by:
getErrors in interface ParsingErrorReporter
Returns:
error messages

clear

public void clear()
Description copied from interface: ParsingErrorReporter
Clears all previous messages.

Specified by:
clear in interface ParsingErrorReporter


Copyright © 2011. All Rights Reserved.