|
|||||||||
| Home >> All >> org >> eclipse >> core >> [ expressions overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.core.expressions
Class EvaluationResult

java.lang.Objectorg.eclipse.core.expressions.EvaluationResult
- public class EvaluationResult
- extends java.lang.Object
An evaluation result represents the result of an expression
evaluation. There are exact three instances of evaluation
result. They are: FALSE, TRUE and
NOT_LOADED. NOT_LOADED represents
the fact that an expression couldn't be evaluated since a
plug-in providing certain test expressions isn't loaded yet.
In addition the class implements the three operation and
, or and not. The operation are
defined as follows:
The and operation:
| AND | FALSE | TRUE | NOT_LOADED |
| FALSE | FALSE | FALSE | FALSE |
| TRUE | FALSE | TRUE | NOT_LOADED |
| NOT_LOADED | FALSE | NOT_LOADED | NOT_LOADED |
The or operation:
| OR | FALSE | TRUE | NOT_LOADED |
| FALSE | FALSE | TRUE | NOT_LOADED |
| TRUE | TRUE | TRUE | TRUE |
| NOT_LOADED | NOT_LOADED | TRUE | NOT_LOADED |
The not operation:
| NOT | FALSE | TRUE | NOT_LOADED |
| TRUE | FALSE | NOT_LOADED |
The class is not intended to be subclassed by clients.
- Since:
- 3.0
| Field Summary | |
private static EvaluationResult[][] |
AND
|
static EvaluationResult |
FALSE
The evaluation result representing the value FALSE |
private static int |
FALSE_VALUE
|
private int |
fValue
|
private static EvaluationResult[] |
NOT
|
static EvaluationResult |
NOT_LOADED
The evaluation result representing the value NOT_LOADED |
private static int |
NOT_LOADED_VALUE
|
private static EvaluationResult[][] |
OR
|
static EvaluationResult |
TRUE
The evaluation result representing the value TRUE |
private static int |
TRUE_VALUE
|
| Constructor Summary | |
private |
EvaluationResult(int value)
|
| Method Summary | |
EvaluationResult |
and(EvaluationResult other)
Returns an EvaluationResult whose value is this && other). |
EvaluationResult |
not()
Returns the inverted value of this evaluation result |
EvaluationResult |
or(EvaluationResult other)
Returns an EvaluationResult whose value is this || other). |
java.lang.String |
toString()
For debugging purpose only |
static EvaluationResult |
valueOf(boolean b)
Returns an evaluation result instance representing the given boolean value. |
static EvaluationResult |
valueOf(java.lang.Boolean b)
Returns a evaluation result instance representing the given Boolean value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
fValue
private int fValue
FALSE_VALUE
private static final int FALSE_VALUE
- See Also:
- Constant Field Values
TRUE_VALUE
private static final int TRUE_VALUE
- See Also:
- Constant Field Values
NOT_LOADED_VALUE
private static final int NOT_LOADED_VALUE
- See Also:
- Constant Field Values
FALSE
public static final EvaluationResult FALSE
- The evaluation result representing the value FALSE
TRUE
public static final EvaluationResult TRUE
- The evaluation result representing the value TRUE
NOT_LOADED
public static final EvaluationResult NOT_LOADED
- The evaluation result representing the value NOT_LOADED
AND
private static final EvaluationResult[][] AND
OR
private static final EvaluationResult[][] OR
NOT
private static final EvaluationResult[] NOT
| Constructor Detail |
EvaluationResult
private EvaluationResult(int value)
| Method Detail |
and
public EvaluationResult and(EvaluationResult other)
- Returns an
EvaluationResultwhose value isthis && other).
or
public EvaluationResult or(EvaluationResult other)
- Returns an
EvaluationResultwhose value isthis || other).
not
public EvaluationResult not()
- Returns the inverted value of this evaluation result
valueOf
public static EvaluationResult valueOf(boolean b)
- Returns an evaluation result instance representing the
given boolean value. If the given boolean value is
truethenExpressionResult.TRUEis returned. If the value isfalsethenExpressionResult.FALSEis returned.
valueOf
public static EvaluationResult valueOf(java.lang.Boolean b)
- Returns a evaluation result instance representing the
given
Booleanvalue. If the givenBooleanvalue istruethenExpressionResult.TRUEis returned. If the value isfalsethenExpressionResult.FALSEis returned.
toString
public java.lang.String toString()
- For debugging purpose only
|
|||||||||
| Home >> All >> org >> eclipse >> core >> [ expressions overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.eclipse.core.expressions.EvaluationResult