comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/LanguageRegistrationProcessor.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
comparison
equal deleted inserted replaced
21755:c052d68e7eac 21889:45083be8a812
54 continue; 54 continue;
55 } 55 }
56 String prefix = "language" + ++cnt + "."; 56 String prefix = "language" + ++cnt + ".";
57 String className = processingEnv.getElementUtils().getBinaryName(l).toString(); 57 String className = processingEnv.getElementUtils().getBinaryName(l).toString();
58 p.setProperty(prefix + "name", annotation.name()); 58 p.setProperty(prefix + "name", annotation.name());
59 p.setProperty(prefix + "version", annotation.version());
59 p.setProperty(prefix + "className", className); 60 p.setProperty(prefix + "className", className);
60 String[] mimes = annotation.mimeType(); 61 String[] mimes = annotation.mimeType();
61 for (int i = 0; i < mimes.length; i++) { 62 for (int i = 0; i < mimes.length; i++) {
62 p.setProperty(prefix + "mimeType." + i, mimes[i]); 63 p.setProperty(prefix + "mimeType." + i, mimes[i]);
63 } 64 }