public class IfInstruction extends Instruction
opcode| Constructor and Description |
|---|
IfInstruction(Instruction condition,
Instruction trueInsn) |
IfInstruction(Instruction condition,
Instruction trueInsn,
Instruction falseInsn) |
| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
accept(InsnVisitor<R,C> visitor,
C ctx)
Pass this
Instruction through the supplied InsnVisitor. |
protected EnumBitSet<InstructionFlag> |
computeFlags()
Called to compute the exposed flags exposed via
Instruction.getFlags(). |
Instruction |
getCondition() |
EnumBitSet<InstructionFlag> |
getDirectFlags()
Any direct flags for this
Instruction. |
Instruction |
getFalseInsn() |
AType |
getResultType()
Gets the stack type of the value produced by this
Instruction. |
Instruction |
getTrueInsn() |
void |
setCondition(Instruction condition) |
void |
setFalseInsn(Instruction falseInsn) |
void |
setTrueInsn(Instruction trueInsn) |
accept, addRef, ancestorsOfType, copy, descendantsMatching, descendantsOfType, descendantsToList, descendantsToListWhere, descendantsWhere, firstAncestorOfType, getBytecodeOffset, getChildren, getDescendants, getFirstChild, getFirstChildOrNull, getFlags, getLastChild, getLastChildOrNull, getNextSibling, getNextSiblingOrNull, getParent, getParentOrNull, getPrevSibling, getPrevSiblingOrNull, getSourceLine, getTag, hasDirectFlag, hasFlag, insertAfter, insertBefore, invalidateFlags, isConnected, isDescendantOf, onChildModified, onConnected, onDisconnected, releaseRef, remove, replaceWith, setBytecodeOffset, setOffsets, setSourceLine, setTag, toString, toString, withOffsetspublic IfInstruction(Instruction condition, Instruction trueInsn)
public IfInstruction(Instruction condition, Instruction trueInsn, Instruction falseInsn)
public AType getResultType()
InstructionInstruction.getResultType in class InstructionAType.protected EnumBitSet<InstructionFlag> computeFlags()
InstructionInstruction.getFlags().computeFlags in class Instructionpublic EnumBitSet<InstructionFlag> getDirectFlags()
InstructionInstruction.
The return value should be cached statically inside the Instruction impl.
getDirectFlags in class InstructionEnumBitSet representing the flags.Instruction.getFlags()public <R,C> R accept(InsnVisitor<R,C> visitor, C ctx)
InstructionInstruction through the supplied InsnVisitor.accept in class Instructionvisitor - The InsnVisitor.ctx - The context.InsnVisitor.public Instruction getCondition()
public Instruction getTrueInsn()
public Instruction getFalseInsn()
public void setCondition(Instruction condition)
public void setTrueInsn(Instruction trueInsn)
public void setFalseInsn(Instruction falseInsn)