public class FunExpr 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 |
---|
FunExpr(java.lang.String name,
AbstractPattern pattern,
java.util.ArrayList<Expr> args) |
Modifier and Type | Method and Description |
---|---|
boolean |
evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the boolean value of the node.
|
double |
evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a number.
|
java.lang.Object |
evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the object value of the node.
|
java.lang.String |
evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the string value of the node.
|
java.lang.String |
toString() |
addParam, addVar, evalBoolean, evalNodeSet, evalNodeSet, evalNumber, evalObject, evalString, evalString, evalString, evalVar, getListContext, isBoolean, isNodeSet, isNumber, isString, setListContext, setVar, stringToNumber, toBoolean, toDouble, toNode, toNodeList, toString
public FunExpr(java.lang.String name, AbstractPattern pattern, java.util.ArrayList<Expr> args)
public boolean evalBoolean(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
Expr
evalBoolean
in class Expr
node
- the node to evaluate and use as a contextenv
- variable environment.XPathException
public double evalNumber(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
Expr
evalNumber
in class Expr
node
- the current node.env
- variable environment.XPathException
public java.lang.String evalString(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
Expr
evalString
in class Expr
node
- the node to evaluate and use as a contextenv
- variable environment.XPathException
public java.lang.Object evalObject(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
Expr
evalObject
in class Expr
node
- the node to evaluate and use as a contextenv
- variable environment.XPathException
public java.lang.String toString()
toString
in class java.lang.Object