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