| java.lang.Object com.caucho.xpath.Expr com.caucho.xpath.expr.StringExpr
StringExpr | public class StringExpr extends Expr (Code) | | Implements the builtin XPath string expressions.
|
StringExpr | public StringExpr(int code, Expr left, Expr right, Expr third)(Code) | | Create a StringExpression with three arguments.
Parameters: code - the Expr code of the expression. Parameters: left - the first argument. Parameters: right - the second argument. Parameters: third - the third argument. |
StringExpr | public StringExpr(int code, Expr expr)(Code) | | |
StringExpr | public StringExpr(int code, ArrayList args)(Code) | | Creates a string expression from a list of arguments.
Parameters: code - Expr code for the function. Parameters: args - array list of the arguments. |
evalBoolean | public boolean evalBoolean(Node node, ExprEnvironment env) throws XPathException(Code) | | Evaluate the expression as a boolean, i.e. evaluate it as a string
and then convert it to a boolean.
Parameters: node - the current node Parameters: env - the variable environment. the boolean representation of the expression. |
evalNumber | public double evalNumber(Node node, ExprEnvironment env) throws XPathException(Code) | | Evaluate the expression as a double, i.e. evaluate it as a string
and then convert it to a double.
Parameters: node - the current node Parameters: env - the variable environment. the numeric representation of the expression. |
evalObject | public Object evalObject(Node node, ExprEnvironment env) throws XPathException(Code) | | Evaluate the expression as an object, i.e. return the string value.
Parameters: node - the current node Parameters: env - the variable environment. the boolean representation of the expression. |
evalString | public String evalString(Node node, ExprEnvironment env) throws XPathException(Code) | | Evaluates the expression as an string.
Parameters: node - the current node Parameters: env - the variable environment. the string representation of the expression. |
isString | public boolean isString()(Code) | | The StringExpr returns a string value.
|
toString | public String toString()(Code) | | Return the expression as a string. toString() returns a valid
XPath expression. This lets applications like XSLT use toString()
to print the string in the generated Java.
|
Methods inherited from com.caucho.xpath.Expr | public void addParam(Env newEnv, String name, Node node, Env env) throws XPathException(Code)(Java Doc) public void addVar(Env newEnv, String name, Node node, Env env) throws XPathException(Code)(Java Doc) public boolean evalBoolean(Node node) throws XPathException(Code)(Java Doc) abstract public boolean evalBoolean(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public NodeIterator evalNodeSet(Node node) throws XPathException(Code)(Java Doc) public NodeIterator evalNodeSet(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public double evalNumber(Node node) throws XPathException(Code)(Java Doc) abstract public double evalNumber(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public Object evalObject(Node node) throws XPathException(Code)(Java Doc) abstract public Object evalObject(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public String evalString(Node node) throws XPathException(Code)(Java Doc) abstract public String evalString(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public void evalString(CharBuffer cb, Node node) throws XPathException(Code)(Java Doc) public void evalString(CharBuffer cb, Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public Var evalVar(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public AbstractPattern getListContext()(Code)(Java Doc) public boolean isBoolean()(Code)(Java Doc) public boolean isNodeSet()(Code)(Java Doc) public boolean isNumber()(Code)(Java Doc) public boolean isString()(Code)(Java Doc) public void setListContext(AbstractPattern listContext)(Code)(Java Doc) public void setVar(String name, Node node, Env env) throws XPathException(Code)(Java Doc) protected static double stringToNumber(String string) throws XPathException(Code)(Java Doc) public static boolean toBoolean(Object value) throws XPathException(Code)(Java Doc) public static double toDouble(Object value) throws XPathException(Code)(Java Doc) public static Node toNode(Object value) throws XPathException(Code)(Java Doc) protected AbstractPattern toNodeList()(Code)(Java Doc) public static String toString(Object value) throws XPathException(Code)(Java Doc)
|
|
|