org.jetbrains.kotlin.cfg.pseudocode
Class PseudocodeImpl
java.lang.Object
org.jetbrains.kotlin.cfg.pseudocode.PseudocodeImpl
- All Implemented Interfaces:
- Pseudocode
public class PseudocodeImpl
- extends java.lang.Object
- implements Pseudocode
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PseudocodeImpl
public PseudocodeImpl(KtElement correspondingElement)
getCorrespondingElement
@NotNull
public KtElement getCorrespondingElement()
- Specified by:
getCorrespondingElement
in interface Pseudocode
getLocalDeclarations
@NotNull
public java.util.Set<LocalFunctionDeclarationInstruction> getLocalDeclarations()
- Specified by:
getLocalDeclarations
in interface Pseudocode
getParent
@Nullable
public Pseudocode getParent()
- Specified by:
getParent
in interface Pseudocode
getRootPseudocode
@NotNull
public Pseudocode getRootPseudocode()
getInstructions
@NotNull
public java.util.List<Instruction> getInstructions()
- Specified by:
getInstructions
in interface Pseudocode
getReversedInstructions
@NotNull
public java.util.List<Instruction> getReversedInstructions()
- Specified by:
getReversedInstructions
in interface Pseudocode
getInstructionsIncludingDeadCode
@NotNull
public java.util.List<Instruction> getInstructionsIncludingDeadCode()
- Specified by:
getInstructionsIncludingDeadCode
in interface Pseudocode
getLabels
@NotNull
public java.util.List<PseudocodeImpl.PseudocodeLabel> getLabels()
getExitInstruction
@NotNull
public SubroutineExitInstruction getExitInstruction()
- Specified by:
getExitInstruction
in interface Pseudocode
getSinkInstruction
@NotNull
public SubroutineSinkInstruction getSinkInstruction()
- Specified by:
getSinkInstruction
in interface Pseudocode
getEnterInstruction
@NotNull
public SubroutineEnterInstruction getEnterInstruction()
- Specified by:
getEnterInstruction
in interface Pseudocode
getElementValue
@Nullable
public PseudoValue getElementValue(@Nullable
KtElement element)
- Specified by:
getElementValue
in interface Pseudocode
getValueElements
@NotNull
public java.util.List<? extends KtElement> getValueElements(@Nullable
PseudoValue value)
- Specified by:
getValueElements
in interface Pseudocode
getUsages
@NotNull
public java.util.List<? extends Instruction> getUsages(@Nullable
PseudoValue value)
- Specified by:
getUsages
in interface Pseudocode
isSideEffectFree
public boolean isSideEffectFree(@NotNull
Instruction instruction)
- Specified by:
isSideEffectFree
in interface Pseudocode
postProcess
public void postProcess()
copy
public PseudocodeImpl copy()
- Specified by:
copy
in interface Pseudocode
repeatPart
public int repeatPart(@NotNull
Label startLabel,
@NotNull
Label finishLabel,
int labelCount)