jd.xml.xslt.pattern
Class ProxyPattern

java.lang.Object
  extended byjd.xml.xslt.pattern.Pattern
      extended byjd.xml.xslt.pattern.ProxyPattern
Direct Known Subclasses:
TracePattern

public class ProxyPattern
extends Pattern

ProxyPattern wraps another pattern.


Field Summary
protected  Pattern pattern_
           
 
Constructor Summary
ProxyPattern(Pattern pattern)
           
 
Method Summary
 void accept(PatternVisitor visitor)
          Accept a PatternVisitor.
 double calculatePriority()
          Calculate the priority for this pattern.
 Pattern getPattern()
           
 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

pattern_

protected Pattern pattern_
Constructor Detail

ProxyPattern

public ProxyPattern(Pattern pattern)
Method Detail

getPattern

public Pattern getPattern()

match

public boolean match(XPathContext context)
Description copied from class: Pattern
Test if the context node matches the pattern.

Specified by:
match in class Pattern

calculatePriority

public double calculatePriority()
Description copied from class: Pattern
Calculate the priority for this pattern. The default implementation returns 0.5

Overrides:
calculatePriority in class Pattern

accept

public void accept(PatternVisitor visitor)
Description copied from class: Pattern
Accept a PatternVisitor.

Specified by:
accept in class Pattern