|
||||||||||
| 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.FunctionExpression
public abstract class FunctionExpression
Abstract base class for FunctionExpression implementations. Provides parameter handling support.
| Field Summary | |
|---|---|
protected CopyOnWriteArrayList |
m_params
|
protected int |
m_pcount
|
| Fields inherited from interface prefuse.data.expression.Function |
|---|
VARARGS |
| Constructor Summary | |
|---|---|
protected |
FunctionExpression(int parameterCount)
Protected constructor. |
| Method Summary | |
|---|---|
protected void |
addChildListeners()
Add child listeners to catch and propagate sub-expression updates. |
void |
addParameter(Expression e)
Add a parameter value sub-expression to this function. |
abstract java.lang.String |
getName()
Get the name of this function. |
int |
getParameterCount()
Get the maximum number of parameters accepted by this Function. |
protected void |
missingParams()
Throw an exception when needed parameters are missing. |
protected Expression |
param(int idx)
Return the parameter expression at the given index. |
protected int |
paramCount()
An internal-only method that returns the current number of parameters collected. |
protected void |
removeChildListeners()
Remove child listeners for sub-expression updates. |
java.lang.String |
toString()
|
void |
visit(ExpressionVisitor v)
Passes the visitor through this expression and any sub expressions |
| Methods inherited from class prefuse.data.expression.AbstractExpression |
|---|
addExpressionListener, expressionChanged, fireExpressionChange, get, getBoolean, getDouble, getFloat, getInt, getLong, hasListeners, removeExpressionListener |
| 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, get, getBoolean, getDouble, getFloat, getInt, getLong, getType, removeExpressionListener |
| Field Detail |
|---|
protected CopyOnWriteArrayList m_params
protected final int m_pcount
| Constructor Detail |
|---|
protected FunctionExpression(int parameterCount)
parameterCount - the max parameter count| Method Detail |
|---|
public abstract java.lang.String getName()
Function
getName in interface FunctionFunction.getName()public void addParameter(Expression e)
Function
addParameter in interface Functione - the parameter sub-expressionFunction.addParameter(prefuse.data.expression.Expression)protected int paramCount()
protected final Expression param(int idx)
idx - the parameter index
public int getParameterCount()
Function
getParameterCount in interface FunctionFunction.VARARGS is the number is variable.Function.getParameterCount()protected void missingParams()
public void visit(ExpressionVisitor v)
Expression
visit in interface Expressionvisit in class AbstractExpressionv - the ExpressionVisitorExpression.visit(prefuse.data.expression.ExpressionVisitor)protected void addChildListeners()
AbstractExpression
addChildListeners in class AbstractExpressionAbstractExpression.addChildListeners()protected void removeChildListeners()
AbstractExpression
removeChildListeners in class AbstractExpressionAbstractExpression.removeChildListeners()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||