public class ObjectLiteral extends Literal
Constructor and Description |
---|
ObjectLiteral(java.lang.Object value)
Create a new ObjectLiteral.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(Tuple t)
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, getBoolean, getDouble, getFloat, getInt, getLong, hasListeners, removeChildListeners, removeExpressionListener, visit
public ObjectLiteral(java.lang.Object value)
value
- the literal valuepublic java.lang.Class getType(Schema s)
Expression
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