jd.xml.xslt.pattern
Class ComposedPathPattern

java.lang.Object
  extended byjd.xml.xslt.pattern.Pattern
      extended byjd.xml.xslt.pattern.ComposedPathPattern

public class ComposedPathPattern
extends Pattern

ComposedPath pattern represents the pattern which is composed of two path patterns, either direct (lhs/rhs) or indirect (lhs//rhs).


Constructor Summary
ComposedPathPattern(Pattern lhs, Pattern rhs, boolean composeDirect)
          Create the ComposedPathPattern.
 
Method Summary
 void accept(PatternVisitor visitor)
          Accept a PatternVisitor.
 boolean match(XPathContext context)
          Test if the context node matches the pattern.
 
Methods inherited from class jd.xml.xslt.pattern.Pattern
calculatePriority, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComposedPathPattern

public ComposedPathPattern(Pattern lhs,
                           Pattern rhs,
                           boolean composeDirect)
Create the ComposedPathPattern.

Method Detail

match

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

Specified by:
match in class Pattern

accept

public void accept(PatternVisitor visitor)
Accept a PatternVisitor.

Specified by:
accept in class Pattern