|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.xpath.Expr
Compute values from nodes. Because the expressions themselves are untyped, the class provides methods for creating the type of the desired result.
Method Summary | |
boolean |
evalBoolean(Node node)
Returns the boolean value of the node. |
boolean |
evalBoolean(Node node,
Env env)
Returns the boolean value of the node. |
java.util.Iterator |
evalNodeSet(Node node)
Returns an iterator of matching nodes |
java.util.Iterator |
evalNodeSet(Node node,
Env env)
Returns an iterator of matching nodes |
double |
evalNumber(Node node)
Returns the numeric value of the node. |
double |
evalNumber(Node node,
Env env)
Returns the numeric value of the node. |
java.lang.Object |
evalObject(Node node)
Returns the object value of the node. |
java.lang.Object |
evalObject(Node node,
Env env)
Returns the object value of the node. |
java.lang.String |
evalString(Node node)
Returns the string value of the node. |
java.lang.String |
evalString(Node node,
Env env)
Returns the string value of the node. |
Pattern |
getListContext()
|
boolean |
isBoolean()
true if the expression prefers to return a boolean. |
boolean |
isNodeSet()
true if the expression prefers to return a node set. |
boolean |
isNumber()
true if the expression prefers to return a number. |
boolean |
isString()
true if the expression prefers to return a string. |
void |
setListContext(Pattern listContext)
|
static boolean |
toBoolean(java.lang.Object value)
Convert a Java object to a boolean using the XPath rules. |
static double |
toDouble(java.lang.Object value)
Convert a Java object to a double using the XPath rules. |
static Node |
toNode(java.lang.Object value)
Convert a Java object to a node using the XPath rules. |
static java.lang.String |
toString(java.lang.Object value)
Convert a Java object to a string using the XPath rules. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setListContext(Pattern listContext)
public Pattern getListContext()
public double evalNumber(Node node)
node
- the node to evaluate and use as a contextpublic double evalNumber(Node node, Env env)
node
- the node to evaluate and use as a contextenv
- variable environment.public boolean evalBoolean(Node node)
node
- the node to evaluate and use as a contextpublic boolean evalBoolean(Node node, Env env)
node
- the node to evaluate and use as a contextenv
- variable environment.public java.lang.String evalString(Node node)
node
- the node to evaluate and use as a contextpublic java.lang.String evalString(Node node, Env env)
node
- the node to evaluate and use as a contextenv
- variable environment.public java.lang.Object evalObject(Node node)
node
- the node to evaluate and use as a contextpublic java.lang.Object evalObject(Node node, Env env)
node
- the node to evaluate and use as a contextenv
- variable environment.public java.util.Iterator evalNodeSet(Node node)
node
- the node to evaluate and use as a contextpublic java.util.Iterator evalNodeSet(Node node, Env env)
node
- the node to evaluate and use as a contextenv
- variable environment.public boolean isNumber()
public boolean isBoolean()
public boolean isString()
public boolean isNodeSet()
public static boolean toBoolean(java.lang.Object value)
public static double toDouble(java.lang.Object value)
public static java.lang.String toString(java.lang.Object value)
public static Node toNode(java.lang.Object value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |