org.modeshape.jcr.query.xpath
Class XPath.PathExpression
java.lang.Object
org.modeshape.jcr.query.xpath.XPath.Component
org.modeshape.jcr.query.xpath.XPath.PathExpression
- All Implemented Interfaces:
- Iterable<XPath.StepExpression>
- Enclosing class:
- XPath
public static class XPath.PathExpression
- extends XPath.Component
- implements Iterable<XPath.StepExpression>
XPath.PathExpression
public XPath.PathExpression(boolean relative,
List<XPath.StepExpression> steps,
XPath.OrderBy orderBy)
isRelative
public boolean isRelative()
- Returns:
- relative
getOrderBy
public XPath.OrderBy getOrderBy()
- Get the order-by clause.
- Returns:
- the order-by clause, or null if there is no such clause
getSteps
public List<XPath.StepExpression> getSteps()
- Returns:
- steps
getLastStep
public XPath.StepExpression getLastStep()
withoutLast
public XPath.PathExpression withoutLast()
withoutFirst
public XPath.PathExpression withoutFirst()
iterator
public Iterator<XPath.StepExpression> iterator()
- Specified by:
iterator
in interface Iterable<XPath.StepExpression>
collapse
public XPath.Component collapse()
- Description copied from class:
XPath.Component
- Return the collapsable form
- Overrides:
collapse
in class XPath.Component
- Returns:
- the collapsed form of th is component; never null and possibly the same as this
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.