com.jclark.xsl.expr

Class IdPattern

Implemented Interfaces:
PathPattern, Pattern, TopLevelPattern

(package private) class IdPattern
extends PathPatternBase

represents an XSLT/XPath pattern of the form id('foo')

Constructor Summary

IdPattern(String id)

Method Summary

int
getDefaultPriority()
(package private) byte
getMatchNodeType()
boolean
matches(Node node, ExprContext context)

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

getAlternatives, getMatchName, getMatchNodeType

Constructor Details

IdPattern

(package private)  IdPattern(String id)

Method Details

getDefaultPriority

public int getDefaultPriority()
Specified by:
getDefaultPriority in interface PathPattern


getMatchNodeType

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

Returns:
om.Node.ELEMENT


matches

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

Returns:
true if the given node carries the id under consideration