org.modeshape.jcr.xpath
Class XPath.PathExpression
java.lang.Object
org.modeshape.jcr.xpath.XPath.Component
org.modeshape.jcr.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>
- See Also:
Iterable.iterator()
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
- See Also:
Object.equals(java.lang.Object)
toString
public String toString()
-
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.