KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > bcel > generic > ExceptionThrower


1 /*
2  * Copyright 2000-2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

17 package org.apache.bcel.generic;
18
19 /**
20  * Denote an instruction that may throw a run-time or a linking
21  * exception (or both) during execution. This is not quite the truth
22  * as such; because all instructions may throw an
23  * java.lang.VirtualMachineError. These exceptions are omitted.
24  *
25  * The Lava Language Specification specifies exactly which
26  * <i>RUN-TIME</i> and which <i>LINKING</i> exceptions each
27  * instruction may throw which is reflected by the implementers. Due
28  * to the structure of the JVM specification, it may be possible that
29  * an Instruction implementing this interface returns a Class[] of
30  * size 0.
31  *
32  * Please note that we speak of an "exception" here when we mean any
33  * "Throwable" object; so this term is equally used for "Exception"
34  * and "Error" objects.
35  *
36  * @version $Id: ExceptionThrower.java 386056 2006-03-15 11:31:56Z tcurdt $
37  * @author Enver Haase
38  */

39 public interface ExceptionThrower {
40
41     public java.lang.Class JavaDoc[] getExceptions();
42 }
43
Popular Tags