public class NotPredicate extends AbstractPredicate
| Constructor and Description |
|---|
NotPredicate(Predicate p)
Create a new NotPredicate.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChildListeners()
Add child listeners to catch and propagate sub-expression updates.
|
boolean |
getBoolean(Tuple t)
By default, throws an UnsupportedOperationException.
|
Predicate |
getPredicate()
Get the negated predicate.
|
protected void |
removeChildListeners()
Remove child listeners for sub-expression updates.
|
java.lang.String |
toString() |
void |
visit(ExpressionVisitor v)
Passes the visitor through this expression and any sub expressions
|
get, getTypeaddExpressionListener, expressionChanged, fireExpressionChange, getDouble, getFloat, getInt, getLong, hasListeners, removeExpressionListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddExpressionListener, getDouble, getFloat, getInt, getLong, removeExpressionListenerpublic NotPredicate(Predicate p)
p - the predicate to negatepublic Predicate getPredicate()
public boolean getBoolean(Tuple t)
AbstractExpressiongetBoolean in interface ExpressiongetBoolean in class AbstractExpressiont - the input TupleExpression.getBoolean(prefuse.data.Tuple)public void visit(ExpressionVisitor v)
Expressionvisit in interface Expressionvisit in class AbstractExpressionv - the ExpressionVisitorExpression.visit(prefuse.data.expression.ExpressionVisitor)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()protected void addChildListeners()
AbstractExpressionaddChildListeners in class AbstractExpressionAbstractExpression.addChildListeners()protected void removeChildListeners()
AbstractExpressionremoveChildListeners in class AbstractExpressionAbstractExpression.removeChildListeners()