com.jclark.xsl.expr
Class PathPatternBase

java.lang.Object
  extended by com.jclark.xsl.expr.PathPatternBase
All Implemented Interfaces:
PathPattern, Pattern, TopLevelPattern
Direct Known Subclasses:
AttributeTest, ElementTest, FilterPattern, IdPattern, KeyPattern, NamespaceAttributeTest, NamespaceElementTest, NodeTypeTest, ParentPattern, ProcessingInstructionTest

abstract class PathPatternBase
extends java.lang.Object
implements PathPattern, TopLevelPattern

a (component of) a compiled XPath pattern expression


Constructor Summary
PathPatternBase()
           
 
Method Summary
 PathPattern[] getAlternatives()
          by default, only return a list of length one (itself)
(package private)  Name getMatchName()
          by default, returns null Element, Attribute and PI nodetype tests will override this
(package private) abstract  byte getMatchNodeType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jclark.xsl.expr.PathPattern
getDefaultPriority
 
Methods inherited from interface com.jclark.xsl.expr.Pattern
matches
 

Constructor Detail

PathPatternBase

PathPatternBase()
Method Detail

getAlternatives

public PathPattern[] getAlternatives()
by default, only return a list of length one (itself)

Specified by:
getAlternatives in interface TopLevelPattern

getMatchName

Name getMatchName()
by default, returns null Element, Attribute and PI nodetype tests will override this


getMatchNodeType

abstract byte getMatchNodeType()