00001 package de.fub.bytecode.generic; 00002 00003 /** 00004 * FADD - Add floats 00005 * <PRE>Stack: ..., value1, value2 -> result</PRE> 00006 * 00007 * @version $Id: FADD.java,v 1.1.1.1 2002/01/24 03:41:39 pserver Exp $ 00008 * @author <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A> 00009 */ 00010 public class FADD extends ArithmeticInstruction { 00011 /** Add floats 00012 */ 00013 public FADD() { 00014 super(de.fub.bytecode.Constants.FADD); 00015 } 00016 /** 00017 * Call corresponding visitor method(s). The order is: 00018 * Call visitor methods of implemented interfaces first, then 00019 * call methods according to the class hierarchy in descending order, 00020 * i.e., the most specific visitXXX() call comes last. 00021 * 00022 * @param v Visitor object 00023 */ 00024 public void accept(Visitor v) { 00025 v.visitTypedInstruction(this); 00026 v.visitStackProducer(this); 00027 v.visitStackConsumer(this); 00028 v.visitArithmeticInstruction(this); 00029 v.visitFADD(this); 00030 } 00031 }