com.jclark.xsl.expr
Class NodeTypeTest
- PathPattern, Pattern, TopLevelPattern
(package private) class NodeTypeTest
Simply tests if a node is of a given type e.g. "text()"
NodeTypeTest(byte type) - construct with one of the constants from om.Node
|
NodeTypeTest
(package private) NodeTypeTest(byte type)
construct with one of the constants from om.Node
getMatchNodeType
(package private) byte getMatchNodeType()
- getMatchNodeType in interface PathPatternBase
- one of the constants on om.Node ... the type of node we match
matches
public boolean matches(Node node,
ExprContext context)
return true if this represents the "node()" test, else
return true if the node's type matches the test
- matches in interface Pattern