org.jetbrains.jet.lang.cfg.pseudocode
Class ConditionalJumpInstruction
java.lang.Object
org.jetbrains.jet.lang.cfg.pseudocode.InstructionImpl
org.jetbrains.jet.lang.cfg.pseudocode.JetElementInstructionImpl
org.jetbrains.jet.lang.cfg.pseudocode.AbstractJumpInstruction
org.jetbrains.jet.lang.cfg.pseudocode.ConditionalJumpInstruction
- All Implemented Interfaces:
- Instruction, JetElementInstruction, JumpInstruction
public class ConditionalJumpInstruction
- extends AbstractJumpInstruction
Methods inherited from class org.jetbrains.jet.lang.cfg.pseudocode.InstructionImpl |
copy, die, getCopies, getLexicalScope, getOutputValue, getOwner, getPreviousInstructions, isDead, outgoingEdgeTo, setOwner, updateCopyInfo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConditionalJumpInstruction
public ConditionalJumpInstruction(@NotNull
JetElement element,
boolean onTrue,
LexicalScope lexicalScope,
Label targetLabel,
PseudoValue conditionValue)
getInputValues
@NotNull
public java.util.List<PseudoValue> getInputValues()
- Specified by:
getInputValues
in interface Instruction
- Overrides:
getInputValues
in class InstructionImpl
onTrue
public boolean onTrue()
getNextOnTrue
public Instruction getNextOnTrue()
setNextOnTrue
public void setNextOnTrue(Instruction nextOnTrue)
getNextOnFalse
public Instruction getNextOnFalse()
setNextOnFalse
public void setNextOnFalse(Instruction nextOnFalse)
getNextInstructions
@NotNull
public java.util.Collection<Instruction> getNextInstructions()
- Specified by:
getNextInstructions
in interface Instruction
- Overrides:
getNextInstructions
in class AbstractJumpInstruction
accept
public void accept(@NotNull
InstructionVisitor visitor)
accept
public <R> R accept(@NotNull
InstructionVisitorWithResult<R> visitor)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
createCopy
protected AbstractJumpInstruction createCopy(@NotNull
Label newLabel,
@NotNull
LexicalScope lexicalScope)
- Specified by:
createCopy
in class AbstractJumpInstruction