public class VarExpr extends Expr
ADD, AND, ATTRIBUTE, BASE_URI, BOOLEAN, BOOLEAN_EQ, BOOLEAN_NEQ, CEILING, CONCAT, CONST, CONTAINS, COUNT, DIV, ELEMENT, EQ, FALSE, FLOOR, FORMAT_NUMBER, FUNCTION_AVAILABLE, GE, GENERATE_ID, GT, ID, IF, LANG, LAST, LAST_FUN, LE, LOCAL_PART, LT, MOD, MUL, NAMESPACE, NEG, NEQ, NODE_SET, NORMALIZE, NOT, NUMBER, NUMBER_EQ, NUMBER_GE, NUMBER_GT, NUMBER_LE, NUMBER_LT, NUMBER_NEQ, OR, POSITION, QNAME, QUO, ROUND, SELF, SELF_NAME, STARTS_WITH, STRING, STRING_EQ, STRING_LENGTH, STRING_NEQ, SUB, SUBSTRING, SUBSTRING_AFTER, SUBSTRING_BEFORE, SUM, SYSTEM_PROPERTY, TRANSLATE, TRUE| Constructor and Description |
|---|
VarExpr(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as a boolean.
|
NodeIterator |
evalNodeSet(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as a node set.
|
double |
evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as a double.
|
java.lang.Object |
evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as an object
|
void |
evalString(CharBuffer cb,
org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as a string
|
java.lang.String |
evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as a string
|
Var |
evalVar(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as an variable
|
java.lang.String |
toString() |
addParam, addVar, evalBoolean, evalNodeSet, evalNumber, evalObject, evalString, evalString, getListContext, isBoolean, isNodeSet, isNumber, isString, setListContext, setVar, stringToNumber, toBoolean, toDouble, toNode, toNodeList, toStringpublic boolean evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
evalBoolean in class Exprnode - the current nodeenv - the XPath envivonmentXPathExceptionpublic double evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
evalNumber in class Exprnode - the current nodeenv - the XPath envivonmentXPathExceptionpublic void evalString(CharBuffer cb, org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalString in class Exprcb - the buffer to append the valuenode - the current nodeenv - the XPath envivonmentXPathExceptionpublic java.lang.String evalString(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
evalString in class Exprenv - the XPath envivonmentnode - the current nodeXPathExceptionpublic java.lang.Object evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
evalObject in class Exprenv - the XPath envivonmentnode - the current nodeXPathExceptionpublic Var evalVar(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalVar in class Exprnode - the current nodeenv - the XPath envivonmentXPathExceptionpublic NodeIterator evalNodeSet(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalNodeSet in class Exprnode - the current nodeenv - the variable envivonmentXPathExceptionpublic java.lang.String toString()
toString in class java.lang.Object