Package org.sonar.python.tree
Class PyImportFromTreeImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.PyImportFromTreeImpl
-
- All Implemented Interfaces:
PyImportFromTree,PyImportStatementTree,PyStatementTree,Tree
public class PyImportFromTreeImpl extends PyTree implements PyImportFromTree
-
-
Constructor Summary
Constructors Constructor Description PyImportFromTreeImpl(com.sonar.sslr.api.AstNode astNode, com.sonar.sslr.api.Token fromKeyword, List<com.sonar.sslr.api.Token> dottedPrefixForModule, PyDottedNameTree moduleName, com.sonar.sslr.api.Token importKeyword, List<PyAliasedNameTree> aliasedImportNames, boolean isWildcardImport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PyTreeVisitor visitor)List<Tree>children()List<com.sonar.sslr.api.Token>dottedPrefixForModule()com.sonar.sslr.api.TokenfromKeyword()Tree.KindgetKind()List<PyAliasedNameTree>importedNames()com.sonar.sslr.api.TokenimportKeyword()booleanisWildcardImport()PyDottedNameTreemodule()com.sonar.sslr.api.Tokenwildcard()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
PyImportFromTreeImpl
public PyImportFromTreeImpl(com.sonar.sslr.api.AstNode astNode, com.sonar.sslr.api.Token fromKeyword, @Nullable List<com.sonar.sslr.api.Token> dottedPrefixForModule, @Nullable PyDottedNameTree moduleName, com.sonar.sslr.api.Token importKeyword, @Nullable List<PyAliasedNameTree> aliasedImportNames, boolean isWildcardImport)
-
-
Method Detail
-
fromKeyword
public com.sonar.sslr.api.Token fromKeyword()
- Specified by:
fromKeywordin interfacePyImportFromTree
-
module
@CheckForNull public PyDottedNameTree module()
- Specified by:
modulein interfacePyImportFromTree
-
importKeyword
public com.sonar.sslr.api.Token importKeyword()
- Specified by:
importKeywordin interfacePyImportFromTree
-
dottedPrefixForModule
@CheckForNull public List<com.sonar.sslr.api.Token> dottedPrefixForModule()
- Specified by:
dottedPrefixForModulein interfacePyImportFromTree
-
importedNames
public List<PyAliasedNameTree> importedNames()
- Specified by:
importedNamesin interfacePyImportFromTree
-
isWildcardImport
public boolean isWildcardImport()
- Specified by:
isWildcardImportin interfacePyImportFromTree
-
wildcard
@CheckForNull public com.sonar.sslr.api.Token wildcard()
- Specified by:
wildcardin interfacePyImportFromTree
-
accept
public void accept(PyTreeVisitor visitor)
-
-