prefuse.data.expression
Class BooleanLiteral

java.lang.Object
  extended by prefuse.data.expression.AbstractExpression
      extended by prefuse.data.expression.Literal
          extended by prefuse.data.expression.BooleanLiteral
All Implemented Interfaces:
java.util.EventListener, ExpressionListener, Expression, Predicate

public class BooleanLiteral
extends Literal
implements Predicate

Literal expression of a boolean value.

Author:
jeffrey heer

Field Summary
static BooleanLiteral FALSE
          The false boolean literal.
static BooleanLiteral TRUE
          The true boolean literal.
 
Constructor Summary
BooleanLiteral(boolean b)
          Create a new BooleanLiteral.
 
Method Summary
 java.lang.Object get(Tuple t)
          By default, throws an UnsupportedOperationException.
 boolean getBoolean(Tuple tuple)
          By default, throws an UnsupportedOperationException.
 java.lang.Class getType(Schema s)
          Returns the type that this expression evaluates to when tuples with the given Schema are provided as input.
 java.lang.String toString()
           
 
Methods inherited from class prefuse.data.expression.Literal
getLiteral, getLiteral, getLiteral
 
Methods inherited from class prefuse.data.expression.AbstractExpression
addChildListeners, addExpressionListener, expressionChanged, fireExpressionChange, getDouble, getFloat, getInt, getLong, hasListeners, removeChildListeners, removeExpressionListener, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface prefuse.data.expression.Expression
addExpressionListener, getDouble, getFloat, getInt, getLong, removeExpressionListener, visit
 

Field Detail

TRUE

public static final BooleanLiteral TRUE
The true boolean literal.


FALSE

public static final BooleanLiteral FALSE
The false boolean literal.

Constructor Detail

BooleanLiteral

public BooleanLiteral(boolean b)
Create a new BooleanLiteral.

Parameters:
b - the boolean value
Method Detail

getBoolean

public boolean getBoolean(Tuple tuple)
Description copied from class: AbstractExpression
By default, throws an UnsupportedOperationException.

Specified by:
getBoolean in interface Expression
Overrides:
getBoolean in class AbstractExpression
Parameters:
tuple - the input Tuple
Returns:
the Expression return value, as a boolean
See Also:
Expression.getBoolean(prefuse.data.Tuple)

getType

public java.lang.Class getType(Schema s)
Description copied from interface: Expression
Returns the type that this expression evaluates to when tuples with the given Schema are provided as input.

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

get

public java.lang.Object get(Tuple t)
Description copied from class: AbstractExpression
By default, throws an UnsupportedOperationException.

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)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2007 Regents of the University of California