class documentation
class SuperClassHierarchy: (source)
Utility class for optimizations working with superclasses.
Method | __init__ |
Undocumented |
Method |
|
Generate a set of all (known) subclasses for a type. |
Method |
|
Generate a list of all (known) superclasses for a type. |
Method |
|
Undocumented |
Method |
|
Queries whether a subclass of a type is present in a given set. |
Method |
|
Queries whether a superclass of a type is present in a given set. |
Method | _ |
Recursively collect super classes for a type. |
Instance Variable | _subclasses |
Undocumented |
Instance Variable | _superclasses |
Undocumented |
Generate a set of all (known) subclasses for a type. Arguments: t: A type. E.g. NamedType("int"). Returns: A set of types. This set includes t as well as all its subclasses. For example, this will return "int" and "bool" for "int".
Generate a list of all (known) superclasses for a type. Arguments: t: A type name. E.g. "int". Returns: A set of types. This set includes t as well as all its superclasses. For example, this will return "bool", "int" and "object" for "bool".