Package org.jaxen.expr
Class DefaultXPathExpr
- java.lang.Object
-
- org.jaxen.expr.DefaultXPathExpr
-
- All Implemented Interfaces:
java.io.Serializable
,XPathExpr
public class DefaultXPathExpr extends java.lang.Object implements XPathExpr
Deprecated.this class will become non-public in the future; use the interface instead- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Expr
rootExpr
Deprecated.private static long
serialVersionUID
Deprecated.
-
Constructor Summary
Constructors Constructor Description DefaultXPathExpr(Expr rootExpr)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List
asList(Context context)
Deprecated.Evaluates the expression and returns a list cintaing the resulting nodes, or a singleton list containing aDouble
,String
, orBoolean
.Expr
getRootExpr()
Deprecated.Returns the wrapped expression object.java.lang.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.java.lang.String
toString()
Deprecated.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Deprecated.- See Also:
- Constant Field Values
-
rootExpr
private Expr rootExpr
Deprecated.
-
-
Constructor Detail
-
DefaultXPathExpr
public DefaultXPathExpr(Expr rootExpr)
Deprecated.
-
-
Method Detail
-
getRootExpr
public Expr getRootExpr()
Deprecated.Description copied from interface:XPathExpr
Returns the wrapped expression object.- Specified by:
getRootExpr
in interfaceXPathExpr
- Returns:
- the wrapped Expr object
-
setRootExpr
public void setRootExpr(Expr rootExpr)
Deprecated.Description copied from interface:XPathExpr
Changes the wrapped expression object.- Specified by:
setRootExpr
in interfaceXPathExpr
- Parameters:
rootExpr
- the new expression object to wrap
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
getText
public java.lang.String getText()
Deprecated.Description copied from interface:XPathExpr
Returns a String containing the XPath expression.
-
simplify
public void simplify()
Deprecated.Description copied from interface:XPathExpr
Simplifies the XPath expression. For example, the expression//para[1 = 1]
could be simplified to//para
. In practice, this is usually a noop. Jaxen does not currently perform any simplification.
-
asList
public java.util.List asList(Context context) throws JaxenException
Deprecated.Description copied from interface:XPathExpr
Evaluates the expression and returns a list cintaing the resulting nodes, or a singleton list containing aDouble
,String
, orBoolean
.- Specified by:
asList
in interfaceXPathExpr
- Parameters:
context
- the context in which to evaluate this expression- Returns:
- a list
- Throws:
JaxenException
-
-