19 * limitations under the License. |
19 * limitations under the License. |
20 */ |
20 */ |
21 |
21 |
22 package com.sun.org.apache.bcel.internal.generic; |
22 package com.sun.org.apache.bcel.internal.generic; |
23 |
23 |
|
24 import com.sun.org.apache.bcel.internal.ExceptionConst; |
24 |
25 |
25 /** |
26 /** |
26 * LDIV - Divide longs |
27 * LDIV - Divide longs |
27 * <PRE>Stack: ..., value1.word1, value1.word2, value2.word1, value2.word2 -></PRE> |
28 * <PRE>Stack: ..., value1.word1, value1.word2, value2.word1, value2.word2 -></PRE> |
28 * ..., result.word1, result.word2 |
29 * ..., result.word1, result.word2 |
29 * |
30 * |
30 * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> |
31 * @version $Id: LDIV.java 1747278 2016-06-07 17:28:43Z britter $ |
31 */ |
32 */ |
32 public class LDIV extends ArithmeticInstruction implements ExceptionThrower { |
33 public class LDIV extends ArithmeticInstruction implements ExceptionThrower { |
33 public LDIV() { |
|
34 super(com.sun.org.apache.bcel.internal.Constants.LDIV); |
|
35 } |
|
36 |
34 |
37 public Class[] getExceptions() { |
35 public LDIV() { |
38 return new Class[] { com.sun.org.apache.bcel.internal.ExceptionConstants.ARITHMETIC_EXCEPTION }; |
36 super(com.sun.org.apache.bcel.internal.Const.LDIV); |
39 } |
37 } |
40 |
38 |
41 |
39 |
42 /** |
40 @Override |
43 * Call corresponding visitor method(s). The order is: |
41 public Class<?>[] getExceptions() { |
44 * Call visitor methods of implemented interfaces first, then |
42 return new Class[] { |
45 * call methods according to the class hierarchy in descending order, |
43 ExceptionConst.ARITHMETIC_EXCEPTION |
46 * i.e., the most specific visitXXX() call comes last. |
44 }; |
47 * |
45 } |
48 * @param v Visitor object |
46 |
49 */ |
47 |
50 public void accept(Visitor v) { |
48 /** |
51 v.visitExceptionThrower(this); |
49 * Call corresponding visitor method(s). The order is: |
52 v.visitTypedInstruction(this); |
50 * Call visitor methods of implemented interfaces first, then |
53 v.visitStackProducer(this); |
51 * call methods according to the class hierarchy in descending order, |
54 v.visitStackConsumer(this); |
52 * i.e., the most specific visitXXX() call comes last. |
55 v.visitArithmeticInstruction(this); |
53 * |
56 v.visitLDIV(this); |
54 * @param v Visitor object |
57 } |
55 */ |
|
56 @Override |
|
57 public void accept( final Visitor v ) { |
|
58 v.visitExceptionThrower(this); |
|
59 v.visitTypedInstruction(this); |
|
60 v.visitStackProducer(this); |
|
61 v.visitStackConsumer(this); |
|
62 v.visitArithmeticInstruction(this); |
|
63 v.visitLDIV(this); |
|
64 } |
58 } |
65 } |