Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Afficher Les informations sur les moteurs de script disponible


{filelink=963}

 
import java.util.List;
 
import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
 
public class InfoMoteurScript
 {
  public static void main(String[] args) throws Exception
    {
    ScriptEngineManager list = new ScriptEngineManager();
    List<ScriptEngineFactory> engines = list.getEngineFactories();
    for (ScriptEngineFactory engine : engines)
     {
      System.out.println("--|"+engine.getEngineName()+"--|");
      for (String n : engine.getNames())
      {
        System.out.println("-->: " + n);
      }
    }
  }
}