这不是官方列表,但您可以从此处开始:http :
//en.wikipedia.org/wiki/List_of_JVM_languages
Rhino(Javascript)默认在Oracle JDK / JRE中实现。
通过此代码,您可以查看JDK中可用的脚本语言:
import java.util.*;import javax.script.*;public class A { public static void main( String[] args ) { scriptEngineManager mgr = new scriptEngineManager(); List<scriptEngineFactory> factories = mgr.getEngineFactories(); for (scriptEngineFactory factory : factories) { System.out.println("scriptEngineFactory Info"); String engName = factory.getEngineName(); String engVersion = factory.getEngineVersion(); String langName = factory.getLanguageName(); String langVersion = factory.getLanguageVersion(); System.out.printf("tscript Engine: %s (%s)%n", engName, engVersion); List<String> engNames = factory.getNames(); for(String name : engNames) { System.out.printf("tEngine Alias: %s%n", name); } System.out.printf("tLanguage: %s (%s)%n", langName, langVersion); } }}
可从以下位置获得此示例:http
:
//www.oracle.com/technetwork/articles/javase/scripting-140262.html
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)