Interface ImportFrom

All Superinterfaces:
ImportStatement, Statement, Tree
All Known Implementing Classes:
ImportFromImpl

public interface ImportFrom extends ImportStatement
Import From statement
   fromKeyword() dottedPrefixForModule() module() importKeyword() importedNames()
 
See https://docs.python.org/3/reference/simple_stmts.html#grammar-token-import-stmt
  • Method Details

    • fromKeyword

      Token fromKeyword()
    • module

      @CheckForNull DottedName module()
    • importKeyword

      Token importKeyword()
    • dottedPrefixForModule

      List<Token> dottedPrefixForModule()
      prefix '.' tokens used in relative import
         from ..a.b import fn
         #    ^^
       
    • importedNames

      List<AliasedName> importedNames()
    • isWildcardImport

      boolean isWildcardImport()
    • wildcard

      @CheckForNull Token wildcard()
    • hasUnresolvedWildcardImport

      boolean hasUnresolvedWildcardImport()