Package org.sonar.python.cfg
Class PythonCfgEndBlock
- java.lang.Object
-
- org.sonar.python.cfg.PythonCfgBlock
-
- org.sonar.python.cfg.PythonCfgEndBlock
-
- All Implemented Interfaces:
CfgBlock
public class PythonCfgEndBlock extends PythonCfgBlock
-
-
Constructor Summary
Constructors Constructor Description PythonCfgEndBlock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Tree>elements()Set<CfgBlock>successors()CfgBlocksyntacticSuccessor()StringtoString()-
Methods inherited from class org.sonar.python.cfg.PythonCfgBlock
addElement, isEmptyBlock, predecessors, toStringDisplayPosition
-
-
-
-
Method Detail
-
elements
public List<Tree> elements()
- Specified by:
elementsin interfaceCfgBlock- Overrides:
elementsin classPythonCfgBlock
-
syntacticSuccessor
@CheckForNull public CfgBlock syntacticSuccessor()
- Returns:
- block following this one if no jump is applied
Returns
nullif this block doesn't end with jump statement (break, continue, return, raise)
-
toString
public String toString()
- Overrides:
toStringin classPythonCfgBlock
-
-