jd.xml.xslt.pattern
Class Pattern

java.lang.Object
  extended byjd.xml.xslt.pattern.Pattern
Direct Known Subclasses:
ComposedPathPattern, IdPattern, KeyPattern, NumberCountPattern, OrPattern, ProxyPattern, RootPattern, StepPattern

public abstract class Pattern
extends Object

Pattern is a base class for XSLT patterns.


Constructor Summary
Pattern()
           
 
Method Summary
abstract  void accept(PatternVisitor visitor)
          Accept a PatternVisitor.
 double calculatePriority()
          Calculate the priority for this pattern.
abstract  boolean match(XPathContext context)
          Test if the context node matches the pattern.
 String toString()
          Return a string representation of the pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pattern

public Pattern()
Method Detail

match

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


calculatePriority

public double calculatePriority()
Calculate the priority for this pattern. The default implementation returns 0.5


accept

public abstract void accept(PatternVisitor visitor)
Accept a PatternVisitor.


toString

public final String toString()
Return a string representation of the pattern.