Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/vm/ImplicitExplicitExportTest.java @ 21889:45083be8a812
Truffle: add a version string to the information provided with Language registration
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Fri, 05 Jun 2015 18:05:13 -0700 |
parents | 2f9e4d984d16 |
children | 894f82515e38 |
comparison
equal
deleted
inserted
replaced
21755:c052d68e7eac | 21889:45083be8a812 |
---|---|
163 | 163 |
164 private static final String L1 = "application/x-test-import-export-1"; | 164 private static final String L1 = "application/x-test-import-export-1"; |
165 private static final String L2 = "application/x-test-import-export-2"; | 165 private static final String L2 = "application/x-test-import-export-2"; |
166 private static final String L3 = "application/x-test-import-export-3"; | 166 private static final String L3 = "application/x-test-import-export-3"; |
167 | 167 |
168 @TruffleLanguage.Registration(mimeType = L1, name = "ImportExport1") | 168 @TruffleLanguage.Registration(mimeType = L1, name = "ImportExport1", version = "0") |
169 public static final class ExportImportLanguage1 extends AbstractExportImportLanguage { | 169 public static final class ExportImportLanguage1 extends AbstractExportImportLanguage { |
170 public ExportImportLanguage1(Env env) { | 170 public ExportImportLanguage1(Env env) { |
171 super(env); | 171 super(env); |
172 } | 172 } |
173 } | 173 } |
174 | 174 |
175 @TruffleLanguage.Registration(mimeType = L2, name = "ImportExport2") | 175 @TruffleLanguage.Registration(mimeType = L2, name = "ImportExport2", version = "0") |
176 public static final class ExportImportLanguage2 extends AbstractExportImportLanguage { | 176 public static final class ExportImportLanguage2 extends AbstractExportImportLanguage { |
177 public ExportImportLanguage2(Env env) { | 177 public ExportImportLanguage2(Env env) { |
178 super(env); | 178 super(env); |
179 } | 179 } |
180 } | 180 } |
181 | 181 |
182 @TruffleLanguage.Registration(mimeType = L3, name = "ImportExport3") | 182 @TruffleLanguage.Registration(mimeType = L3, name = "ImportExport3", version = "0") |
183 public static final class ExportImportLanguage3 extends AbstractExportImportLanguage { | 183 public static final class ExportImportLanguage3 extends AbstractExportImportLanguage { |
184 public ExportImportLanguage3(Env env) { | 184 public ExportImportLanguage3(Env env) { |
185 super(env); | 185 super(env); |
186 } | 186 } |
187 } | 187 } |