public class DefaultXPathExpr extends Object implements XPathExpr
| Constructor and Description |
|---|
DefaultXPathExpr(Expr rootExpr)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List |
asList(Context context)
Deprecated.
Evaluates the expression and returns a list cintaing the resulting nodes,
or a singleton list containing a
Double, String,
or Boolean. |
Expr |
getRootExpr()
Deprecated.
Returns the wrapped expression object.
|
String |
getText()
Deprecated.
Returns a String containing the XPath expression.
|
void |
setRootExpr(Expr rootExpr)
Deprecated.
Changes the wrapped expression object.
|
void |
simplify()
Deprecated.
Simplifies the XPath expression.
|
String |
toString()
Deprecated.
|
public DefaultXPathExpr(Expr rootExpr)
public Expr getRootExpr()
XPathExprgetRootExpr in interface XPathExprpublic void setRootExpr(Expr rootExpr)
XPathExprsetRootExpr in interface XPathExprrootExpr - the new expression object to wrappublic String getText()
XPathExprpublic void simplify()
XPathExpr//para[1 = 1] could be simplified to
//para. In practice, this is usually a noop.
Jaxen does not currently perform any simplification.public List asList(Context context) throws JaxenException
XPathExprDouble, String,
or Boolean.asList in interface XPathExprcontext - the context in which to evaluate this expressionJaxenExceptionCopyright © 2001-2012 Codehaus. All Rights Reserved.