com.jclark.xsl.expr

Class FilterPattern

Implemented Interfaces:
PathPattern, Pattern, TopLevelPattern

(package private) class FilterPattern
extends PathPatternBase

a pattern that has a predicate to eliminate some nodes

Nested Class Summary

(package private) class
FilterPattern.Context

Constructor Summary

FilterPattern(PathPatternBase pattern, BooleanExpr predicate)

Method Summary

int
getDefaultPriority()
priority when used in XSLT template match pattern
(package private) Name
getMatchName()
by default, returns null Element, Attribute and PI nodetype tests will override this
(package private) byte
getMatchNodeType()
boolean
matches(Node node, ExprContext context)
return true if the given node matches this pattern when evaluated in the given ExpressionContext

Methods inherited from class com.jclark.xsl.expr.PathPatternBase

getAlternatives, getMatchName, getMatchNodeType

Constructor Details

FilterPattern

(package private)  FilterPattern(PathPatternBase pattern,
                                 BooleanExpr predicate)

Method Details

getDefaultPriority

public int getDefaultPriority()
priority when used in XSLT template match pattern
Specified by:
getDefaultPriority in interface PathPattern

getMatchName

(package private)  Name getMatchName()
by default, returns null Element, Attribute and PI nodetype tests will override this
Overrides:
getMatchName in interface PathPatternBase

getMatchNodeType

(package private)  byte getMatchNodeType()
Overrides:
getMatchNodeType in interface PathPatternBase

matches

public boolean matches(Node node,
                       ExprContext context)
            throws XSLException
return true if the given node matches this pattern when evaluated in the given ExpressionContext
Specified by:
matches in interface Pattern