Top Description Fields Constructors Methods
org.apache.bcel.generic

public abstract Class IfInstruction

extends BranchInstruction
implements StackConsumer
Class Inheritance
All Implemented Interfaces
org.apache.bcel.generic.StackConsumer
Known Direct Subclasses
org.apache.bcel.generic.IFLE, org.apache.bcel.generic.IFLT, org.apache.bcel.generic.IFNE, org.apache.bcel.generic.IFNONNULL, org.apache.bcel.generic.IF_ACMPEQ, org.apache.bcel.generic.IF_ACMPNE, org.apache.bcel.generic.IF_ICMPEQ, org.apache.bcel.generic.IF_ICMPGE, org.apache.bcel.generic.IF_ICMPGT, org.apache.bcel.generic.IF_ICMPLE, org.apache.bcel.generic.IF_ICMPLT, org.apache.bcel.generic.IF_ICMPNE, org.apache.bcel.generic.IFNULL, org.apache.bcel.generic.IFEQ, org.apache.bcel.generic.IFGE, org.apache.bcel.generic.IFGT

Super class for the IFxxx family of instructions.

Field Summary

Inherited from org.apache.bcel.generic.BranchInstruction:
indexpositiontarget

Constructor Summary

AccessConstructor and Description
pack-priv
IfInstruction()

Empty constructor needed for Instruction.readInstruction.

protected
IfInstruction(final short
opcode of instruction
opcode
,
final InstructionHandle
Target instruction to branch to
target
)

Method Summary

Modifier and TypeMethod and Description
public abstract IfInstruction

Returns:

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

Inherited from org.apache.bcel.generic.BranchInstruction:
containsTargetdisposedumpgetIndexgetPositiongetTargetgetTargetOffsetgetTargetOffsetinitFromFilenotifyTargetsetIndexsetPositionsetTargettoStringupdatePositionupdateTarget

Constructor Detail

IfInstructionback to summary
pack-priv IfInstruction()

Empty constructor needed for Instruction.readInstruction. Not to be used otherwise.

IfInstructionback to summary
protected IfInstruction(final short opcode, final InstructionHandle target)
Parameters
opcode:short

opcode of instruction

target:InstructionHandle

Target instruction to branch to

Method Detail

negateback to summary
public abstract IfInstruction negate()
Returns:IfInstruction

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