Interface ToolInvoker

All Known Subinterfaces:
CCompilerInvoker, LinkerInvoker, MessagingToolInvoker

public interface ToolInvoker
An invoker for an external program such as a compiler or linker.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the path of the program that was run.
    Get the tool corresponding to the invoker.
    void
    Invoke the program.
  • Method Details

    • getTool

      Tool getTool()
      Get the tool corresponding to the invoker.
      Returns:
      the tool (not null)
    • getPath

      Path getPath()
      Get the path of the program that was run.
      Returns:
      the path (not null)
    • invoke

      void invoke() throws IOException
      Invoke the program.
      Throws:
      IOException - if program invocation failed for some reason