Skip to content

Commit

Permalink
Add ability to access language classes
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Feb 11, 2022
1 parent fbb9a61 commit a289d9d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
experimental
languageClass: aSymbol
^ self primitiveLoadLanguageClass: aSymbol
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
primitives internal
primitiveLoadLanguageClass: aSymbol
<primitive: 'primitiveLoadLanguageClass' module: 'PolyglotPlugin'>
self error: aSymbol, ' not found'
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
"asInteger:" : "fn 3/9/2021 13:58",
"asString:" : "fn 3/9/2021 13:59",
"asTriState:" : "fn 3/4/2021 11:55",
"languageClass:" : "fn 2/11/2022 09:39",
"parseExceptionType" : "fn 3/4/2021 12:04",
"primitiveAddToHostClassPath:" : "fn 6/26/2021 14:36",
"primitiveIsHostLookupAllowed" : "fn 11/4/2019 00:01",
"primitiveLoadLanguageClass:" : "fn 2/11/2022 09:39",
"primitiveLookupHostSymbol:" : "fn 11/13/2019 16:13",
"runtimeExceptionType" : "fn 3/4/2021 12:03",
"throwAsPolyglotException:" : "fn 3/5/2021 16:54",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testing
testLanguageClass
self assert: (Java languageClass: 'de.hpi.swa.trufflesqueak.util.MiscUtils') getUptime > 0
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
"testJavaLocalDate" : "fn 12/12/2019 23:15",
"testJavaLocalTime" : "fn 12/12/2019 23:15",
"testJavaString" : "fn 11/4/2019 00:10",
"testJavaZoneId" : "fn 12/12/2019 23:37" } }
"testJavaZoneId" : "fn 12/12/2019 23:37",
"testLanguageClass" : "fn 2/11/2022 09:52" } }

0 comments on commit a289d9d

Please sign in to comment.