com.icl.saxon.pattern
Class FirstElementPattern

java.lang.Object
  |
  +--com.icl.saxon.pattern.Pattern
        |
        +--com.icl.saxon.pattern.LocationPathPattern
              |
              +--com.icl.saxon.pattern.FirstElementPattern

public class FirstElementPattern
extends LocationPathPattern

FirstElementPattern is a specialisation of LocationPathPattern to handle the common case of a pattern with a single qualifier, the constant integer [1].


Fields inherited from class com.icl.saxon.pattern.LocationPathPattern
ancestorPattern, extent, filters, nodeTest, parentPattern
 
Fields inherited from class com.icl.saxon.pattern.Pattern
originalText, staticContext
 
Constructor Summary
FirstElementPattern()
           
 
Method Summary
protected  boolean testFilters(NodeInfo node, Context c)
          This testFilters() method simply tests whether the node is the first element matching the name test
 
Methods inherited from class com.icl.saxon.pattern.LocationPathPattern
addFilter, getFingerprint, getNodeType, isRelative, matches, matchesX, simplify
 
Methods inherited from class com.icl.saxon.pattern.Pattern
getDefaultPriority, getLineNumber, getStaticContext, getSystemId, make, setOriginalText, setStaticContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FirstElementPattern

public FirstElementPattern()
Method Detail

testFilters

protected boolean testFilters(NodeInfo node,
                              Context c)
                       throws org.xml.sax.SAXException
This testFilters() method simply tests whether the node is the first element matching the name test
Overrides:
testFilters in class LocationPathPattern