org.jaxen.expr

Class DefaultPathExpr

Implemented Interfaces:
Expr, PathExpr, Serializable

(package private) class DefaultPathExpr
extends DefaultExpr
implements PathExpr

Field Summary

private Expr
filterExpr
private LocationPath
locationPath
private static long
serialVersionUID

Constructor Summary

DefaultPathExpr(Expr filterExpr, LocationPath locationPath)

Method Summary

Object
evaluate(Context context)
Expr
getFilterExpr()
Returns the filter expression that starts the path expression.
LocationPath
getLocationPath()
Returns the location path part of this path expression.
String
getText()
void
setFilterExpr(Expr filterExpr)
Changes the expression's filter expression.
Expr
simplify()
String
toString()

Methods inherited from class org.jaxen.expr.DefaultExpr

convertToIterator, convertToList, simplify

Field Details

filterExpr

private Expr filterExpr

locationPath

private LocationPath locationPath

serialVersionUID

private static final long serialVersionUID
Field Value:
-6593934674727004281L

Constructor Details

DefaultPathExpr

(package private)  DefaultPathExpr(Expr filterExpr,
                                   LocationPath locationPath)

Method Details

evaluate

public Object evaluate(Context context)
            throws JaxenException
Specified by:
evaluate in interface Expr

getFilterExpr

public Expr getFilterExpr()
Returns the filter expression that starts the path expression.
Specified by:
getFilterExpr in interface PathExpr
Returns:
the filter expression that starts the path expression

getLocationPath

public LocationPath getLocationPath()
Returns the location path part of this path expression.
Specified by:
getLocationPath in interface PathExpr
Returns:
the location path part of this expression

getText

public String getText()
Specified by:
getText in interface Expr

setFilterExpr

public void setFilterExpr(Expr filterExpr)
Changes the expression's filter expression.
Specified by:
setFilterExpr in interface PathExpr
Parameters:
filterExpr - the new filter expression

simplify

public Expr simplify()
Specified by:
simplify in interface Expr
Overrides:
simplify in interface DefaultExpr

toString

public String toString()