Interface IfStatement
-
- All Known Implementing Classes:
IfStatementImpl
public interface IfStatement extends Statement
if-elif-else statement. Note that this interface has a recursive structure because it represents both 'if' clause and 'elif' clauseif
orcondition():body()elseBranch()elif
See https://docs.python.org/3/reference/compound_stmts.html#grammar-token-if-stmtcondition():body()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatementListbody()Expressioncondition()List<IfStatement>elifBranches()ElseClauseelseBranch()booleanisElif()Tokenkeyword()
-
-
-
Method Detail
-
keyword
Token keyword()
-
condition
Expression condition()
-
body
StatementList body()
-
elifBranches
List<IfStatement> elifBranches()
-
isElif
boolean isElif()
-
elseBranch
@CheckForNull ElseClause elseBranch()
-
-