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






ScriptEngineFactory: getLanguageName()

  

import java.util.List;

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

public class Main {
  public static void main(String args[]) {
    ScriptEngineManager manager = new ScriptEngineManager();
    List<ScriptEngineFactory> factories = manager.getEngineFactories();
    for (ScriptEngineFactory factory : factories) {
      System.out.println(factory.getEngineName());
      System.out.println(factory.getEngineVersion());
      System.out.println(factory.getLanguageName());
      System.out.println(factory.getLanguageVersion());
      System.out.println(factory.getExtensions());
      System.out.println(factory.getMimeTypes());
      System.out.println(factory.getNames());
    }
  }
}

   
    
  








Related examples in the same category

1.ScriptEngineFactory: getEngineFactories()
2.ScriptEngineFactory: getEngineName()
3.ScriptEngineFactory: getEngineVersion()
4.ScriptEngineFactory: getExtensions()
5.ScriptEngineFactory: getLanguageVersion()
6.ScriptEngineFactory: getMimeTypes()
7.ScriptEngineFactory: getNames()