Package org.orekit.compiler.plugin
Class DefaultDataContextPlugin
- java.lang.Object
-
- org.orekit.compiler.plugin.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
ProcessesDefaultDataContext
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 addedtools.jar
to the class path.tools.jar
is part of the JDK, not JRE, and is typically located atJAVA_HOME/../lib/tools.jar
.- Since:
- 10.1
- Author:
- Evan Ward
-
-
Constructor Summary
Constructors Constructor Description DefaultDataContextPlugin()
Empty constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finished(com.sun.source.util.TaskEvent taskEvent)
String
getName()
void
init(com.sun.source.util.JavacTask javacTask, String... args)
void
started(com.sun.source.util.TaskEvent taskEvent)
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfacecom.sun.source.util.Plugin
-
init
public void init(com.sun.source.util.JavacTask javacTask, String... args)
- Specified by:
init
in interfacecom.sun.source.util.Plugin
-
started
public void started(com.sun.source.util.TaskEvent taskEvent)
- Specified by:
started
in interfacecom.sun.source.util.TaskListener
-
finished
public void finished(com.sun.source.util.TaskEvent taskEvent)
- Specified by:
finished
in interfacecom.sun.source.util.TaskListener
-
-