Readonly
nameThe name of the enum
Readonly
packageThe package name of the enum
Readonly
accessThe access level of the enum
Readonly
referenceThe class reference for this enum
Readonly
isWhether this is a nested enum
Readonly
implements_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.