All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ceylon.language.meta.model.Value.ceylon Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
import ceylon.language.meta.declaration { ValueDeclaration }

"""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 val = `foo`;
           // This will print: Hello
           print(val.get());
       }
 """
shared sealed interface Value
        satisfies ValueModel&Gettable {

    "This value's declaration."
    shared formal actual ValueDeclaration declaration;
    
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy