com.jclark.xsl.expr

Class AlternativesPattern

class AlternativesPattern extends Object implements TopLevelPattern

represents an "OR" (union) of match patterns
Constructor Summary
AlternativesPattern(TopLevelPattern pattern1, PathPattern pattern2)
construct with a head pattern1 and tail pattern2
Method Summary
PathPattern[]getAlternatives()
booleanmatches(Node node, ExprContext context)
evaluate to a boolean

Constructor Detail

AlternativesPattern

AlternativesPattern(TopLevelPattern pattern1, PathPattern pattern2)
construct with a head pattern1 and tail pattern2

Method Detail

getAlternatives

public PathPattern[] getAlternatives()

Returns: an array of all the alternative PathPatterns

matches

public boolean matches(Node node, ExprContext context)
evaluate to a boolean