klyn.reflection.Constructor.Constructor
constructor

    public Constructor(declaringClass as String = "", index as Int = -1, parameters as IList<Parameter> = [], flags as Int = 0, annotations as IList<Annotation> = []):

Description

Builds constructor metadata.

Parameters

Parameter | Description
--- | ---
`declaringClass` | Full reflected name of the declaring class.
`index` | Runtime constructor index on the declaring class.
`parameters` | Constructor parameters.
`flags` | Raw modifier flags.
`annotations` | Constructor annotations.

Example

    ctor = Constructor("demo.User", 0, [], Type.FLAG_PUBLIC)
    assert ctor.declaringClass == "demo.User"