Class IF_ICMPEQ
java.lang.Object
org.apache.bcel.generic.Instruction
org.apache.bcel.generic.BranchInstruction
org.apache.bcel.generic.IfInstruction
org.apache.bcel.generic.IF_ICMPEQ
- All Implemented Interfaces:
Cloneable, InstructionTargeter, StackConsumer
IF_ICMPEQ - Branch if int comparison succeeds
Stack: ..., value1, value2 -> ...
-
Field Summary
Fields inherited from class BranchInstruction
index, position, targetFields inherited from class Instruction
length, opcode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCall corresponding visitor method(s).negate()Gets the negation of this instruction.Methods inherited from class BranchInstruction
containsTarget, dump, getIndex, getPosition, getTarget, getTargetOffset, getTargetOffset, initFromFile, setIndex, setPosition, setTarget, toString, updatePosition, updateTargetMethods inherited from class Instruction
consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toString, toStringMethods inherited from interface StackConsumer
consumeStack
-
Constructor Details
-
IF_ICMPEQ
Constructs an IF_ICMPEQ instruction.- Parameters:
target- the target instruction.
-
-
Method Details
-
accept
Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, that is, the most specific visitXXX() call comes last.- Specified by:
acceptin classInstruction- Parameters:
v- Visitor object.
-
negate
Description copied from class:IfInstructionGets the negation of this instruction.- Specified by:
negatein classIfInstruction- Returns:
- negation of instruction.
-