Amplication AST Libraries Documentation
    Preparing search index...

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

    Args

    interface Args {
        name: string;
        type: Type;
        access: Access;
        static_?: boolean;
        final_?: boolean;
        transient_?: boolean;
        volatile_?: boolean;
        annotations?: Annotation[];
        initializer?: CodeBlock;
        javadoc?: string;
    }
    Index

    Properties

    name: string

    The name of the Java field

    type: Type

    The type of the field (e.g., String, int, List)

    access: Access

    The access level of the field (public, private, protected)

    static_?: boolean

    Whether the field is static

    final_?: boolean

    Whether the field is final (immutable)

    transient_?: boolean

    Whether the field is transient (not serialized)

    volatile_?: boolean

    Whether the field is volatile (thread-safe)

    annotations?: Annotation[]

    Field annotations like @JsonProperty, @Column, etc.

    initializer?: CodeBlock

    The initializer expression for the field

    javadoc?: string

    Documentation/JavaDoc for the field