|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.eval.EvaluationResult
public class EvaluationResult
An EvaluationResult is the result of a code snippet evaluation, a global variable evaluation or it is used to report problems against imports and package declaration. It primarily contains the representation of the resulting value (eg. its toString() representation). However if the code snippet, a global variable definition, an import or the package declaration could not be compiled, it contains the corresponding compilation problems.
Field Summary | |
---|---|
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 Summary | |
---|---|
EvaluationResult(char[] evaluationID,
int evaluationType,
CategorizedProblem[] problems)
|
|
EvaluationResult(char[] evaluationID,
int evaluationType,
char[] displayString,
char[] typeName)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public EvaluationResult(char[] evaluationID, int evaluationType, char[] displayString, char[] typeName)
public EvaluationResult(char[] evaluationID, int evaluationType, CategorizedProblem[] problems)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |