|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jclark.xsl.expr.PathPatternBase
com.jclark.xsl.expr.NodeTypeTest
Simply tests if a node is of a given type e.g. "text()"
| Constructor Summary | |
(package private) |
NodeTypeTest(byte type)
construct with one of the constants from om.Node |
| Method Summary | |
PathPattern[] |
getAlternatives()
by default, only return a list of length one (itself) |
int |
getDefaultPriority()
priority when used in XSLT template match pattern |
(package private) Name |
getMatchName()
by default, returns null Element, Attribute and PI nodetype tests will override this |
(package private) byte |
getMatchNodeType()
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
NodeTypeTest(byte type)
| Method Detail |
public boolean matches(Node node,
ExprContext context)
byte getMatchNodeType()
getMatchNodeType in class PathPatternBasepublic int getDefaultPriority()
PathPattern
public PathPattern[] getAlternatives()
getAlternatives in interface TopLevelPatternName getMatchName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||