|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.expression.AbstractExpression prefuse.data.expression.Literal
public abstract class Literal
Abstarct base class for a Literal Expression that evaluates to a constant value.
Constructor Summary | |
---|---|
Literal()
|
Method Summary | |
---|---|
static Literal |
getLiteral(java.lang.Object val)
Return the given object as a new Literal instance. |
static Literal |
getLiteral(java.lang.Object val,
java.lang.Class type)
Return the given object as a new Literal instance. |
static Literal |
getLiteral(Tuple t,
java.lang.String field)
Evaluate the given tuple and data field and return the result as a new Literal instance. |
Methods inherited from class prefuse.data.expression.AbstractExpression |
---|
addChildListeners, addExpressionListener, expressionChanged, fireExpressionChange, get, getBoolean, getDouble, getFloat, getInt, getLong, hasListeners, removeChildListeners, removeExpressionListener, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface prefuse.data.expression.Expression |
---|
getType |
Constructor Detail |
---|
public Literal()
Method Detail |
---|
public static Literal getLiteral(Tuple t, java.lang.String field)
t
- the Tuplefield
- the data field to lookup
public static Literal getLiteral(java.lang.Object val)
val
- the object value
public static Literal getLiteral(java.lang.Object val, java.lang.Class type)
val
- the object valuetype
- the type the literal should take
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |