public abstract class GroupExpression extends AbstractExpression implements Function
Modifier and Type | Field and Description |
---|---|
protected Expression |
m_group |
Modifier | Constructor and Description |
---|---|
protected |
GroupExpression()
Create a new GroupExpression.
|
protected |
GroupExpression(java.lang.String group)
Create a new GroupExpression over the given group name.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Expression e)
Attempts to add the given expression as the group expression.
|
protected java.lang.String |
getGroup(Tuple t)
Evaluate the group name expression for the given Tuple
|
int |
getParameterCount()
Get the maximum number of parameters accepted by this Function.
|
java.lang.String |
toString() |
addChildListeners, addExpressionListener, expressionChanged, fireExpressionChange, get, getBoolean, getDouble, getFloat, getInt, getLong, hasListeners, removeChildListeners, removeExpressionListener, visit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addExpressionListener, get, getBoolean, getDouble, getFloat, getInt, getLong, getType, removeExpressionListener, visit
protected Expression m_group
protected GroupExpression()
protected GroupExpression(java.lang.String group)
group
- the data group nameprotected java.lang.String getGroup(Tuple t)
t
- the input Tuple to the group name expressionpublic void addParameter(Expression e)
addParameter
in interface Function
e
- the parameter sub-expressionFunction.addParameter(prefuse.data.expression.Expression)
public int getParameterCount()
Function
getParameterCount
in interface Function
Function.VARARGS
is the number is variable.Function.getParameterCount()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
Copyright ? 2013 Regents of the University of California