ExceptionSpec.java
上传用户:afrynkmhm
上传日期:2007-01-06
资源大小:1262k
文件大小:1k
- package antlr;
- /* ANTLR Translator Generator
- * Project led by Terence Parr at http://www.jGuru.com
- * Software rights: http://www.antlr.org/RIGHTS.html
- *
- * $Id: //depot/code/org.antlr/release/antlr-2.7.0/antlr/ExceptionSpec.java#1 $
- */
- import 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);
- }
- }