|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.expression.ExNode
com.waveset.expression.ExFunction.ListMutator
com.waveset.expression.ExFunction.f_append
The function node for the <append> expression.
Append an element to a list.
If a name is specified, we destructively modify a list contained in the referenced variable, the first child is the value to add.
If there is no name specified, the first arg is a list, the second arg is the value to add, we create a new list.
Since the implementation of appendAll is almost identical, we'll implement that by subclassing, and letting it overload the isAppendAll method.
Field Summary |
Fields inherited from class com.waveset.expression.ExNode |
_bindingCount, _children, _decoration, _parent, code_id, trace |
Constructor Summary | |
ExFunction.f_append()
|
Method Summary | |
protected ExValue |
evalInternal(ExState state)
Append an element to a list maintained in a variable. |
java.lang.String |
getFunctionName()
Nodes representing functions must have a name. |
protected boolean |
isAppendAll()
Overloaded in f_appendAll to return true. |
Methods inherited from class com.waveset.expression.ExFunction.ListMutator |
getName, parseXml, postProcess, setName, toXmlAttributes |
Methods inherited from class com.waveset.expression.ExNode |
addChild, addChildren, addCommonAttributes, beginTrace, clearOwner, endTrace, eval, evalChild, evalChildToObject, evalChildToString, evalToBoolean, evalToInt, evalToObject, evalToString, getBindingCount, getChild, getChildren, getDecoration, getHiddenVariable, getLocation, getOwner, getParent, isLiteral, parseCommonAttributes, removeChild, resolveFunction, resolveVariable, setBindingCount, setChildren, setDecoration, setEnvironment, setLocation, setOwner, setOwner, setParent, toXml, toXml, toXml, toXmlChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExFunction.f_append()
Method Detail |
public java.lang.String getFunctionName()
ExNode
getFunctionName
in class ExNode
protected boolean isAppendAll()
protected ExValue evalInternal(ExState state) throws WavesetException
evalInternal
in class ExNode
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |