com.teamscale.jacoco.agent.commandline.ICommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of teamscale-jacoco-agent Show documentation
Show all versions of teamscale-jacoco-agent Show documentation
JVM profiler that simplifies various aspects around recording and uploading test coverage
/*-------------------------------------------------------------------------+
| |
| Copyright (c) 2009-2017 CQSE GmbH |
| |
+-------------------------------------------------------------------------*/
package com.teamscale.jacoco.agent.commandline;
import com.teamscale.jacoco.agent.options.AgentOptionParseException;
import java.io.IOException;
/**
* Interface for commands: argument parsing and execution.
*/
public interface ICommand {
/**
* Makes sure the arguments are valid. Must return all detected problems in the
* form of a user-visible message.
*/
Validator validate() throws AgentOptionParseException, IOException;
/**
* Runs the implementation of the command. May throw an exception to indicate
* abnormal termination of the program.
*/
void run() throws Exception;
}