KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > antlr > ExceptionHandler


1 package antlr;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/RIGHTS.html
6  *
7  * $Id: //depot/code/org.antlr/main/main/antlr/ExceptionHandler.java#5 $
8  */

9
10 class ExceptionHandler {
11     // Type of the ANTLR exception class to catch and the variable decl
12
protected Token exceptionTypeAndName;
13     // The action to be executed when the exception is caught
14
protected Token action;
15
16
17     public ExceptionHandler(Token exceptionTypeAndName_,
18                             Token action_) {
19         exceptionTypeAndName = exceptionTypeAndName_;
20         action = action_;
21     }
22 }
23
Popular Tags