public class EvaluationResult
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
T_CODE_SNIPPET
The evaluation result contains the value of a code snippet or
it reports a problem on a code snippet.
|
static int |
T_IMPORT
The evaluation result reports a problem on an import declaration.
|
static int |
T_INTERNAL
The evaluation result reports an internal problem.
|
static int |
T_PACKAGE
The evaluation result reports a problem on a package declaration.
|
static int |
T_VARIABLE
The evaluation result contains the value of a variable or
it reports a problem on a variable.
|
| Constructor and Description |
|---|
EvaluationResult(char[] evaluationID,
int evaluationType,
CategorizedProblem[] problems) |
EvaluationResult(char[] evaluationID,
int evaluationType,
char[] displayString,
char[] typeName) |
| Modifier and Type | Method and Description |
|---|---|
char[] |
getEvaluationID()
Returns the ID of the evaluation.
|
int |
getEvaluationType()
Returns the type of evaluation this result is about.
|
CategorizedProblem[] |
getProblems()
Returns an array of problems (errors and warnings) encountered
during the compilation of a code snippet or a global variable definition,
or during the analysis of a package name or an import.
|
java.lang.Object |
getValue()
Returns a proxy object on this result's value.
|
char[] |
getValueDisplayString()
Returns the displayable representation of this result's value.
|
char[] |
getValueTypeName()
Returns the dot-separated fully qualified name of this result's value type.
|
boolean |
hasErrors()
Returns whether there are errors in the code snippet or the global variable definition.
|
boolean |
hasProblems()
Returns whether there are problems in the code snippet or the global variable definition.
|
boolean |
hasValue()
Returns whether this result has a value.
|
boolean |
hasWarnings()
Returns whether there are warnings in the code snippet or the global variable definition.
|
java.lang.String |
toString()
Returns a readable representation of this result.
|
public static final int T_VARIABLE
public static final int T_CODE_SNIPPET
public static final int T_IMPORT
public static final int T_PACKAGE
public static final int T_INTERNAL
public EvaluationResult(char[] evaluationID,
int evaluationType,
char[] displayString,
char[] typeName)
public EvaluationResult(char[] evaluationID,
int evaluationType,
CategorizedProblem[] problems)
public char[] getEvaluationID()
public int getEvaluationType()
public CategorizedProblem[] getProblems()
public java.lang.Object getValue()
public char[] getValueDisplayString()
public char[] getValueTypeName()
public boolean hasErrors()
public boolean hasProblems()
public boolean hasValue()
public boolean hasWarnings()
public java.lang.String toString()
toString in class java.lang.Object