|
||||||||||
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.ExReference
A node representing a variable or argument reference.
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.expression.ExNode |
_bindingCount, _children, _decoration, _parent, trace |
Constructor Summary | |
ExReference()
Build a value node. |
|
ExReference(java.lang.String name)
|
Method Summary | |
void |
beginTrace(java.lang.StringBuffer b)
Overload trace messages since we have literal content. |
void |
endTrace(java.lang.StringBuffer b)
Called by ExState to format the end of a trace message for this node. |
protected ExValue |
evalInternal(ExState state)
Evalute the reference node. |
ExDefvar |
getDefvar()
Get the resolved variable. |
java.lang.String |
getFunctionName()
Return the node function name. |
java.lang.String |
getName()
Get the name of the reference. |
boolean |
isExternal()
Tests to see if this is an external reference. |
boolean |
isLiteral()
Overload indicating we have literal content. |
void |
parseXml(org.w3c.dom.Element el)
Parse the XML representation, and flesh out the object. |
void |
postProcess()
Overload of the ExNode postProcess method. |
void |
setExternal(boolean b)
|
void |
setName(java.lang.String s)
|
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize a back to XML. |
Methods inherited from class com.waveset.expression.ExNode |
addChild, addChildren, addCommonAttributes, clearOwner, eval, evalChild, evalChildToObject, evalChildToString, evalToBoolean, evalToInt, evalToObject, evalToString, getBindingCount, getChild, getChildren, getDecoration, getHiddenVariable, getLocation, getOwner, getParent, parseCommonAttributes, removeChild, resolveFunction, resolveVariable, setBindingCount, setChildren, setDecoration, setEnvironment, setLocation, setOwner, setOwner, setParent, 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 ExReference()
public ExReference(java.lang.String name)
Method Detail |
public void setName(java.lang.String s)
public void setExternal(boolean b)
public void parseXml(org.w3c.dom.Element el) throws WavesetException
parseXml
in class ExNode
WavesetException
public void toXml(java.lang.StringBuffer b, int indent)
public void postProcess()
postProcess
in class ExNode
public java.lang.String getFunctionName()
getFunctionName
in class ExNode
public java.lang.String getName()
public ExDefvar getDefvar()
public boolean isExternal()
protected ExValue evalInternal(ExState state) throws WavesetException
If this is resolved to a ExDefvar, we return its value. If it is an external reference, we ask the ExState object to resolve it. If its unresolved we raise an error.
evalInternal
in class ExNode
WavesetException
public boolean isLiteral()
isLiteral
in class ExNode
public void beginTrace(java.lang.StringBuffer b)
We could put the start tag and reference name on one line, indent and allow referenced expressions to trace, then close with the tag on a new line.
Another option would be to put the entire on one line, indent for the referenced expressions, and then close with a line with just the result.
beginTrace
in class ExNode
public void endTrace(java.lang.StringBuffer b)
ExNode
endTrace
in class ExNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |