All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.qbicc.machine.tool.ToolInvoker Maven / Gradle / Ivy

There is a newer version: 0.77.0
Show newest version
package org.qbicc.machine.tool;

import java.io.IOException;
import java.nio.file.Path;

/**
 * An invoker for an external program such as a compiler or linker.
 */
public interface ToolInvoker {
    /**
     * Get the tool corresponding to the invoker.
     *
     * @return the tool (not {@code null})
     */
    Tool getTool();

    /**
     * Get the path of the program that was run.
     *
     * @return the path (not {@code null})
     */
    Path getPath();

    /**
     * Invoke the program.
     *
     * @throws IOException if program invocation failed for some reason
     */
    void invoke() throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy