< prev index next >
src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/ATHROW.java
Print this page
*** 19,47 ****
* limitations under the License.
*/
package com.sun.org.apache.bcel.internal.generic;
/**
* ATHROW - Throw exception
* <PRE>Stack: ..., objectref -> objectref</PRE>
*
! * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
*/
public class ATHROW extends Instruction implements UnconditionalBranch, ExceptionThrower {
/**
* Throw exception
*/
public ATHROW() {
! super(com.sun.org.apache.bcel.internal.Constants.ATHROW, (short)1);
}
/** @return exceptions this instruction may cause
*/
! public Class[] getExceptions() {
! return new Class[] { com.sun.org.apache.bcel.internal.ExceptionConstants.THROWABLE };
}
/**
* Call corresponding visitor method(s). The order is:
--- 19,53 ----
* limitations under the License.
*/
package com.sun.org.apache.bcel.internal.generic;
+ import com.sun.org.apache.bcel.internal.ExceptionConst;
/**
* ATHROW - Throw exception
* <PRE>Stack: ..., objectref -> objectref</PRE>
*
! * @version $Id: ATHROW.java 1747278 2016-06-07 17:28:43Z britter $
*/
public class ATHROW extends Instruction implements UnconditionalBranch, ExceptionThrower {
+
/**
* Throw exception
*/
public ATHROW() {
! super(com.sun.org.apache.bcel.internal.Const.ATHROW, (short) 1);
}
+
/** @return exceptions this instruction may cause
*/
! @Override
! public Class<?>[] getExceptions() {
! return new Class[] {
! ExceptionConst.THROWABLE
! };
}
/**
* Call corresponding visitor method(s). The order is:
*** 49,59 ****
* call methods according to the class hierarchy in descending order,
* i.e., the most specific visitXXX() call comes last.
*
* @param v Visitor object
*/
! public void accept(Visitor v) {
v.visitUnconditionalBranch(this);
v.visitExceptionThrower(this);
v.visitATHROW(this);
}
}
--- 55,66 ----
* call methods according to the class hierarchy in descending order,
* i.e., the most specific visitXXX() call comes last.
*
* @param v Visitor object
*/
! @Override
! public void accept( final Visitor v ) {
v.visitUnconditionalBranch(this);
v.visitExceptionThrower(this);
v.visitATHROW(this);
}
}
< prev index next >