com.jclark.xsl.expr
Class AlternativesPattern

java.lang.Object
  |
  +--com.jclark.xsl.expr.AlternativesPattern
All Implemented Interfaces:
Pattern, TopLevelPattern

class AlternativesPattern
extends java.lang.Object
implements TopLevelPattern


Constructor Summary
(package private) AlternativesPattern(TopLevelPattern pattern1, PathPattern pattern2)
           
 
Method Summary
 PathPattern[] getAlternatives()
           
 boolean matches(Node node, ExprContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlternativesPattern

AlternativesPattern(TopLevelPattern pattern1,
                    PathPattern pattern2)
Method Detail

matches

public boolean matches(Node node,
                       ExprContext context)
                throws XSLException
Specified by:
matches in interface Pattern
XSLException

getAlternatives

public PathPattern[] getAlternatives()
Specified by:
getAlternatives in interface TopLevelPattern