00001 package de.fub.bytecode.generic; 00002 00003 /** 00004 * INSTANCEOF - Determine if object is of given type 00005 * <PRE>Stack: ..., objectref -> ..., result</PRE> 00006 * 00007 * @version $Id: INSTANCEOF.java,v 1.1.1.1 2002/01/24 03:44:06 pserver Exp $ 00008 * @author <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A> 00009 */ 00010 public class INSTANCEOF extends CPInstruction implements LoadClass, ExceptionThrower { 00011 /** 00012 * Empty constructor needed for the Class.newInstance() statement in 00013 * Instruction.readInstruction(). Not to be used otherwise. 00014 */ 00015 INSTANCEOF() {} 00016 public INSTANCEOF(int index) { 00017 super(INSTANCEOF, index); 00018 } 00019 public Class[] getExceptions() { return EXCS_CLASS_AND_INTERFACE_RESOLUTION; } 00020 }