Java Script Engine showEngineList()

Here you can find the source of showEngineList()

Description

show Engine List

License

Open Source License

Declaration

public static void showEngineList() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;

public class Main {
    public static void showEngineList() {
        ScriptEngineManager manager = new ScriptEngineManager();
        List<ScriptEngineFactory> factoryList = manager.getEngineFactories();
        System.out.println(factoryList.size());
        for (ScriptEngineFactory factory : factoryList) {
            System.out.println(factory.getEngineName() + "=" + factory.getLanguageName());
        }//from  www  .jav a2 s.  com
    }
}

Related

  1. listGems(ScriptEngine jruby)
  2. listScriptEngines()
  3. registerFactoryToManager(ScriptEngineFactory factory, ScriptEngineManager scriptEngineManager)
  4. retrieveEngineByName(ScriptEngineManager scriptEngineManager, String engineName)
  5. scriptEngine(String epStr, Map per)