org.jetbrains.jet.lang.cfg.pseudocode
Class ConditionalJumpInstruction

java.lang.Object
  extended by org.jetbrains.jet.lang.cfg.pseudocode.InstructionImpl
      extended by org.jetbrains.jet.lang.cfg.pseudocode.AbstractJumpInstruction
          extended by org.jetbrains.jet.lang.cfg.pseudocode.ConditionalJumpInstruction
All Implemented Interfaces:
Instruction

public class ConditionalJumpInstruction
extends AbstractJumpInstruction


Field Summary
 
Fields inherited from class org.jetbrains.jet.lang.cfg.pseudocode.InstructionImpl
isDead
 
Constructor Summary
ConditionalJumpInstruction(boolean onTrue, Label targetLabel)
           
 
Method Summary
 void accept(InstructionVisitor visitor)
           
protected  AbstractJumpInstruction createCopy(Label newLabel)
           
 java.util.Collection<Instruction> getNextInstructions()
           
 Instruction getNextOnFalse()
           
 Instruction getNextOnTrue()
           
 boolean onTrue()
           
 void setNextOnFalse(Instruction nextOnFalse)
           
 void setNextOnTrue(Instruction nextOnTrue)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jetbrains.jet.lang.cfg.pseudocode.AbstractJumpInstruction
copy, createCopy, getResolvedTarget, getTargetLabel, setResolvedTarget
 
Methods inherited from class org.jetbrains.jet.lang.cfg.pseudocode.InstructionImpl
copy, die, getCopies, getOwner, getPreviousInstructions, isDead, outgoingEdgeTo, setOwner, updateCopyInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConditionalJumpInstruction

public ConditionalJumpInstruction(boolean onTrue,
                                  Label targetLabel)
Method Detail

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(InstructionVisitor visitor)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

createCopy

protected AbstractJumpInstruction createCopy(@NotNull
                                             Label newLabel)
Specified by:
createCopy in class AbstractJumpInstruction