X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fscl%2FSCL%2FReflection.scl;h=3e8aeb97be5f2dda3e33ffabd349d6838e5f89dd;hb=7444d4b3a2f3c25fac462d8a168898656dafd52e;hp=cf8b88eeac1aa42ded978b60a4b6cd77d735d98a;hpb=db54e4ca935111cfe3574a01bb9be3cf083258cc;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.compiler/scl/SCL/Reflection.scl b/bundles/org.simantics.scl.compiler/scl/SCL/Reflection.scl index cf8b88eea..3e8aeb97b 100644 --- a/bundles/org.simantics.scl.compiler/scl/SCL/Reflection.scl +++ b/bundles/org.simantics.scl.compiler/scl/SCL/Reflection.scl @@ -1,27 +1,5 @@ module { - export = [possibleUnsafeSclValueByName, unsafeSclValueByName, sclModuleNames] + deprecated = "Use more specialized modules like ModuleRepository" } -include "SCL/ReflectionJava" - -importJava "org.simantics.scl.compiler.module.repository.ModuleRepository" where - @JavaName getValue - unsafeSclValueByName_ :: ModuleRepository -> String -> a - - @JavaName getSourceRepository - moduleSourceRepositoryOf :: ModuleRepository -> ModuleSourceRepository - -importJava "org.simantics.scl.compiler.source.repository.ModuleSourceRepository" where - data ModuleSourceRepository - - @JavaName getModuleNames - sclModuleNames_ :: ModuleSourceRepository -> [String] - -unsafeSclValueByName :: String -> a -unsafeSclValueByName = unsafeSclValueByName_ MODULE_REPOSITORY - -possibleUnsafeSclValueByName :: String -> Maybe a -possibleUnsafeSclValueByName name = Just (unsafeSclValueByName name) `catch` \(_ :: Exception) -> Nothing - -sclModuleNames :: [String] -sclModuleNames = sclModuleNames_ (moduleSourceRepositoryOf MODULE_REPOSITORY) +include "./ModuleRepository" \ No newline at end of file