Class ClassValue
A class in the Python program, both Python and built-in.
Import path
import python
Direct supertypes
Indirect supertypes
Predicates
declaredAttribute | Gets the attribute declared in this class |
declaresAttribute | Holds if this class declares the attribute |
failedInference | |
getABaseType | Gets an immediate base type of this class. |
getASuperType | Gets an improper super type of this class. |
getBaseType | Gets the nth immediate base type of this class. |
getMro | Gets the MRO for this class |
getQualifiedName | Gets the qualified name for this class. Should return the same name as the |
getScope | Gets the scope associated with this class, if it is not a builtin class |
hasAttribute | Holds if this class has the attribute |
isCallable | |
isContainer | Holds if this class is a container(). That is, does it have a getitem method. |
isContextManager | Holds if this class is a context manager. |
isDescriptorType | Holds if this class is a descriptor. |
isIterable | Holds if this class is an iterable. |
isIterator | Holds if this class is an iterator. |
isLegalExceptionType | Whether this class is a legal exception class. What constitutes a legal exception class differs between major versions |
isMapping | Holds if this class is a mapping. Mutually exclusive with |
isNewStyle | Holds if this class is a new style class. A new style class is one that implicitly or explicitly inherits from |
isOldStyle | Holds if this class is an old style class. An old style class is one that does not inherit from |
isSequence | Holds if this class is a sequence. Mutually exclusive with |
lookup | Looks up the attribute |
Inherited predicates
attr | Gets a | from Value |
getABooleanValue | Gets the boolean interpretation of this value. Could be both | from Value |
getACall | Gets a call to this object | from Value |
getACall | Gets a call to this object with the given | from Value |
getAReference | Gets a | from Value |
getClass | Gets the class of this object. Strictly, the | from Value |
getDefiniteBooleanValue | Gets the boolean interpretation of this value, only if we can determine the result precisely. The result can be | from Value |
getName | Gets the name of this value, if it has one. Note this is the innate name of the object, not necessarily all the names by which it can be called. | from Value |
getOrigin | Gets the origin CFG node for this value. | from Value |
hasLocationInfo | Holds if this element is at the specified location. The location spans column | from Value |
isAbsent | Whether this value is absent from the database, but has been inferred to likely exist | from Value |
isBuiltin | Holds if this value is builtin. Applies to built-in functions and methods, but also integers and strings. | from Value |
overrides | Whether this overrides v. In this context, “overrides” means that this object is a named attribute of a some class C and | from Value |
toString | Gets a textual representation of this element. | from Value |