Constructor
classin packageklyn.reflection
public class Constructor implements Invocable<Object>:
Constructor
All Implemented Interfaces: Invocable

Class representing a constructor.

Implements Invocable for uniform invocation.

Properties
Modifier and Type Member Description
public readonly property annotations
annotations as IList<Annotation>:
Constructor annotations
public property flags
flags as Int:
Raw modifier flags
public property isAccessible
isAccessible as Boolean:
Accessibility flag for private constructor access.
public readonly property isPrivate
isPrivate as Boolean:
No summary.
public readonly property name
name as String:
Name for Invocable interface
public readonly property parameterCount
parameterCount as Int:
Parameter count for Invocable interface
public readonly property parameters
parameters as IList<Parameter>:
Parameters of the constructor
public readonly property returnType
returnType as String:
Return type for Invocable interface (the constructed type)
Properties inherited from Invocable: name, parameterCount, returnType
Constructors
Modifier and Type Member Description
public Constructor
Constructor(parameters as IList<Parameter> = [], flags as Int = 0, annotations as IList<Annotation> = []):
Constructor for Constructor
Methods
Modifier and Type Member Description
public invoke
invoke(args as Object[]) as Object throws Exception:
Invokes the constructor with arguments.
Methods inherited from Invocable: invoke
Operators
Modifier and Type Member Description
public operator call(args as Object[]) as Object throws Exception: Direct call operator.
Operators inherited from Invocable: operator call(args as Object[]) as ReturnType throws Exception