Satisfied Interfaces: Callable<Type,Arguments>, ClassModel<Type,Arguments>, ClassOrInterface<Type>, Generic, Model, Type<Type>

A class model represents the model of a Ceylon class that you can instantiate and inspect.

A class is a toplevel type, declared on a package.

This is a ClassModel that you can also invoke to instantiate new instances of the class:

shared class Foo(String name){
    shared String hello => "Hello "+name;
}

void test(){
    Class<Foo,[String]> c = `Foo`;
    // This will print: Hello Stef
    print(c("Stef").hello);
}
Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: ClassModel<Type,Arguments>
Attributes inherited from: ClassOrInterface<Type>
Attributes inherited from: Generic
Attributes inherited from: Model
Methods
applySource Code

Type-unsafe initialiser application, to be used when the argument types are unknown until runtime.

This has the same behaviour as invoking this Class directly, but exchanges compile-time type safety with runtime checks.

Throws:
Inherited Methods
Methods inherited from: Object
Methods inherited from: ClassOrInterface<Type>
Methods inherited from: Type<Type>