Module jdk.incubator.jextract
Package jdk.incubator.jextract
Class JextractTool.JextractToolProvider
java.lang.Object
jdk.incubator.jextract.JextractTool.JextractToolProvider
- All Implemented Interfaces:
ToolProvider
- Enclosing class:
JextractTool
ToolProvider implementation for jextract tool.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Returns the name of this tool provider.int
run
(PrintWriter out, PrintWriter err, String... args) Runs an instance of the tool, returning zero for a successful run.Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface java.util.spi.ToolProvider
run
-
Constructor Details
-
JextractToolProvider
public JextractToolProvider()
-
-
Method Details
-
name
Description copied from interface:ToolProvider
Returns the name of this tool provider.- Specified by:
name
in interfaceToolProvider
- Returns:
- the name of this tool provider
-
run
Description copied from interface:ToolProvider
Runs an instance of the tool, returning zero for a successful run. Any non-zero return value indicates a tool-specific error during the execution. Two streams should be provided, for "expected" output, and for any error messages. If it is not necessary to distinguish the output, the same stream may be used for both.- Specified by:
run
in interfaceToolProvider
- Parameters:
out
- a stream to which "expected" output should be writtenerr
- a stream to which any error messages should be writtenargs
- the command-line arguments for the tool- Returns:
- the result of executing the tool. A return value of 0 means the tool did not encounter any errors; any other value indicates that at least one error occurred during execution.
-