Class PackageObject
Import path
import python
Direct supertypes
Indirect supertypes
Predicates
getAttribute | Gets the named attribute of this module. Using attributeRefersTo() instead may provide better results for presentation. |
getInitModule | |
getLocation | |
getModule | Gets the scope corresponding to this module, if this is a Python module |
getName | Gets the name of this scope |
getPath | |
getSourceModule | Gets the source scope corresponding to this module, if this is a Python module |
hasAttribute | |
hasLocationInfo | Holds if this element is at the specified location. The location spans column |
hasNoInitModule | Holds if this package has no |
submodule |
Inherited predicates
asBuiltin | INTERNAL – Do not use | from Object |
attr | Gets the named attribute of this module. Synonym for | from ModuleObject |
attributeRefersTo | from ModuleObject | |
attributeRefersTo | from ModuleObject | |
booleanValue | Gets the Boolean value of this object if it always evaluates to true or false. For example: false for None, true for 7 and no result for int(x) | from ModuleObject |
exports | Whether this module “exports” | from ModuleObject |
getAnImportedModule | from ModuleObject | |
getAnInferredType | Gets an inferred type for this object, without using inter-procedural analysis. WARNING: The lack of context makes this less accurate than f.refersTo(this, result, _) for a control flow node ‘f’ | from Object |
getKind | Gets the kind for this module. Will be one of “module”, “script” or “plugin”. | from ModuleObject |
getOrigin | Gets the point in the source code from which this object “originates”. | from Object |
getPackage | Gets the package for this module. | from ModuleObject |
getShortName | Gets the short name of the module. For example the short name of module x.y.z is ‘z’ | from ModuleObject |
hasLongName | Holds if this object can be referred to by | from Object |
importedAs | Whether this module is imported by ‘import name’. For example on a linux system, the module ‘posixpath’ is imported as ‘os.path’ or as ‘posixpath’ | from ModuleObject |
isBuiltin | Whether this is a builtin object. A builtin object is one defined by the implementation, such as the integer 4 or by a native extension, such as a NumPy array class. | from Object |
isC | Retained for backwards compatibility. See Object.isBuiltin() | from Object |
maybe | from Object | |
notClass | from Object | |
overrides | Whether this overrides o. In this context, “overrides” means that this object is a named attribute of a some class C and | from Object |
simpleClass | Gets the class of this object for simple cases, namely constants, functions, comprehensions and built-in objects. | from Object |
theModule | from ModuleObject | |
toString | Gets a textual representation of this element. | from ModuleObject |