Method Summary |
|
public void | addParam(Env newEnv, String name, Node node, Env env) Adds a param with the expression's value. |
public void | addVar(Env newEnv, String name, Node node, Env env) Adds a variable with the expression's value. |
public boolean | evalBoolean(Node node) Returns the boolean value of the node. |
abstract public boolean | evalBoolean(Node node, ExprEnvironment env) Returns the boolean value of the node.
Parameters: node - the node to evaluate and use as a context Parameters: env - variable environment. |
public NodeIterator | evalNodeSet(Node node) |
public NodeIterator | evalNodeSet(Node node, ExprEnvironment env) Returns an iterator of matching nodes
Parameters: node - the node to evaluate and use as a context Parameters: env - variable environment. |
public double | evalNumber(Node node) Evaluates the expression as a double using the node as a context. |
abstract public double | evalNumber(Node node, ExprEnvironment env) Evaluates the expression as a number.
Parameters: node - the current node. Parameters: env - variable environment. |
public Object | evalObject(Node node) Returns the object value of the node. |
abstract public Object | evalObject(Node node, ExprEnvironment env) Returns the object value of the node. |
public String | evalString(Node node) Returns the expression evaluated as a string. |
abstract public String | evalString(Node node, ExprEnvironment env) Returns the string value of the node. |
public void | evalString(CharBuffer cb, Node node) Fills a char buffer with the evaluated string results. |
public void | evalString(CharBuffer cb, Node node, ExprEnvironment env) Fills a char buffer with the evaluated string results. |
public Var | evalVar(Node node, ExprEnvironment env) Evaluates to a variable.
Parameters: node - the node to evaluate and use as a context. Parameters: env - the variable environment. |
public AbstractPattern | getListContext() |
public boolean | isBoolean() true if the expression prefers to return a boolean. |
public boolean | isNodeSet() true if the expression prefers to return a node set. |
public boolean | isNumber() true if the expression prefers to return a number. |
public boolean | isString() true if the expression prefers to return a string. |
public void | setListContext(AbstractPattern listContext) |
public void | setVar(String name, Node node, Env env) Sets a variable with the expression's value. |
protected static double | stringToNumber(String string) Convert a string to a double following XPath.
Parameters: string - string to be treated as a double. |
public static boolean | toBoolean(Object value) Convert a Java object to a boolean using the XPath rules. |
public static double | toDouble(Object value) Convert a Java object to a double using the XPath rules. |
public static Node | toNode(Object value) Convert a Java object to a node using the XPath rules. |
protected AbstractPattern | toNodeList() Convert from an expression to a pattern. |
public static String | toString(Object value) Convert a Java object to a string using the XPath rules. |