|
||||||||||
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.ExValueNode
A node representing a literal value.
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.expression.ExNode |
_bindingCount, _children, _decoration, _parent, trace |
Constructor Summary | |
ExValueNode()
Build a value node. |
|
ExValueNode(int i)
|
|
ExValueNode(java.lang.Object o)
|
Method Summary | |
void |
beginTrace(java.lang.StringBuffer b)
Called by ExState to format the start of a trace message for this node. |
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 value node. |
java.lang.Object |
getActualValue()
Get the actual value avoiding the ExValue wrapper. |
java.lang.String |
getFunctionName()
Get the node function name. |
ExValue |
getValue()
|
boolean |
isLiteral()
Called by ExState to determine if this node contains literal text, and therefore does not need a newline after the start tag. |
void |
parseXml(org.w3c.dom.Element el)
Parse the an XML value, and flesh out the value node. |
void |
setInt(int i)
|
void |
setValue(ExValue v)
Assign a value to a value node. |
void |
setValue(java.lang.Object o)
Convenience methods for the editor. |
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize a value node 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, postProcess, 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 ExValueNode()
public ExValueNode(java.lang.Object o)
public ExValueNode(int i)
Method Detail |
public java.lang.String getFunctionName()
getFunctionName
in class ExNode
public void parseXml(org.w3c.dom.Element el) throws WavesetException
We'll be called for a variety of XML elements, so we have to check the tag name to see what type we are.
parseXml
in class ExNode
WavesetException
public void toXml(java.lang.StringBuffer b, int indent)
Extended to allow arbitrary XmlObject's as values, but you
have to wrap them in an
public void setValue(ExValue v)
public ExValue getValue()
public void setValue(java.lang.Object o)
public void setInt(int i)
public java.lang.Object getActualValue()
protected ExValue evalInternal(ExState state) throws WavesetException
evalInternal
in class ExNode
WavesetException
public boolean isLiteral()
ExNode
isLiteral
in class ExNode
public void beginTrace(java.lang.StringBuffer b)
ExNode
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 |