Package org.sonar.python.api.tree
Interface IfStatement
-
- All Known Implementing Classes:
IfStatementImpl
public interface IfStatement extends Statement
if-elif-else statement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatementListbody()Expressioncondition()List<IfStatement>elifBranches()ElseStatementelseBranch()booleanisElif()Tokenkeyword()-
Methods inherited from interface org.sonar.python.api.tree.Tree
accept, ancestors, astNode, children, descendants, descendants, firstToken, getKind, is, lastToken, parent
-
-
-
-
Method Detail
-
keyword
Token keyword()
-
condition
Expression condition()
-
body
StatementList body()
-
elifBranches
List<IfStatement> elifBranches()
-
isElif
boolean isElif()
-
elseBranch
@CheckForNull ElseStatement elseBranch()
-
-