
jaitools.jiffle.parser.ParsingErrorReporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt-jiffle Show documentation
Show all versions of jt-jiffle Show documentation
Jiffle is a raster algebra language that can be used to
create new images from logical and mathematical expressions involving
source images and user defined variables. It is intended to let users
concentrate on algorithms rather than tedious boiler-plate code.
The newest version!
/*
* Copyright 2009-2011 Michael Bedward
*
* This file is part of jai-tools.
*
* jai-tools is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* jai-tools is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with jai-tools. If not, see .
*
*/
package jaitools.jiffle.parser;
import java.util.List;
/**
* 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.
*
* @author Michael Bedward
* @since 1.1
* @version $Id: ParsingErrorReporter.java 1383 2011-02-10 11:22:29Z michael.bedward $
*/
public interface ParsingErrorReporter {
/**
* Handles an error message.
*
* @param errorText the error
*/
void addError(String errorText);
/**
* Clears all previous messages.
*/
void clear();
/**
* Gets the error messages.
*
* @return error messages
*/
List getErrors();
/**
* Gets the number of errorss that have been handled.
*
* @return number of errors
*/
int getNumErrors();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy