All Downloads are FREE. Search and download functionalities are using the official Maven repository.

persistence.antlr.ExceptionSpec Maven / Gradle / Ivy

The newest version!
package persistence.antlr;

/* ANTLR Translator Generator
 * Project led by Terence Parr at http://www.jGuru.com
 * Software rights: http://www.antlr.org/license.html
 *
 * $Id: ExceptionSpec.java,v 1.1 2006/02/08 21:30:47 tware Exp $
 */

import persistence.antlr.collections.impl.Vector;

class ExceptionSpec {
    // Non-null if this refers to a labeled rule
    // Use a token instead of a string to get the line information
    protected Token label;

    // List of ExceptionHandler (catch phrases)
    protected Vector handlers;


    public ExceptionSpec(Token label_) {
        label = label_;
        handlers = new Vector();
    }

    public void addHandler(ExceptionHandler handler) {
        handlers.appendElement(handler);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy