com.jclark.xsl.expr

Class AttributeTest

Implemented Interfaces:
PathPattern, Pattern, TopLevelPattern

(package private) class AttributeTest
extends PathPatternBase

A compiled XPath component that tests a node to see if it is an attribute with a (possibly?) specified name

Constructor Summary

AttributeTest(Name name)
construct with the given name

Method Summary

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

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

getAlternatives, getMatchName, getMatchNodeType

Constructor Details

AttributeTest

(package private)  AttributeTest(Name name)
construct with the given name

Method Details

getDefaultPriority

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

getMatchName

(package private)  Name getMatchName()
Overrides:
getMatchName in interface PathPatternBase
Returns:
the Name we test for

getMatchNodeType

(package private)  byte getMatchNodeType()
Overrides:
getMatchNodeType in interface PathPatternBase
Returns:
om.Node.ATTRIBUTE

matches

public boolean matches(Node node,
                       ExprContext context)
Specified by:
matches in interface Pattern
Returns:
true if the node is an ATTRIBUTE and has the specified Name