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
-
Constructor Summary
Constructors Constructor Description WithStatementImpl(com.sonar.sslr.api.AstNode node, List<WithItem> withItems, Token colon, StatementList statements, Token asyncKeyword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)TokenasyncKeyword()List<Tree>children()Tokencolon()Tree.KindgetKind()booleanisAsync()StatementListstatements()List<WithItem>withItems()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.python.api.tree.Tree
ancestors, astNode, descendants, descendants, firstToken, is, lastToken, parent
-
-
-
-
Method Detail
-
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)
-
-