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 lstnr)
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 lstnr)
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, wait
getType
public void visit(ExpressionVisitor v)
Expression
visit
in interface Expression
v
- the ExpressionVisitorExpression.visit(prefuse.data.expression.ExpressionVisitor)
public final void addExpressionListener(ExpressionListener lstnr)
Expression
addExpressionListener
in interface Expression
lstnr
- the expression listener to addExpression.addExpressionListener(prefuse.data.event.ExpressionListener)
public final void removeExpressionListener(ExpressionListener lstnr)
Expression
removeExpressionListener
in interface Expression
lstnr
- 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 ExpressionListener
expr
- the modified expressionExpressionListener.expressionChanged(prefuse.data.expression.Expression)
public java.lang.Object get(Tuple t)
get
in interface Expression
t
- the input TupleExpression.get(prefuse.data.Tuple)
public int getInt(Tuple t)
getInt
in interface Expression
t
- the input TupleExpression.getInt(prefuse.data.Tuple)
public long getLong(Tuple t)
getLong
in interface Expression
t
- the input TupleExpression.getLong(prefuse.data.Tuple)
public float getFloat(Tuple t)
getFloat
in interface Expression
t
- the input TupleExpression.getFloat(prefuse.data.Tuple)
public double getDouble(Tuple t)
getDouble
in interface Expression
t
- the input TupleExpression.getDouble(prefuse.data.Tuple)
public boolean getBoolean(Tuple t)
getBoolean
in interface Expression
t
- the input TupleExpression.getBoolean(prefuse.data.Tuple)
Copyright ? 2013 Regents of the University of California