Package org.sonar.python.cfg
Class PythonCfgBranchingBlock
java.lang.Object
org.sonar.python.cfg.PythonCfgBlock
org.sonar.python.cfg.PythonCfgBranchingBlock
- All Implemented Interfaces:
CfgBlock,CfgBranchingBlock
-
Constructor Summary
ConstructorsConstructorDescriptionPythonCfgBranchingBlock(Tree branchingTree, CfgBlock trueSuccessor, CfgBlock falseSuccessor) -
Method Summary
Modifier and TypeMethodDescriptionSyntax tree causing branching: e.g. loop tree, if statement treevoidsetTrueSuccessor(PythonCfgBlock trueSuccessor) protected StringMethods inherited from class org.sonar.python.cfg.PythonCfgBlock
addElement, elements, isEmptyBlock, predecessors, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.sonar.plugins.python.api.cfg.CfgBlock
elements, predecessors
-
Constructor Details
-
PythonCfgBranchingBlock
-
-
Method Details
-
successors
- Specified by:
successorsin interfaceCfgBlock
-
syntacticSuccessor
- Specified by:
syntacticSuccessorin interfaceCfgBlock- Returns:
- block following this one if no jump is applied
Returns
nullif this block doesn't end with jump statement (break, continue, return, raise)
-
trueSuccessor
- Specified by:
trueSuccessorin interfaceCfgBranchingBlock
-
falseSuccessor
- Specified by:
falseSuccessorin interfaceCfgBranchingBlock
-
branchingTree
Description copied from interface:CfgBranchingBlockSyntax tree causing branching: e.g. loop tree, if statement tree- Specified by:
branchingTreein interfaceCfgBranchingBlock
-
setTrueSuccessor
-
toStringDisplayPosition
- Overrides:
toStringDisplayPositionin classPythonCfgBlock
-