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