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, getLiteraladdChildListeners, addExpressionListener, expressionChanged, fireExpressionChange, getDouble, getFloat, getInt, getLong, hasListeners, removeChildListeners, removeExpressionListener, visitclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddExpressionListener, getDouble, getFloat, getInt, getLong, removeExpressionListener, visitpublic static final BooleanLiteral TRUE
public static final BooleanLiteral FALSE
public BooleanLiteral(boolean b)
b - the boolean valuepublic boolean getBoolean(Tuple tuple)
AbstractExpressiongetBoolean in interface ExpressiongetBoolean in class AbstractExpressiontuple - the input TupleExpression.getBoolean(prefuse.data.Tuple)public java.lang.Class getType(Schema s)
ExpressiongetType in interface ExpressionExpression.getType(prefuse.data.Schema)public java.lang.Object get(Tuple t)
AbstractExpressionget in interface Expressionget in class AbstractExpressiont - the input TupleExpression.get(prefuse.data.Tuple)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()