00001 package de.fub.bytecode.generic; 00002 00003 /** 00004 * IFNULL - Branch if reference is not null 00005 * 00006 * <PRE>Stack: ..., reference -> ...</PRE> 00007 * 00008 * @version $Id: IFNULL.java,v 1.1.1.1 2002/01/24 03:44:04 pserver Exp $ 00009 * @author <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A> 00010 */ 00011 public class IFNULL extends IfInstruction { 00012 /** 00013 * Empty constructor needed for the Class.newInstance() statement in 00014 * Instruction.readInstruction(). Not to be used otherwise. 00015 */ 00016 IFNULL() {} 00017 public IFNULL(InstructionHandle target) { 00018 super(IFNULL, target); 00019 } 00020 /** 00021 * @return negation of instruction 00022 */ 00023 public IfInstruction negate() { 00024 return new IFNONNULL(target); 00025 } 00026 }