org.apache.bcel.generic

Class IfInstruction

public abstract class IfInstruction extends BranchInstruction implements StackConsumer

Super class for the IFxxx family of instructions.

Version: $Id: IfInstruction.java 386056 2006-03-15 11:31:56Z tcurdt $

Author: M. Dahm

Constructor Summary
IfInstruction()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().
protected IfInstruction(short opcode, InstructionHandle target)
Method Summary
abstract IfInstructionnegate()

Constructor Detail

IfInstruction

IfInstruction()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.

IfInstruction

protected IfInstruction(short opcode, InstructionHandle target)

Parameters: opcode opcode of instruction target Target instruction to branch to

Method Detail

negate

public abstract IfInstruction negate()

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