prefuse.data.expression
Class AbstractPredicate

java.lang.Object
  extended by prefuse.data.expression.AbstractExpression
      extended by prefuse.data.expression.AbstractPredicate
All Implemented Interfaces:
java.util.EventListener, ExpressionListener, Expression, Predicate
Direct Known Subclasses:
CompositePredicate, NotPredicate, ValidEdgePredicate

public abstract class AbstractPredicate
extends AbstractExpression
implements Predicate

Abstract base class for dedicated Predicate instances.

Author:
jeffrey heer

Constructor Summary
AbstractPredicate()
           
 
Method Summary
 java.lang.Object get(Tuple t)
          Returns the wrapper Object type for the result of Expression.getBoolean(Tuple).
 java.lang.Class getType(Schema s)
          Returns boolean.class.
 
Methods inherited from class prefuse.data.expression.AbstractExpression
addChildListeners, addExpressionListener, expressionChanged, fireExpressionChange, getBoolean, getDouble, getFloat, getInt, getLong, hasListeners, removeChildListeners, removeExpressionListener, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface prefuse.data.expression.Expression
addExpressionListener, getBoolean, getDouble, getFloat, getInt, getLong, removeExpressionListener, visit
 

Constructor Detail

AbstractPredicate

public AbstractPredicate()
Method Detail

getType

public java.lang.Class getType(Schema s)
Returns boolean.class.

Specified by:
getType in interface Expression
See Also:
Expression.getType(prefuse.data.Schema)

get

public java.lang.Object get(Tuple t)
Returns the wrapper Object type for the result of Expression.getBoolean(Tuple).

Specified by:
get in interface Expression
Overrides:
get in class AbstractExpression
Parameters:
t - the input Tuple
Returns:
the Expression return value, as an Object
See Also:
Expression.get(prefuse.data.Tuple)


Copyright © 2007 Regents of the University of California