jd.xml.xslt.pattern
Class StepPattern

java.lang.Object
  extended byjd.xml.xslt.pattern.Pattern
      extended byjd.xml.xslt.pattern.StepPattern
Direct Known Subclasses:
FilteredStepPattern

public class StepPattern
extends Pattern

StepPattern represents a location step pattern consisting of a NodeTest.


Field Summary
protected  NodeTest nodeTest_
           
protected  int principalNodeType_
           
 
Constructor Summary
StepPattern(boolean useChildAxis, NodeTest nodeTest)
           
 
Method Summary
 void accept(PatternVisitor visitor)
          Accept a PatternVisitor.
 double calculatePriority()
          Calculate the priority for this pattern.
 boolean match(XPathContext context)
          Test if the context node matches the pattern.
 
Methods inherited from class jd.xml.xslt.pattern.Pattern
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nodeTest_

protected final NodeTest nodeTest_

principalNodeType_

protected final int principalNodeType_
Constructor Detail

StepPattern

public StepPattern(boolean useChildAxis,
                   NodeTest nodeTest)
Method Detail

match

public boolean match(XPathContext context)
Test if the context node matches the pattern.

Specified by:
match in class Pattern

calculatePriority

public double calculatePriority()
Calculate the priority for this pattern.

Overrides:
calculatePriority in class Pattern

accept

public void accept(PatternVisitor visitor)
Accept a PatternVisitor.

Specified by:
accept in class Pattern