public class CompileResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
action |
static int |
ACTION_ABORT |
static int |
ACTION_CONTINUE |
static int |
ACTION_RECONFIGURE |
private java.lang.String[] |
cmdline
the command line
|
static int |
FAILED |
private java.lang.String |
message
the error message
|
private int |
status |
private java.lang.String |
stderr
the stderr of the command
|
private java.lang.String |
stdout
the stdout of the command
|
static int |
SUCCESS |
Constructor and Description |
---|
CompileResult()
constructor, create a new successful result
|
CompileResult(java.lang.String message,
java.lang.String[] cmdline,
java.lang.String stdout,
java.lang.String stderr)
creates a new CompileResult with status FAILED
|
Modifier and Type | Method and Description |
---|---|
int |
getAction() |
java.lang.String |
getCmdline()
get command line of failed command as a string
|
java.lang.String[] |
getCmdlineArray()
get command line of failed command as an array of strings
|
java.lang.String |
getMessage()
return error message
|
int |
getStatus() |
java.lang.String |
getStderr() |
java.lang.String |
getStdout() |
boolean |
isAbort()
check whether to abort (convenience function)
|
boolean |
isContinue()
check whether to continue (convenience function)
|
boolean |
isReconfigure()
check whether to reconfigure (convenience function)
|
boolean |
isSuccess()
check for success (convenience function)
|
void |
setAction(int action) |
void |
setStatus(int status) |
public static final int SUCCESS
public static final int FAILED
public static final int ACTION_ABORT
public static final int ACTION_CONTINUE
public static final int ACTION_RECONFIGURE
private int status
private int action
private java.lang.String message
private java.lang.String[] cmdline
private java.lang.String stdout
private java.lang.String stderr
public CompileResult()
public CompileResult(java.lang.String message, java.lang.String[] cmdline, java.lang.String stdout, java.lang.String stderr)
message
- description of the exceptioncmdline
- full command line of failed commandstdout
- standard output of failed commandstderr
- standard error of failed commandpublic void setStatus(int status)
public int getStatus()
public void setAction(int action)
public int getAction()
public boolean isSuccess()
public boolean isAbort()
public boolean isContinue()
public boolean isReconfigure()
public java.lang.String getMessage()
public java.lang.String getCmdline()
public java.lang.String[] getCmdlineArray()
public java.lang.String getStdout()
public java.lang.String getStderr()