ScriptEngineFactory: getEngineFactories() : ScriptEngineFactory « javax.script « Java by API






ScriptEngineFactory: getEngineFactories()

  

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.ScriptEngineFactory: getEngineName()
2.ScriptEngineFactory: getEngineVersion()
3.ScriptEngineFactory: getExtensions()
4.ScriptEngineFactory: getLanguageName()
5.ScriptEngineFactory: getLanguageVersion()
6.ScriptEngineFactory: getMimeTypes()
7.ScriptEngineFactory: getNames()