]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/scl/SCL/CommandSession.scl
Expose CommandSession in SCL
[simantics/platform.git] / bundles / org.simantics.scl.compiler / scl / SCL / CommandSession.scl
1 // This module is meant to be imported with namespace
2 import "SCL/ModuleRepository"
3 import "SafeDynamic"
4
5 importJava "org.simantics.scl.compiler.commands.CommandSession" where
6     data CommandSession
7     
8     @JavaName "<init>"
9     create :: ModuleRepository -> <Proc> CommandSession
10
11     execute :: CommandSession -> String -> <Proc> ()
12     
13     @JavaName getVariableValueAndType
14     get :: CommandSession -> String -> <Proc> Maybe SafeDynamic
15     @JavaName setVariable
16     set :: CommandSession -> String -> SafeDynamic -> <Proc> ()
17     
18     @JavaName removeVariable
19     remove :: CommandSession -> String -> <Proc> ()