com.jclark.xsl.expr

Class ParentPattern

class ParentPattern extends PathPatternBase

represents the concatenation of step patterns, right to left in a LocationPathPattern
Constructor Summary
ParentPattern(PathPatternBase childPattern, Pattern parentPattern)
construct with a new stepPattern: childPattern and a previous parentPattern
Method Summary
intgetDefaultPriority()
NamegetMatchName()
gets the rightmost (final) step's matchNodeType
bytegetMatchNodeType()
gets the rightmost (final) step's matchNodeType
booleanmatches(Node node, ExprContext context)
if the rightmost step matches, and our parentPattern's matches() returns true for this node's parent then we have a winner!

Constructor Detail

ParentPattern

ParentPattern(PathPatternBase childPattern, Pattern parentPattern)
construct with a new stepPattern: childPattern and a previous parentPattern

Method Detail

getDefaultPriority

public int getDefaultPriority()

getMatchName

Name getMatchName()
gets the rightmost (final) step's matchNodeType

getMatchNodeType

byte getMatchNodeType()
gets the rightmost (final) step's matchNodeType

matches

public boolean matches(Node node, ExprContext context)
if the rightmost step matches, and our parentPattern's matches() returns true for this node's parent then we have a winner!