|
||||||||||
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.ExScript
The node representation for a <script> expression, which encloses a fragment of Javascript.
This is currently just an experiment with embedding Rhino, assuming it works, it should evolve into a more flexible alternative to complicated XPRESS statements.
Nested Class Summary | |
class |
ExScript.Adapter
|
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.expression.ExNode |
_bindingCount, _children, _decoration, _parent, trace |
Constructor Summary | |
ExScript()
Build a script node. |
Method Summary | |
protected ExValue |
evalInternal(ExState state)
Evalute the script node. |
java.lang.String |
getFunctionName()
Gets the node function name. |
java.lang.String |
getScript()
Gets the script text. |
void |
parseXml(org.w3c.dom.Element el)
Parse the XML representation, and flesh out the object. |
void |
setScript(java.lang.String s)
|
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize the node back to XML. |
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, 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 ExScript()
Method Detail |
public java.lang.String getFunctionName()
getFunctionName
in class ExNode
public java.lang.String getScript()
public void setScript(java.lang.String s)
public void parseXml(org.w3c.dom.Element el) throws WavesetException
parseXml
in class ExNode
WavesetException
public void toXml(java.lang.StringBuffer b, int indent)
ExNode
This may be overloaded by subclasses if they have attributes or special formatting needs.
toXml
in class ExNode
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 |