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 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());
}
}
}
/*
*/
Full name = Mozilla Rhino
Version = 1.6 release 2
Supported language version = 1.6