Amplication AST Libraries Documentation
    Preparing search index...

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

    Args

    interface Args {
        name: string;
        packageName: string;
        access: Access;
        abstract_?: boolean;
        final_?: boolean;
        static_?: boolean;
        extends_?: ClassReference;
        implements_?: ClassReference[];
        isNestedClass?: boolean;
        annotations?: Annotation[];
        javadoc?: string;
        typeParameters?: string[];
    }
    Index

    Properties

    name: string

    The name of the Java class

    packageName: string

    The package of the Java class

    access: Access

    The access level of the Java class

    abstract_?: boolean

    Whether the class is abstract

    final_?: boolean

    Whether the class is final

    static_?: boolean

    Whether the class is static (for nested classes)

    extends_?: ClassReference

    The class to extend, if any

    implements_?: ClassReference[]

    Any interfaces the class implements

    isNestedClass?: boolean

    Whether this is a nested class

    annotations?: Annotation[]

    Class annotations like @Entity, @RestController, etc.

    javadoc?: string

    Documentation/JavaDoc for the class

    typeParameters?: string[]

    Generic type parameters for this class