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, getType
addExpressionListener, expressionChanged, fireExpressionChange, getDouble, getFloat, getInt, getLong, hasListeners, removeExpressionListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addExpressionListener, getDouble, getFloat, getInt, getLong, removeExpressionListener
public NotPredicate(Predicate p)
p
- the predicate to negatepublic Predicate getPredicate()
public boolean getBoolean(Tuple t)
AbstractExpression
getBoolean
in interface Expression
getBoolean
in class AbstractExpression
t
- the input TupleExpression.getBoolean(prefuse.data.Tuple)
public void visit(ExpressionVisitor v)
Expression
visit
in interface Expression
visit
in class AbstractExpression
v
- the ExpressionVisitorExpression.visit(prefuse.data.expression.ExpressionVisitor)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
protected void addChildListeners()
AbstractExpression
addChildListeners
in class AbstractExpression
AbstractExpression.addChildListeners()
protected void removeChildListeners()
AbstractExpression
removeChildListeners
in class AbstractExpression
AbstractExpression.removeChildListeners()
Copyright ? 2013 Regents of the University of California