Package org.sonar.python.tree
Class IfStatementImpl
java.lang.Object
org.sonar.python.tree.PyTree
org.sonar.python.tree.IfStatementImpl
- All Implemented Interfaces:
IfStatement,Statement,Tree
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken -
Constructor Summary
ConstructorsConstructorDescriptionIfStatementImpl(Token elifKeyword, Expression condition, Token colon, Token newLine, Token indent, StatementList statements, Token dedent) Elif statement constructorIfStatementImpl(Token ifKeyword, Expression condition, Token colon, Token newLine, Token indent, StatementList statements, Token dedent, List<IfStatement> elifBranches, ElseClause elseClause) If statement constructor -
Method Summary
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
Constructor Details
-
IfStatementImpl
public IfStatementImpl(Token ifKeyword, Expression condition, Token colon, @CheckForNull Token newLine, @CheckForNull Token indent, StatementList statements, @CheckForNull Token dedent, List<IfStatement> elifBranches, @CheckForNull ElseClause elseClause) If statement constructor -
IfStatementImpl
public IfStatementImpl(Token elifKeyword, Expression condition, Token colon, @CheckForNull Token newLine, @CheckForNull Token indent, StatementList statements, @CheckForNull Token dedent) Elif statement constructor
-
-
Method Details
-
keyword
- Specified by:
keywordin interfaceIfStatement
-
condition
- Specified by:
conditionin interfaceIfStatement
-
body
- Specified by:
bodyin interfaceIfStatement
-
elifBranches
- Specified by:
elifBranchesin interfaceIfStatement
-
isElif
public boolean isElif()- Specified by:
isElifin interfaceIfStatement
-
elseBranch
- Specified by:
elseBranchin interfaceIfStatement
-
getKind
-
accept
-
computeChildren
-