|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.cli.internal.Command
public abstract class Command
Common interface for all commands.
| Field Summary | |
|---|---|
boolean |
help
Flag whether help should be printed for this command. |
static String |
JAVACMD
Common command line prefix. |
boolean |
quiet
Flag whether output to stdout should be suppressed. |
| Constructor Summary | |
|---|---|
Command()
|
|
| Method Summary | |
|---|---|
abstract String |
description()
|
abstract int |
execute(PrintWriter out,
PrintWriter err)
Executes the given command. |
String |
name()
|
protected void |
printHelp(PrintWriter writer)
Prints textual help for this command. |
String |
usage(CommandParser parser)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JAVACMD
public boolean help
public boolean quiet
| Constructor Detail |
|---|
public Command()
| Method Detail |
|---|
public abstract String description()
public String name()
public String usage(CommandParser parser)
parser - parser for this command
public abstract int execute(PrintWriter out,
PrintWriter err)
throws Exception
out - std outerr - std err
Exception - any exception that my occur during executionprotected void printHelp(PrintWriter writer)
writer - output destination
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||