jd.xml.xslt.pattern
Class StepPattern
java.lang.Object
jd.xml.xslt.pattern.Pattern
jd.xml.xslt.pattern.StepPattern
- Direct Known Subclasses:
- FilteredStepPattern
- public class StepPattern
- extends Pattern
StepPattern represents a location step pattern consisting of a NodeTest.
nodeTest_
protected final NodeTest nodeTest_
principalNodeType_
protected final int principalNodeType_
StepPattern
public StepPattern(boolean useChildAxis,
NodeTest nodeTest)
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