Package org.sonar.python.tree
Class ImportFromImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.ImportFromImpl
-
- All Implemented Interfaces:
ImportFrom,ImportStatement,Statement,Tree
public class ImportFromImpl extends PyTree implements ImportFrom
-
-
Constructor Summary
Constructors Constructor Description ImportFromImpl(com.sonar.sslr.api.AstNode astNode, Token fromKeyword, List<Token> dottedPrefixForModule, DottedName moduleName, Token importKeyword, List<AliasedName> aliasedImportNames, boolean isWildcardImport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<Tree>children()List<Token>dottedPrefixForModule()TokenfromKeyword()Tree.KindgetKind()List<AliasedName>importedNames()TokenimportKeyword()booleanisWildcardImport()DottedNamemodule()Tokenwildcard()-
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
-
-
-
-
Constructor Detail
-
ImportFromImpl
public ImportFromImpl(com.sonar.sslr.api.AstNode astNode, Token fromKeyword, @Nullable List<Token> dottedPrefixForModule, @Nullable DottedName moduleName, Token importKeyword, @Nullable List<AliasedName> aliasedImportNames, boolean isWildcardImport)
-
-
Method Detail
-
fromKeyword
public Token fromKeyword()
- Specified by:
fromKeywordin interfaceImportFrom
-
module
@CheckForNull public DottedName module()
- Specified by:
modulein interfaceImportFrom
-
importKeyword
public Token importKeyword()
- Specified by:
importKeywordin interfaceImportFrom
-
dottedPrefixForModule
@CheckForNull public List<Token> dottedPrefixForModule()
- Specified by:
dottedPrefixForModulein interfaceImportFrom
-
importedNames
public List<AliasedName> importedNames()
- Specified by:
importedNamesin interfaceImportFrom
-
isWildcardImport
public boolean isWildcardImport()
- Specified by:
isWildcardImportin interfaceImportFrom
-
wildcard
@CheckForNull public Token wildcard()
- Specified by:
wildcardin interfaceImportFrom
-
accept
public void accept(TreeVisitor visitor)
-
-