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

io.github.kiryu1223.expressionTree.plugin.ExpressionTree Maven / Gradle / Ivy

There is a newer version: 1.4.5
Show newest version
package io.github.kiryu1223.expressionTree.plugin;

import com.sun.source.util.JavacTask;
import com.sun.source.util.Plugin;
import com.sun.tools.javac.api.BasicJavacTask;
import io.github.kiryu1223.expressionTree.ext.IExtensionService;
import io.github.kiryu1223.expressionTree.util.JDK;

import java.util.ServiceLoader;

public class ExpressionTree implements Plugin
{
    @Override
    public String getName()
    {
        return "ExpressionTree";
    }

    @Override
    public void init(JavacTask task, String... args)
    {
        JDK.breakSecurity();
        BasicJavacTask javacTask = (BasicJavacTask) task;
        ExprTreeTaskListener taskListener = new ExprTreeTaskListener(javacTask.getContext());
        javacTask.addTaskListener(taskListener);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy