ReadonlynameThe name of the enum
ReadonlypackageThe package name of the enum
ReadonlyaccessThe access level of the enum
ReadonlyreferenceThe class reference for this enum
ReadonlyisWhether this is a nested enum
Readonlyimplements_The interfaces implemented by this enum
Sets the constructor parameters for enum constants.
The constructor parameter types
Writes the enum declaration and its contents to the writer. This includes package declaration, JavaDoc, annotations, constants, fields, and methods.
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 Java enum in the AST. This class handles the generation of Java enum declarations including constants, fields, methods, and other enum-related elements.