public class PredicateChain
extends java.lang.Object
Constructor and Description |
---|
PredicateChain() |
Modifier and Type | Method and Description |
---|---|
void |
add(Predicate p,
java.lang.Object val)
Add a new rule to the end of the chain, associating a Predicate
condition with an Object value.
|
void |
clear()
Remove all rules from the predicate chain.
|
java.lang.Object |
get(Tuple t)
Evaluate the predicate chain for the given Tuple.
|
Expression |
getExpression()
Return the backing predicate chain as an Expression instance.
|
boolean |
remove(Predicate p)
Remove rules using the given predicate from this predicate chain.
|
public Expression getExpression()
public java.lang.Object get(Tuple t)
t
- the Tuplepublic void add(Predicate p, java.lang.Object val)
p
- the Predicate conditionval
- the associated Object valuepublic boolean remove(Predicate p)
p
- the predicate to remove from the chainpublic void clear()
Copyright ? 2013 Regents of the University of California