01: package persistence.antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.jGuru.com
05: * Software rights: http://www.antlr.org/license.html
06: *
07: */
08:
09: import persistence.antlr.collections.impl.Vector;
10:
11: class ExceptionSpec {
12: // Non-null if this refers to a labeled rule
13: // Use a token instead of a string to get the line information
14: protected Token label;
15:
16: // List of ExceptionHandler (catch phrases)
17: protected Vector handlers;
18:
19: public ExceptionSpec(Token label_) {
20: label = label_;
21: handlers = new Vector();
22: }
23:
24: public void addHandler(ExceptionHandler handler) {
25: handlers.appendElement(handler);
26: }
27: }
|