Package org.apache.bcel.generic
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 org.apache.bcel.generic.BranchInstruction
index, position, target
Fields inherited from class org.apache.bcel.generic.Instruction
EMPTY_ARRAY, length, opcode
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
Empty constructor needed for Instruction.readInstruction.protected
IfInstruction
(short opcode, InstructionHandle target) -
Method Summary
Methods inherited from class org.apache.bcel.generic.BranchInstruction
containsTarget, dispose, dump, getIndex, getPosition, getTarget, getTargetOffset, getTargetOffset, initFromFile, notifyTarget, setIndex, setPosition, setTarget, toString, updatePosition, updateTarget
Methods inherited from class org.apache.bcel.generic.Instruction
accept, consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, setLength, setOpcode, toString, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.bcel.generic.StackConsumer
consumeStack
-
Constructor Details
-
IfInstruction
IfInstruction()Empty constructor needed for Instruction.readInstruction. Not to be used otherwise. -
IfInstruction
- Parameters:
opcode
- opcode of instructiontarget
- Target instruction to branch to
-
-
Method Details
-
negate
- Returns:
- negation of instruction, e.g. IFEQ.negate() == IFNE
-