The scope of a class. This is the scope of all the statements within the class definition
Whether this contains
Whether this contains
Gets a base of this class definition.
Gets a child node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt().
Gets a decorator of this class.
Gets a method defined in this class
Gets a statement in the class
Gets the nth base of this class definition.
Gets the statements forming the body of this class
Gets the ClassObject corresponding to this class
Use getADecorator() instead of getDefinition().getADecorator() Use getMetaClass() instead of getDefinition().getMetaClass()
Gets the scope (module, class or function) in which this class is defined
Gets a defined init method of this class
Gets the location for this AST node
Gets the metaclass expression
Gets the metrics for this class
Gets the name used to define this class
Gets the qualified name for this class. Should return the same name as the
Use getEnclosingScope() instead
Gets the nth statement in the class
Holds if this expression may have a side effect (as determined purely from its syntax).
Holds if this is probably a mixin (has ‘mixin’ or similar in name or docstring)
Gets a textual representation of this element.
Gets a flow node corresponding directly to this node. NOTE: For some statements and other purely syntactic elements, there may not be a
Gets an exit from this Scope’s control flow graph, that does not result from an exception
Gets an exit from this Scope’s control flow graph
Gets the docstring for this scope
Gets the entry point into this Scope’s control flow graph
Gets the evaluation scope for code in this (lexical) scope. This is usually the scope itself, but may be an enclosing scope. Notably, for list comprehensions in Python 2.
Gets the non-explicit exit from this Scope’s control flow graph
Gets the parent node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt() applied to the parent.
Gets the exit of this scope following from a return statement
Holds if this scope is in the source archive, that is it is part of the code specified, not library code
Whether this syntactic element is artificial, that is it is generated by the compiler and is not present in the source
Holds if this scope is deemed to be public
Holds if this a top-level (non-nested) class or function
Holds if this scope can be expected to execute before