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