de.fub.bytecode.generic
Class IfInstruction

java.lang.Object
  |
  +--de.fub.bytecode.generic.Instruction
        |
        +--de.fub.bytecode.generic.BranchInstruction
              |
              +--de.fub.bytecode.generic.IfInstruction
Direct Known Subclasses:
IF_ACMPEQ, IF_ACMPNE, IF_ICMPEQ, IF_ICMPGE, IF_ICMPGT, IF_ICMPLE, IF_ICMPLT, IF_ICMPNE, IFEQ, IFGE, IFGT, IFLE, IFLT, IFNE, IFNONNULL, IFNULL

public abstract class IfInstruction
extends BranchInstruction

Super class for the IFxxx family of instructions.

Version:
$Id: IfInstruction.java,v 1.3 1999/05/04 13:14:07 dahm Exp $
Author:
M. Dahm
See Also:
Serialized Form

Fields inherited from class de.fub.bytecode.generic.BranchInstruction
index, position, target
 
Fields inherited from class de.fub.bytecode.generic.Instruction
length, tag
 
Constructor Summary
protected IfInstruction(short tag, InstructionHandle target)
           
 
Method Summary
abstract  IfInstruction negate()
           
 
Methods inherited from class de.fub.bytecode.generic.BranchInstruction
containsTarget, dump, getTarget, getTargetOffset, getTargetOffset, initFromFile, setTarget, toString, updatePosition, updateTarget
 
Methods inherited from class de.fub.bytecode.generic.Instruction
consumeStack, consumeStack, copy, getLength, getTag, produceStack, produceStack, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IfInstruction

protected IfInstruction(short tag,
                        InstructionHandle target)
Parameters:
instruction - Target instruction to branch to
Method Detail

negate

public abstract IfInstruction negate()
Returns:
negation of instruction, e.g. IFEQ.negate() == IFNE