public abstract class AbstractExpression extends java.lang.Object implements Expression, ExpressionListener
| Constructor and Description |
|---|
AbstractExpression() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChildListeners()
Add child listeners to catch and propagate sub-expression updates.
|
void |
addExpressionListener(ExpressionListener listener)
Add a listener to this Expression.
|
void |
expressionChanged(Expression expr)
Relay an expression change event.
|
protected void |
fireExpressionChange()
Fire an expression change.
|
java.lang.Object |
get(Tuple t)
By default, throws an UnsupportedOperationException.
|
boolean |
getBoolean(Tuple t)
By default, throws an UnsupportedOperationException.
|
double |
getDouble(Tuple t)
By default, throws an UnsupportedOperationException.
|
float |
getFloat(Tuple t)
By default, throws an UnsupportedOperationException.
|
int |
getInt(Tuple t)
By default, throws an UnsupportedOperationException.
|
long |
getLong(Tuple t)
By default, throws an UnsupportedOperationException.
|
protected boolean |
hasListeners()
Indicates if any listeners are registered with this Expression.
|
protected void |
removeChildListeners()
Remove child listeners for sub-expression updates.
|
void |
removeExpressionListener(ExpressionListener listener)
Remove a listener to this Expression.
|
void |
visit(ExpressionVisitor v)
Passes the visitor through this expression and any sub expressions
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic void visit(ExpressionVisitor v)
Expressionvisit in interface Expressionv - the ExpressionVisitorExpression.visit(prefuse.data.expression.ExpressionVisitor)public final void addExpressionListener(ExpressionListener listener)
ExpressionaddExpressionListener in interface Expressionlistener - the expression listener to addExpression.addExpressionListener(prefuse.data.event.ExpressionListener)public final void removeExpressionListener(ExpressionListener listener)
ExpressionremoveExpressionListener in interface Expressionlistener - the expression listener to removeExpression.removeExpressionListener(prefuse.data.event.ExpressionListener)protected final boolean hasListeners()
protected final void fireExpressionChange()
protected void addChildListeners()
protected void removeChildListeners()
public void expressionChanged(Expression expr)
expressionChanged in interface ExpressionListenerexpr - the modified expressionExpressionListener.expressionChanged(prefuse.data.expression.Expression)public java.lang.Object get(Tuple t)
get in interface Expressiont - the input TupleExpression.get(prefuse.data.Tuple)public int getInt(Tuple t)
getInt in interface Expressiont - the input TupleExpression.getInt(prefuse.data.Tuple)public long getLong(Tuple t)
getLong in interface Expressiont - the input TupleExpression.getLong(prefuse.data.Tuple)public float getFloat(Tuple t)
getFloat in interface Expressiont - the input TupleExpression.getFloat(prefuse.data.Tuple)public double getDouble(Tuple t)
getDouble in interface Expressiont - the input TupleExpression.getDouble(prefuse.data.Tuple)public boolean getBoolean(Tuple t)
getBoolean in interface Expressiont - the input TupleExpression.getBoolean(prefuse.data.Tuple)