org.jaxen.expr

Class DefaultLocationPath

Implemented Interfaces:
Expr, LocationPath, Serializable, Visitable
Known Direct Subclasses:
DefaultAbsoluteLocationPath, DefaultRelativeLocationPath

(package private) abstract class DefaultLocationPath
extends DefaultExpr
implements LocationPath

Field Summary

private List
steps

Constructor Summary

DefaultLocationPath()
Create a new empty location path.

Method Summary

void
addStep(Step step)
Object
evaluate(Context context)
List
getSteps()
String
getText()
boolean
isAbsolute()
private boolean
isReverseAxis(Step step)
Expr
simplify()
String
toString()

Methods inherited from class org.jaxen.expr.DefaultExpr

convertToIterator, convertToList, simplify

Field Details

steps

private List steps

Constructor Details

DefaultLocationPath

(package private)  DefaultLocationPath()
Create a new empty location path.

Method Details

addStep

public void addStep(Step step)
Specified by:
addStep in interface LocationPath

evaluate

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

getSteps

public List getSteps()
Specified by:
getSteps in interface LocationPath

getText

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

isAbsolute

public boolean isAbsolute()
Specified by:
isAbsolute in interface LocationPath

isReverseAxis

private boolean isReverseAxis(Step step)

simplify

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

toString

public String toString()