public class EvaluationResult extends Object
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.
| Modifier and Type | Field and Description |
|---|---|
static EvaluationResult |
FALSE
The evaluation result representing the value FALSE
|
static EvaluationResult |
NOT_LOADED
The evaluation result representing the value NOT_LOADED
|
static EvaluationResult |
TRUE
The evaluation result representing the value TRUE
|
| Modifier and Type | Method and Description |
|---|---|
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). |
String |
toString()
For debugging purpose only
|
static EvaluationResult |
valueOf(boolean b)
Returns an evaluation result instance representing the
given boolean value.
|
static EvaluationResult |
valueOf(Boolean b)
Returns a evaluation result instance representing the
given
Boolean value. |
public static final EvaluationResult FALSE
public static final EvaluationResult TRUE
public static final EvaluationResult NOT_LOADED
public EvaluationResult and(EvaluationResult other)
EvaluationResult whose value is this && other).other - the right hand side of the and operation.this && other as defined by the evaluation resultpublic EvaluationResult or(EvaluationResult other)
EvaluationResult whose value is this || other).other - the right hand side of the or operation.this || other as defined by the evaluation resultpublic EvaluationResult not()
public static EvaluationResult valueOf(boolean b)
true then ExpressionResult.TRUE
is returned. If the value is false then
ExpressionResult.FALSE is returned.b - a boolean valuepublic static EvaluationResult valueOf(Boolean b)
Boolean value. If the given Boolean
value is true then ExpressionResult.TRUE
is returned. If the value is false then
ExpressionResult.FALSE is returned.b - a Boolean valueBoolean
valueGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.