new ScriptEngineManager() : ScriptEngineManager « javax.script « Java by API






new ScriptEngineManager()

     

import java.util.List;

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

public class Main {

  public static void main(String[] args) {
    // create ScriptEngineManager
    ScriptEngineManager manager = new ScriptEngineManager();
    List<ScriptEngineFactory> factoryList = manager.getEngineFactories();
    for (ScriptEngineFactory factory : factoryList) {
      System.out.println(factory.getEngineName());
      System.out.println(factory.getLanguageName());
    }
  }
}

   
    
    
    
    
  








Related examples in the same category

1.ScriptEngineManager: getEngineByMimeType(String mimeType)
2.ScriptEngineManager: getEngineByName(String shortName)