Creates a new Python class definition.
The configuration arguments
Readonly
nameThe name of the class
Optional
Readonly
moduleThe module name containing the class
Readonly
basesThe parent classes to inherit from
Readonly
decoratorsThe decorators applied to the class
Optional
Readonly
docstringThe documentation string for the class
Readonly
referenceThe class reference for this class
Adds a nested class to this class.
The nested class to add
Adds a code block for unsupported features.
The code block to add
Writes the class definition and its members to the writer.
The writer to write to
Returns the string representation of the AST node. This method creates a new Writer instance and writes the node's content to it.
The string representation of the AST node
Represents a Python class definition in the AST. This class handles the generation of Python class declarations including methods, attributes, and nested classes.