Package org.sonar.python.tree
Class PyWithStatementTreeImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.PyWithStatementTreeImpl
-
- All Implemented Interfaces:
PyStatementTree,PyWithStatementTree,Tree
public class PyWithStatementTreeImpl extends PyTree implements PyWithStatementTree
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPyWithStatementTreeImpl.PyWithItemTreeImpl
-
Constructor Summary
Constructors Constructor Description PyWithStatementTreeImpl(com.sonar.sslr.api.AstNode node, List<PyWithItemTree> withItems, com.sonar.sslr.api.Token colon, PyStatementListTree statements, com.sonar.sslr.api.Token asyncKeyword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PyTreeVisitor visitor)com.sonar.sslr.api.TokenasyncKeyword()List<Tree>children()com.sonar.sslr.api.Tokencolon()Tree.KindgetKind()booleanisAsync()PyStatementListTreestatements()List<PyWithItemTree>withItems()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
PyWithStatementTreeImpl
public PyWithStatementTreeImpl(com.sonar.sslr.api.AstNode node, List<PyWithItemTree> withItems, com.sonar.sslr.api.Token colon, PyStatementListTree statements, @Nullable com.sonar.sslr.api.Token asyncKeyword)
-
-
Method Detail
-
withItems
public List<PyWithItemTree> withItems()
- Specified by:
withItemsin interfacePyWithStatementTree
-
colon
public com.sonar.sslr.api.Token colon()
- Specified by:
colonin interfacePyWithStatementTree
-
statements
public PyStatementListTree statements()
- Specified by:
statementsin interfacePyWithStatementTree
-
isAsync
public boolean isAsync()
- Specified by:
isAsyncin interfacePyWithStatementTree
-
asyncKeyword
@CheckForNull public com.sonar.sslr.api.Token asyncKeyword()
- Specified by:
asyncKeywordin interfacePyWithStatementTree
-
accept
public void accept(PyTreeVisitor visitor)
-
-