Amplication AST Libraries Documentation
    Preparing search index...

    Interface defining the structure of a constructor in a Java class.

    Constructor

    interface Constructor {
        body?: CodeBlock;
        parameters: Parameter[];
        access: Access;
        annotations?: Annotation[];
        superCall?: CodeBlock;
        thisCall?: CodeBlock;
        throws?: ClassReference[];
    }
    Index

    Properties

    body?: CodeBlock

    The body of the constructor

    parameters: Parameter[]

    The parameters of the constructor

    access: Access

    The access level of the constructor

    annotations?: Annotation[]

    Constructor annotations

    superCall?: CodeBlock

    Whether this constructor calls another constructor with super()

    thisCall?: CodeBlock

    Whether this constructor calls another constructor with this()

    throws?: ClassReference[]

    Exceptions thrown by this constructor