public class ObjectExpr 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 |
---|
ObjectExpr(int code,
java.util.ArrayList args) |
ObjectExpr(int code,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a boolean.
|
NodeIterator |
evalNodeSet(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a node set.
|
double |
evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as number.
|
java.lang.Object |
evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an object.
|
java.lang.String |
evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as string.
|
boolean |
isNodeSet()
Returns true if the expression evaluates to a node-set.
|
boolean |
isString()
Returns true if the expression evaluates to a node-set.
|
protected AbstractPattern |
toNodeList()
Convert from an expression to a pattern.
|
java.lang.String |
toString() |
addParam, addVar, evalBoolean, evalNodeSet, evalNumber, evalObject, evalString, evalString, evalString, evalVar, getListContext, isBoolean, isNumber, setListContext, setVar, stringToNumber, toBoolean, toDouble, toNode, toString
public ObjectExpr(int code, java.util.ArrayList args)
public ObjectExpr(int code, java.lang.String name)
public boolean isNodeSet()
public boolean isString()
public boolean evalBoolean(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalBoolean
in class Expr
node
- current nodeenv
- the environmentXPathException
public double evalNumber(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalNumber
in class Expr
node
- current nodeenv
- the environmentXPathException
public java.lang.String evalString(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalString
in class Expr
node
- current nodeenv
- the environmentXPathException
public java.lang.Object evalObject(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalObject
in class Expr
node
- current nodeenv
- the environmentXPathException
public NodeIterator evalNodeSet(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalNodeSet
in class Expr
node
- current nodeenv
- the variable environmentXPathException
protected AbstractPattern toNodeList()
toNodeList
in class Expr
public java.lang.String toString()
toString
in class java.lang.Object