com.oracle.truffle.api.TruffleLanguage Java Examples
The following examples show how to use
com.oracle.truffle.api.TruffleLanguage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DebugSLTest.java From netbeans with Apache License 2.0 | 6 votes |
public static Test suite() throws URISyntaxException { final File sdkAPI = new File(Engine.class.getProtectionDomain().getCodeSource().getLocation().toURI()); final File truffleAPI = new File(TruffleLanguage.class.getProtectionDomain().getCodeSource().getLocation().toURI()); final File sl = new File(SLLanguage.class.getProtectionDomain().getCodeSource().getLocation().toURI()); final File antlr4 = new File(org.antlr.v4.runtime.Parser.class.getProtectionDomain().getCodeSource().getLocation().toURI()); final File junit = new File(TestCase.class.getProtectionDomain().getCodeSource().getLocation().toURI()); assertTrue("SDK API exists: " + sdkAPI, sdkAPI.exists()); assertTrue("truffle-api JAR exists: " + truffleAPI, truffleAPI.exists()); assertTrue("sl JAR exists: " + sl, sl.exists()); assertTrue("antlr4 JAR exists: " + antlr4, antlr4.exists()); assertTrue("junit JAR exists: " + junit, junit.exists()); System.setProperty("graal-sdk.jar", sdkAPI.getAbsolutePath()); System.setProperty("truffle.jar", truffleAPI.getAbsolutePath()); System.setProperty("sl.jar", sl.getAbsolutePath()); System.setProperty("antlr4.jar", antlr4.getAbsolutePath()); System.setProperty("junit.jar", junit.getAbsolutePath()); return JPDASupport.createTestSuite(DebugSLTest.class); }
Example #2
Source File: GrCUDALanguage.java From grcuda with BSD 3-Clause "New" or "Revised" License | 4 votes |
public static GrCUDALanguage getCurrentLanguage() { return TruffleLanguage.getCurrentLanguage(GrCUDALanguage.class); }
Example #3
Source File: AbstractSqueakObject.java From trufflesqueak with MIT License | 4 votes |
@ExportMessage @SuppressWarnings("static-method") public final Class<? extends TruffleLanguage<?>> getLanguage() { return SqueakLanguage.class; }
Example #4
Source File: MumblerLanguage.java From mumbler with GNU General Public License v3.0 | 4 votes |
@Override protected Object createContext(TruffleLanguage.Env env) { return new MumblerContext(this); }