|
||||||||||
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.ExGet
A node representing an object accessor method.
Hmm, we could make this an ExFunction if we thought hard enough?
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.expression.ExNode |
_bindingCount, _children, _decoration, _parent, trace |
Constructor Summary | |
ExGet()
Make a set node. |
Method Summary | |
protected ExValue |
evalInternal(ExState state)
Evaluate the |
java.lang.String |
getFunctionName()
Return the node function name. |
void |
parseXml(org.w3c.dom.Element el)
Parse the XML definition, and flesh out the object. |
void |
postProcess()
Overload of the ExNode postProcess method that attempts to resolve static variable references. |
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, toXmlAttributes, toXmlChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public ExGet()
Method Detail |
public java.lang.String getFunctionName()
getFunctionName
in class ExNode
public void parseXml(org.w3c.dom.Element el) throws WavesetException
Nothing to do now, but I left this here so we could experiment with attributes.
parseXml
in class ExNode
WavesetException
public void postProcess()
postProcess
in class ExNode
protected ExValue evalInternal(ExState state) throws WavesetException
There are two subexpressions, the first should return a value that is a List, Map, or Object. The second should be a String or Integer.
If the first argument is a List, the second argument is coerced to an integer and used as a list index.
If the first argument is a Map, the second argument is used as a map key.
If the first argument is any other object, the second argument is coerced to a string and reflection is used to access a field.
evalInternal
in class ExNode
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |