public class BooleanLiteral extends Literal implements Predicate
Modifier and Type | Field and Description |
---|---|
static BooleanLiteral |
FALSE
The false boolean literal.
|
static BooleanLiteral |
TRUE
The true boolean literal.
|
Constructor and Description |
---|
BooleanLiteral(boolean b)
Create a new BooleanLiteral.
|
Modifier and Type | Method and Description |
---|---|
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() |
getLiteral, getLiteral, getLiteral
addChildListeners, addExpressionListener, expressionChanged, fireExpressionChange, getDouble, getFloat, getInt, getLong, hasListeners, removeChildListeners, removeExpressionListener, visit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addExpressionListener, getDouble, getFloat, getInt, getLong, removeExpressionListener, visit
public static final BooleanLiteral TRUE
public static final BooleanLiteral FALSE
public BooleanLiteral(boolean b)
b
- the boolean valuepublic boolean getBoolean(Tuple tuple)
AbstractExpression
getBoolean
in interface Expression
getBoolean
in class AbstractExpression
tuple
- the input TupleExpression.getBoolean(prefuse.data.Tuple)
public java.lang.Class getType(Schema s)
Expression
getType
in interface Expression
Expression.getType(prefuse.data.Schema)
public java.lang.Object get(Tuple t)
AbstractExpression
get
in interface Expression
get
in class AbstractExpression
t
- the input TupleExpression.get(prefuse.data.Tuple)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
Copyright ? 2013 Regents of the University of California