00001 package de.fub.bytecode.generic; 00002 00003 /** 00004 * Super class for stack operations like DUP and POP. 00005 * 00006 * @version $Id: StackInstruction.java,v 1.1.1.1 2002/01/24 03:41:41 pserver Exp $ 00007 * @author <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A> 00008 */ 00009 public abstract class StackInstruction extends Instruction { 00010 /** 00011 * Empty constructor needed for the Class.newInstance() statement in 00012 * Instruction.readInstruction(). Not to be used otherwise. 00013 */ 00014 StackInstruction() {} 00015 /** 00016 * @param tag instruction opcode 00017 */ 00018 protected StackInstruction(short tag) { 00019 super(tag, (short)1); 00020 } 00021 /** @return Type.UNKNOWN 00022 */ 00023 public Type getType(ConstantPoolGen cp) { 00024 return Type.UNKNOWN; 00025 } 00026 }