Package org.sonar.python.tree
Class WithStatementImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.WithStatementImpl
-
- All Implemented Interfaces:
Statement,Tree,WithStatement
public class WithStatementImpl extends PyTree implements WithStatement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWithStatementImpl.WithItemImpl
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)TokenasyncKeyword()Tokencolon()List<Tree>computeChildren()Tree.KindgetKind()booleanisAsync()StatementListstatements()List<WithItem>withItems()TokenwithKeyword()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
WithStatementImpl
public WithStatementImpl(Token withKeyword, @Nullable Token openParens, List<WithItem> withItems, List<Token> commas, @Nullable Token closeParens, Token colon, @Nullable Token newLine, @Nullable Token indent, StatementList statements, @Nullable Token dedent, @Nullable Token asyncKeyword)
-
-
Method Detail
-
withKeyword
public Token withKeyword()
- Specified by:
withKeywordin interfaceWithStatement
-
withItems
public List<WithItem> withItems()
- Specified by:
withItemsin interfaceWithStatement
-
colon
public Token colon()
- Specified by:
colonin interfaceWithStatement
-
statements
public StatementList statements()
- Specified by:
statementsin interfaceWithStatement
-
isAsync
public boolean isAsync()
- Specified by:
isAsyncin interfaceWithStatement
-
asyncKeyword
@CheckForNull public Token asyncKeyword()
- Specified by:
asyncKeywordin interfaceWithStatement
-
accept
public void accept(TreeVisitor visitor)
-
-