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

com.teamscale.jacoco.agent.commandline.ICommand Maven / Gradle / Ivy

Go to download

JVM profiler that simplifies various aspects around recording and uploading test coverage

There is a newer version: 34.0.2
Show newest version
/*-------------------------------------------------------------------------+
|                                                                          |
| 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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy