Amplication AST Libraries Documentation
    Preparing search index...

    Represents a Java field in the AST. This class handles the generation of Java field declarations including type, modifiers, annotations, and initialization.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string

    The name of the field

    access: Access

    The access level of the field

    Methods

    • Writes the field declaration and its contents to the writer. This includes JavaDoc, annotations, modifiers, type, name, and initializer.

      Parameters

      • writer: Writer

        The writer to write to

      Returns void

    • Returns the string representation of the AST node. This method creates a new Writer instance and writes the node's content to it.

      Returns string

      The string representation of the AST node