APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.generic

public abstract Class IfInstruction

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

Super class for the IFxxx family of instructions.

Field Summary

Inherited from com.sun.org.apache.bcel.internal.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
negate()

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

Inherited from com.sun.org.apache.bcel.internal.generic.BranchInstruction:
containsTargetdisposedumpgetIndexgetPositiongetTargetgetTargetOffsetgetTargetOffsetinitFromFilenotifyTargetsetIndexsetOpcodesetPositionsetTargettoStringupdatePositionupdateTarget

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