< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/IREM.java

Print this page

        

*** 19,46 **** * limitations under the License. */ package com.sun.org.apache.bcel.internal.generic; /** * IREM - Remainder of int * <PRE>Stack: ..., value1, value2 -&gt; result</PRE> * ! * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> */ public class IREM extends ArithmeticInstruction implements ExceptionThrower { /** Remainder of ints */ public IREM() { ! super(com.sun.org.apache.bcel.internal.Constants.IREM); } /** @return exceptions this instruction may cause */ ! public Class[] getExceptions() { ! return new Class[] { com.sun.org.apache.bcel.internal.ExceptionConstants.ARITHMETIC_EXCEPTION }; } /** * Call corresponding visitor method(s). The order is: --- 19,52 ---- * limitations under the License. */ package com.sun.org.apache.bcel.internal.generic; + import com.sun.org.apache.bcel.internal.ExceptionConst; /** * IREM - Remainder of int * <PRE>Stack: ..., value1, value2 -&gt; result</PRE> * ! * @version $Id: IREM.java 1747278 2016-06-07 17:28:43Z britter $ */ public class IREM extends ArithmeticInstruction implements ExceptionThrower { + /** Remainder of ints */ public IREM() { ! super(com.sun.org.apache.bcel.internal.Const.IREM); } + /** @return exceptions this instruction may cause */ ! @Override ! public Class<?>[] getExceptions() { ! return new Class[] { ! ExceptionConst.ARITHMETIC_EXCEPTION ! }; } /** * Call corresponding visitor method(s). The order is:
*** 48,58 **** * 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.visitExceptionThrower(this); v.visitTypedInstruction(this); v.visitStackProducer(this); v.visitStackConsumer(this); v.visitArithmeticInstruction(this); --- 54,65 ---- * 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.visitExceptionThrower(this); v.visitTypedInstruction(this); v.visitStackProducer(this); v.visitStackConsumer(this); v.visitArithmeticInstruction(this);
< prev index next >