Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.core.expressions
Class EvaluationResult


java.lang.Object
  extended by 
org.eclipse.core.expressions.EvaluationResult

public class EvaluationResult
extends 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
Restriction:
This class is not intended to be subclassed by clients.

Field Summary
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
 
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).
  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.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

Method Detail

and

public 
EvaluationResult and(
EvaluationResult other)
Returns an EvaluationResult whose value is this && other).

Parameters:
other - the right hand side of the and operation.
Returns:
this && other as defined by the evaluation result

or

public 
EvaluationResult or(
EvaluationResult other)
Returns an EvaluationResult whose value is this || other).

Parameters:
other - the right hand side of the or operation.
Returns:
this || other as defined by the evaluation result

not

public 
EvaluationResult not()
Returns the inverted value of this evaluation result

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 true then ExpressionResult.TRUE is returned. If the value is false then ExpressionResult.FALSE is returned.

Parameters:
b - a boolean value
Returns:
the expression result representing the boolean value

valueOf

public static 
EvaluationResult valueOf(
Boolean b)
Returns a evaluation result instance representing the given Boolean value. If the given Boolean value is true then ExpressionResult.TRUE is returned. If the value is false then ExpressionResult.FALSE is returned.

Parameters:
b - a Boolean value
Returns:
the expression result representing the Boolean value

toString

public 
String toString()
For debugging purpose only

Overrides:
toString in class Object
Returns:
a string representing this object. The result is not human readable

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire