Amplication AST Libraries Documentation
    Preparing search index...

    Represents a block of Java code in the AST. This class handles the generation of code blocks including string-based and function-based code generation.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Writes the code block to the writer. For string-based code blocks, adds any necessary class references first. For function-based code blocks, calls the function with the writer.

      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