exceptionspec.java

来自「SRI international 发布的OAA框架软件」· Java 代码 · 共 30 行

JAVA
30
字号
package antlr_oaa;

/* ANTLR Translator Generator
 * Project led by Terence Parr at http://www.jGuru.com
 * Software rights: http://www.antlr.org/RIGHTS.html
 *
 * $Id: ExceptionSpec.java,v 1.1 2002/11/08 17:38:05 agno Exp $
 */

import antlr_oaa.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);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?