Package org.sonar.python.tree
Class PyImportNameTreeImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.PyImportNameTreeImpl
-
- All Implemented Interfaces:
PyImportNameTree,PyImportStatementTree,PyStatementTree,Tree
public class PyImportNameTreeImpl extends PyTree implements PyImportNameTree
-
-
Constructor Summary
Constructors Constructor Description PyImportNameTreeImpl(com.sonar.sslr.api.AstNode astNode, com.sonar.sslr.api.Token importKeyword, List<PyAliasedNameTree> aliasedNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PyTreeVisitor visitor)List<Tree>children()Tree.KindgetKind()com.sonar.sslr.api.TokenimportKeyword()List<PyAliasedNameTree>modules()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
PyImportNameTreeImpl
public PyImportNameTreeImpl(com.sonar.sslr.api.AstNode astNode, com.sonar.sslr.api.Token importKeyword, List<PyAliasedNameTree> aliasedNames)
-
-
Method Detail
-
importKeyword
public com.sonar.sslr.api.Token importKeyword()
- Specified by:
importKeywordin interfacePyImportNameTree
-
modules
public List<PyAliasedNameTree> modules()
- Specified by:
modulesin interfacePyImportNameTree
-
accept
public void accept(PyTreeVisitor visitor)
-
-