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