import java.util.List;
import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
public class MetadataDemo {
public static void main(String[] args) {
ScriptEngineManager manager = new ScriptEngineManager();
List<ScriptEngineFactory> factories = manager.getEngineFactories();
for (ScriptEngineFactory factory : factories) {
System.out.println("Full name = " + factory.getEngineName());
System.out.println("\nVersion = " + factory.getEngineVersion());
System.out.println("\nSupported language version = " + factory.getLanguageVersion());
}
}
}
/*
*/
|