Amplication AST Libraries Documentation
    Preparing search index...

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

    Args

    interface Args {
        reference?: ClassReference;
        name?: string;
        argument?: string | AstNode;
        namedArguments?: Map<string, string | AstNode>;
    }
    Index

    Properties

    reference?: ClassReference

    Reference to the annotation class

    name?: string

    Name of the annotation (alternative to providing reference)

    argument?: string | AstNode

    Argument for simple annotations, like

    namedArguments?: Map<string, string | AstNode>

    Named arguments for annotations with parameters, like @RequestMapping(value="/path")