|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprefuse.data.expression.AbstractExpression
prefuse.data.expression.ColumnExpression
Expression instance that returns the value stored in a Tuple data field.
Field Summary | |
protected java.lang.String |
m_field
|
Constructor Summary | |
ColumnExpression(java.lang.String field)
Create a new ColumnExpression. |
Method Summary | |
java.lang.Object |
get(Tuple t)
Evaluate the Expression on the given input Tuple. |
boolean |
getBoolean(Tuple t)
Evaluate the Expression on the given input Tuple. |
java.lang.String |
getColumnName()
Get the column / data field name used by this expression. |
double |
getDouble(Tuple t)
Evaluate the Expression on the given input Tuple. |
float |
getFloat(Tuple t)
Evaluate the Expression on the given input Tuple. |
int |
getInt(Tuple t)
Evaluate the Expression on the given input Tuple. |
long |
getLong(Tuple t)
Evaluate the Expression on the given input Tuple. |
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.AbstractExpression |
addChildListeners, addExpressionListener, expressionChanged, fireExpressionChange, 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, removeExpressionListener, visit |
Field Detail |
protected final java.lang.String m_field
Constructor Detail |
public ColumnExpression(java.lang.String field)
field
- the column / data field name to useMethod Detail |
public java.lang.String getColumnName()
public java.lang.Class getType(Schema s)
Expression
getType
in interface Expression
Expression.getType(prefuse.data.Schema)
public java.lang.Object get(Tuple t)
Expression
get
in interface Expression
get
in class AbstractExpression
Expression.get(prefuse.data.Tuple)
public int getInt(Tuple t)
Expression
getInt
in interface Expression
getInt
in class AbstractExpression
Expression.getInt(prefuse.data.Tuple)
public long getLong(Tuple t)
Expression
getLong
in interface Expression
getLong
in class AbstractExpression
Expression.getLong(prefuse.data.Tuple)
public float getFloat(Tuple t)
Expression
getFloat
in interface Expression
getFloat
in class AbstractExpression
Expression.getFloat(prefuse.data.Tuple)
public double getDouble(Tuple t)
Expression
getDouble
in interface Expression
getDouble
in class AbstractExpression
Expression.getDouble(prefuse.data.Tuple)
public boolean getBoolean(Tuple t)
Expression
getBoolean
in interface Expression
getBoolean
in class AbstractExpression
Expression.getBoolean(prefuse.data.Tuple)
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |