Class DefaultDataContextPlugin

  • All Implemented Interfaces:
    com.sun.source.util.Plugin, com.sun.source.util.TaskListener

    @SupportedAnnotationTypes("org.orekit.annotation.DefaultDataContext")
    @SupportedSourceVersion(RELEASE_8)
    public class DefaultDataContextPlugin
    extends Object
    implements com.sun.source.util.Plugin, com.sun.source.util.TaskListener
    Processes DefaultDataContext to issue warnings at compile time.

    To use this plugin add -Xplugin:dataContextPlugin to the javac command line. Tested with OpenJDK 8 and 11.

    Do not reference this class unless executing within javac or you have added tools.jar to the class path. tools.jar is part of the JDK, not JRE, and is typically located at JAVA_HOME/../lib/tools.jar.

    Since:
    10.1
    Author:
    Evan Ward
    • Constructor Detail

      • DefaultDataContextPlugin

        public DefaultDataContextPlugin()
        Empty constructor.

        This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.

        Since:
        12.0
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface com.sun.source.util.Plugin
      • init

        public void init​(com.sun.source.util.JavacTask javacTask,
                         String... args)
        Specified by:
        init in interface com.sun.source.util.Plugin
      • started

        public void started​(com.sun.source.util.TaskEvent taskEvent)
        Specified by:
        started in interface com.sun.source.util.TaskListener
      • finished

        public void finished​(com.sun.source.util.TaskEvent taskEvent)
        Specified by:
        finished in interface com.sun.source.util.TaskListener