Class IfInstruction
java.lang.Object
org.apache.bcel.generic.Instruction
org.apache.bcel.generic.BranchInstruction
org.apache.bcel.generic.IfInstruction
- All Implemented Interfaces:
Cloneable, InstructionTargeter, StackConsumer
- 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
Super class for the IFxxx family of instructions.
-
Field Summary
Fields inherited from class BranchInstruction
index, position, targetFields inherited from class Instruction
length, opcode -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class BranchInstruction
containsTarget, dump, getIndex, getPosition, getTarget, getTargetOffset, getTargetOffset, initFromFile, setIndex, setPosition, setTarget, toString, updatePosition, updateTargetMethods inherited from class Instruction
accept, consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toString, toStringMethods inherited from interface StackConsumer
consumeStack
-
Constructor Details
-
IfInstruction
- Parameters:
opcode- opcode of instructiontarget- Target instruction to branch to
-
-
Method Details
-
negate
- Returns:
- negation of instruction, for example IFEQ.negate() == IFNE
-