Class JextractTool.JextractToolProvider

java.lang.Object
jdk.incubator.jextract.JextractTool.JextractToolProvider
All Implemented Interfaces:
ToolProvider
Enclosing class:
JextractTool

public static class JextractTool.JextractToolProvider extends Object implements ToolProvider
ToolProvider implementation for jextract tool.
  • Constructor Details

    • JextractToolProvider

      public JextractToolProvider()
  • Method Details

    • name

      public String name()
      Description copied from interface: ToolProvider
      Returns the name of this tool provider.
      Specified by:
      name in interface ToolProvider
      Returns:
      the name of this tool provider
    • run

      public int run(PrintWriter out, PrintWriter err, String... args)
      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 interface ToolProvider
      Parameters:
      out - a stream to which "expected" output should be written
      err - a stream to which any error messages should be written
      args - 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.