org.apache.bcel.generic

Class IfInstruction

Implemented Interfaces:
Cloneable, InstructionTargeter, Serializable, StackConsumer
Known Direct Subclasses:
IFEQ, IFGE, IFGT, IFLE, IFLT, IFNE, IFNONNULL, IFNULL, IF_ACMPEQ, IF_ACMPNE, IF_ICMPEQ, IF_ICMPGE, IF_ICMPGT, IF_ICMPLE, IF_ICMPLT, IF_ICMPNE

public abstract class IfInstruction
extends BranchInstruction
implements StackConsumer

Super class for the IFxxx family of instructions.

Version:
$Id: IfInstruction.java,v 1.1.1.1 2001/10/29 20:00:18 jvanzyl Exp $

Author:
M. Dahm

Nested Class Summary

Field Summary

Fields inherited from class org.apache.bcel.generic.BranchInstruction

index, position, target

Fields inherited from class org.apache.bcel.generic.Instruction

length, opcode

Constructor Summary

IfInstruction(short opcode, InstructionHandle target)

Method Summary

IfInstruction
negate()

Methods inherited from class org.apache.bcel.generic.BranchInstruction

containsTarget, dump, getIndex, getTarget, getTargetOffset, getTargetOffset, initFromFile, setTarget, toString, updatePosition, updateTarget

Methods inherited from class org.apache.bcel.generic.Instruction

accept, consumeStack, copy, dump, equals, getComparator, getLength, getName, getOpcode, initFromFile, produceStack, readInstruction, setComparator, toString, toString, toString

Constructor Details

IfInstruction

protected IfInstruction(short opcode,
                        InstructionHandle target)

Parameters:

Method Details

negate

public IfInstruction negate()

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