jd.xml.xslt.pattern
Class FilteredStepPattern

java.lang.Object
  extended byjd.xml.xslt.pattern.Pattern
      extended byjd.xml.xslt.pattern.StepPattern
          extended byjd.xml.xslt.pattern.FilteredStepPattern

public class FilteredStepPattern
extends StepPattern

FilteredStepPattern is a StepPattern with one or more predicate expressions.


Field Summary
 
Fields inherited from class jd.xml.xslt.pattern.StepPattern
nodeTest_, principalNodeType_
 
Constructor Summary
FilteredStepPattern(boolean useChildAxis, NodeTest nodeTest, Expression[] predicates)
           
 
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
 

Constructor Detail

FilteredStepPattern

public FilteredStepPattern(boolean useChildAxis,
                           NodeTest nodeTest,
                           Expression[] predicates)
Method Detail

match

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

Overrides:
match in class StepPattern

calculatePriority

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

Overrides:
calculatePriority in class StepPattern

accept

public void accept(PatternVisitor visitor)
Accept a PatternVisitor.

Overrides:
accept in class StepPattern