A callable constructor model represents the model of a Ceylon class value constructor that you can get and inspect


As with Value you can also get the value of a ValueConstructor, doing so obtains instance:

 shared class Color {
     shared String hex;
     shared new black {
     shared new white {

 void test() {
 ValueConstructor<Color> ctor = `Color.black`;
 // This will print: #000000
Since 1.2.0

no type hierarchy

no subtypes hierarchy

containerSource Codeshared formal Class<Type,Nothing>? container

The class containing this constructor; the type of instances produced by this constructor.

Refines Model.container ultimately refines Declared.container
declarationSource Codeshared formal ValueConstructorDeclaration declaration

This value's declaration.

Refines ValueModel.declaration ultimately refines Declared.declaration
typeSource Codeshared formal Class<Type,Nothing> type

This value's closed type.

Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Declared
Attributes inherited from: Model
Attributes inherited from: ValueModel<Get,Set>
Inherited Methods
Methods inherited from: Object
Methods inherited from: Gettable<Get,Set>