|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprocope.tools.BooleanExpression
public class BooleanExpression
Used to evaluate boolean expressions. An example for such an expression would be:
(source='Y2H' OR source='TAP') AND score >= 0.5
You can use the boolean expression objects to filter edges in a
network
or proteins in the ProteinManager
.
For detailed examples on how to use this class check out the manual of the library.
Constructor Summary | |
---|---|
BooleanExpression(String expression)
Create expression object from a given expression string. |
Method Summary | |
---|---|
boolean |
evaluate(Map<String,Object> values)
Evaluate a given set of variable name => value mappings using the expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BooleanExpression(String expression) throws InvalidExpressionException
expression
- the expression string
InvalidExpressionException
- if the expression is invalidMethod Detail |
---|
public boolean evaluate(Map<String,Object> values)
values
- variables and their annotations, for non-numeric object
type the String representation of that object will be used
true
or false
depending on whether the variables
let the expression evaluate to true
or false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |