A value model represents the model of a Ceylon value that you can read and inspect.
A value is a toplevel binding, declared on a package.
This is a ValueModel
that you can query for a value declaration's current value:
shared String foo = "Hello"; void test(){ Value<String> val = `foo`; // This will print: Hello print(val.get()); }
no type hierarchy
no subtypes hierarchy
Attributes | |
declaration | Source Codeshared formal ValueDeclaration declaration This value's declaration. |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Declared |
Attributes inherited from: Model |
Attributes inherited from: ValueModel<Get,Set> |