All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.java.decompiler.main.plugins.JarPluginSource Maven / Gradle / Ivy

Go to download

Modern Java & JVM language decompiler aiming to be as accurate as possible, with an emphasis on output quality.

The newest version!
package org.jetbrains.java.decompiler.main.plugins;

import org.jetbrains.java.decompiler.api.plugin.Plugin;
import org.jetbrains.java.decompiler.api.plugin.PluginSource;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

public class JarPluginSource implements PluginSource {
    public JarPluginSource() {
    }

    public List findPlugins() {
      List plugins = new ArrayList<>();
      for (Class cl : JarPluginLoader.PLUGIN_CLASSES) {
        try {
          plugins.add((Plugin) cl.getDeclaredConstructor().newInstance());
        } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
          e.printStackTrace();
        }
      }

      return plugins;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy