prefuse.data.expression
Class ObjectLiteral

java.lang.Object
  extended byprefuse.data.expression.AbstractExpression
      extended byprefuse.data.expression.Literal
          extended byprefuse.data.expression.ObjectLiteral
All Implemented Interfaces:
java.util.EventListener, Expression, ExpressionListener

public class ObjectLiteral
extends Literal

Literal expression of an Object value.

Author:
jeffrey heer

Constructor Summary
ObjectLiteral(java.lang.Object value)
          Create a new ObjectLiteral.
 
Method Summary
 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()
           
 
Methods inherited from class prefuse.data.expression.Literal
getLiteral, getLiteral, getLiteral
 
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, wait, wait, wait
 

Constructor Detail

ObjectLiteral

public ObjectLiteral(java.lang.Object value)
Create a new ObjectLiteral.

Parameters:
value - the literal value
Method Detail

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.

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
See Also:
Expression.get(prefuse.data.Tuple)

toString

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


Copyright ? 2007 Regents of the University of California