com.xmlcalabash.util
Class ProcessMatch

java.lang.Object
  extended by com.xmlcalabash.util.TreeWriter
      extended by com.xmlcalabash.util.ProcessMatch

public class ProcessMatch
extends TreeWriter

Author:
ndw

Field Summary
static int SAW_COMMENT
           
static int SAW_ELEMENT
           
static int SAW_PI
           
static int SAW_TEXT
           
static int SAW_WHITESPACE
           
 
Fields inherited from class com.xmlcalabash.util.TreeWriter
controller, destination, exec, inDocument, logger, pool, receiver, runtime, seenRoot, xLocationProvider
 
Constructor Summary
ProcessMatch(XProcRuntime runtime, ProcessMatchingNodes processor)
          Creates a new instance of ProcessMatch
 
Method Summary
 int count(net.sf.saxon.s9api.XdmNode doc, RuntimeValue match, boolean deep)
           
 net.sf.saxon.s9api.XdmNode getResult()
           
 void match(net.sf.saxon.s9api.XdmNode doc, RuntimeValue match)
           
 boolean matches(net.sf.saxon.s9api.XdmNode node)
           
 void startDocument(java.net.URI baseURI)
           
 
Methods inherited from class com.xmlcalabash.util.TreeWriter
addAttribute, addAttribute, addAttribute, addAttribute, addAttributes, addComment, addEndElement, addNamespace, addPI, addStartElement, addStartElement, addStartElement, addStartElement, addSubtree, addText, endDocument, inDocument, startContent, writeChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAW_ELEMENT

public static final int SAW_ELEMENT
See Also:
Constant Field Values

SAW_WHITESPACE

public static final int SAW_WHITESPACE
See Also:
Constant Field Values

SAW_TEXT

public static final int SAW_TEXT
See Also:
Constant Field Values

SAW_PI

public static final int SAW_PI
See Also:
Constant Field Values

SAW_COMMENT

public static final int SAW_COMMENT
See Also:
Constant Field Values
Constructor Detail

ProcessMatch

public ProcessMatch(XProcRuntime runtime,
                    ProcessMatchingNodes processor)
Creates a new instance of ProcessMatch

Method Detail

match

public void match(net.sf.saxon.s9api.XdmNode doc,
                  RuntimeValue match)

startDocument

public void startDocument(java.net.URI baseURI)
Overrides:
startDocument in class TreeWriter

count

public int count(net.sf.saxon.s9api.XdmNode doc,
                 RuntimeValue match,
                 boolean deep)

getResult

public net.sf.saxon.s9api.XdmNode getResult()
Overrides:
getResult in class TreeWriter

matches

public boolean matches(net.sf.saxon.s9api.XdmNode node)