Amplication AST Libraries Documentation
    Preparing search index...

    Represents a Java annotation in the AST. This class handles the generation of Java annotations including their arguments and references to annotation classes.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    • Creates a new Annotation instance with the specified configuration. Either a reference to the annotation class or its name must be provided.

      Parameters

      Returns Annotation

      If neither reference nor name is provided

    Methods

    • Writes the annotation declaration to the writer. This includes the annotation name, arguments, and named parameters.

      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