Amplication AST Libraries Documentation
    Preparing search index...

    Interface defining the arguments required to create a new Enum instance.

    Args

    interface Args {
        name: string;
        packageName: string;
        access: Access;
        implements_?: ClassReference[];
        isNestedEnum?: boolean;
        annotations?: Annotation[];
        javadoc?: string;
        values?: string[];
        constantsWithStringValues?: { name: string; value: string }[];
    }
    Index

    Properties

    name: string

    The name of the Java enum

    packageName: string

    The package of the Java enum

    access: Access

    The access level of the Java enum

    implements_?: ClassReference[]

    Any interfaces the enum implements

    isNestedEnum?: boolean

    Whether this is a nested enum

    annotations?: Annotation[]

    Enum annotations

    javadoc?: string

    Documentation/JavaDoc for the enum

    values?: string[]

    Simple string values for enum constants

    constantsWithStringValues?: { name: string; value: string }[]

    Enum constants with values