lux.xpath
Class PathStep

java.lang.Object
  extended by lux.xpath.AbstractExpression
      extended by lux.xpath.PathStep
All Implemented Interfaces:
Visitable

public class PathStep
extends AbstractExpression


Nested Class Summary
static class PathStep.Axis
           
 
Nested classes/interfaces inherited from class lux.xpath.AbstractExpression
AbstractExpression.Type
 
Field Summary
 
Fields inherited from class lux.xpath.AbstractExpression
subs, sup
 
Constructor Summary
PathStep(PathStep.Axis axis, NodeTest nodeTest)
           
 
Method Summary
 AbstractExpression accept(ExpressionVisitor visitor)
           
 PathStep.Axis getAxis()
           
 AbstractExpression getLastContextStep()
          This method is called by the optimizer in order to determine an element or attribute QName (or wildcard) against which some expression is being compared, in order to generate an appropriate text query.
 NodeTest getNodeTest()
           
 int getPrecedence()
           
 boolean isDocumentOrdered()
           
 void toString(StringBuilder buf)
          Each subclass must implement the toString(StringBuilder) method by rendering itself as a syntatically valid XPath/XQuery expression in the given buffer.
 
Methods inherited from class lux.xpath.AbstractExpression
acceptSubs, appendSub, getBindingContext, getRoot, getSubs, getSuper, getTail, getType, isAbsolute, replaceRoot, setSubs, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathStep

public PathStep(PathStep.Axis axis,
                NodeTest nodeTest)
Method Detail

getAxis

public PathStep.Axis getAxis()

getNodeTest

public NodeTest getNodeTest()

toString

public void toString(StringBuilder buf)
Description copied from class: AbstractExpression
Each subclass must implement the toString(StringBuilder) method by rendering itself as a syntatically valid XPath/XQuery expression in the given buffer.

Specified by:
toString in class AbstractExpression

accept

public AbstractExpression accept(ExpressionVisitor visitor)

getPrecedence

public int getPrecedence()
Specified by:
getPrecedence in class AbstractExpression
Returns:
0

isDocumentOrdered

public boolean isDocumentOrdered()
Overrides:
isDocumentOrdered in class AbstractExpression
Returns:
whether this expression is proven to return results in document order. This method returns true iff all its subs return true, or it has none. Warning: incorrect results may occur if document-ordering is falsely asserted.

getLastContextStep

public AbstractExpression getLastContextStep()
Description copied from class: AbstractExpression
This method is called by the optimizer in order to determine an element or attribute QName (or wildcard) against which some expression is being compared, in order to generate an appropriate text query.

Overrides:
getLastContextStep in class AbstractExpression
Returns:
the rightmost path step in the context of this expression.


Copyright © 2013. All Rights Reserved.