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 | |
| apply | Source Code Type-unsafe initialiser application, to be used when the argument types are unknown until runtime. This has the same behaviour as invoking this Throws:
|
| Inherited Methods |
| Methods inherited from: Object |
| Methods inherited from: ClassOrInterface<Type> |
| Methods inherited from: Type<Type> |