com.jclark.xsl.expr

Class NodeTypeTest

class NodeTypeTest extends PathPatternBase

Simply tests if a node is of a given type e.g. "text()"
Constructor Summary
NodeTypeTest(byte type)
construct with one of the constants from om.Node
Method Summary
intgetDefaultPriority()
bytegetMatchNodeType()
booleanmatches(Node node, ExprContext context)
return true if this represents the "node()" test, else return true if the node's type matches the test

Constructor Detail

NodeTypeTest

NodeTypeTest(byte type)
construct with one of the constants from om.Node

Method Detail

getDefaultPriority

public int getDefaultPriority()

getMatchNodeType

byte getMatchNodeType()

Returns: 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