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 |
|
25 /** |
24 /** |
26 * DNEG - Negate double |
25 * DNEG - Negate double |
27 * <PRE>Stack: ..., value.word1, value.word2 -> ..., result.word1, result.word2</PRE> |
26 * <PRE>Stack: ..., value.word1, value.word2 -> ..., result.word1, result.word2</PRE> |
28 * |
27 * |
29 * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> |
28 * @version $Id: DNEG.java 1747278 2016-06-07 17:28:43Z britter $ |
30 */ |
29 */ |
31 public class DNEG extends ArithmeticInstruction { |
30 public class DNEG extends ArithmeticInstruction { |
32 public DNEG() { |
31 |
33 super(com.sun.org.apache.bcel.internal.Constants.DNEG); |
32 public DNEG() { |
34 } |
33 super(com.sun.org.apache.bcel.internal.Const.DNEG); |
|
34 } |
35 |
35 |
36 |
36 |
37 /** |
37 /** |
38 * Call corresponding visitor method(s). The order is: |
38 * Call corresponding visitor method(s). The order is: |
39 * Call visitor methods of implemented interfaces first, then |
39 * Call visitor methods of implemented interfaces first, then |
40 * call methods according to the class hierarchy in descending order, |
40 * call methods according to the class hierarchy in descending order, |
41 * i.e., the most specific visitXXX() call comes last. |
41 * i.e., the most specific visitXXX() call comes last. |
42 * |
42 * |
43 * @param v Visitor object |
43 * @param v Visitor object |
44 */ |
44 */ |
45 public void accept(Visitor v) { |
45 @Override |
46 v.visitTypedInstruction(this); |
46 public void accept( final Visitor v ) { |
47 v.visitStackProducer(this); |
47 v.visitTypedInstruction(this); |
48 v.visitStackConsumer(this); |
48 v.visitStackProducer(this); |
49 v.visitArithmeticInstruction(this); |
49 v.visitStackConsumer(this); |
50 v.visitDNEG(this); |
50 v.visitArithmeticInstruction(this); |
51 } |
51 v.visitDNEG(this); |
|
52 } |
52 } |
53 } |