de.pannenleiter.tbug.saxon
Class SaxonThread

java.lang.Object
  |
  +--de.pannenleiter.tbug.saxon.SaxonThread
All Implemented Interfaces:
java.util.EventListener, com.icl.saxon.trace.TraceListener, XSLThread

public class SaxonThread
extends java.lang.Object
implements XSLThread, com.icl.saxon.trace.TraceListener

SaxonThread -- controls a suspended thread


Field Summary
protected  int action
           
protected  DebuggerCallback callback
           
protected  boolean defferedBreakpoint
           
protected  int depth
           
protected static int DO_END
           
protected static int DO_RUN
           
protected static int DO_RUN_BREAK
           
protected static int DO_SKIP
           
protected static int DO_TRACE
           
protected  ThreadManager owner
           
protected  java.util.Stack sourceFrames
           
protected  int state
           
protected  java.util.Stack styleFrames
           
 
Fields inherited from interface de.pannenleiter.tbug.hook.XSLThread
STATE_BEGIN_SOURCE, STATE_BEGIN_STYLE, STATE_END, STATE_END_SOURCE, STATE_END_STYLE, STATE_START
 
Constructor Summary
SaxonThread(ThreadManager owner, DebuggerCallback callback)
           
 
Method Summary
 void close()
          Called at end
 SourceFrame[] dumpSourceStack()
           
 StyleFrame[] dumpStyleStack()
           
 void enter(com.icl.saxon.om.NodeInfo node, com.icl.saxon.Context context)
          Called when an element of the stylesheet gets processed
 void enterSource(com.icl.saxon.handlers.NodeHandler handler, com.icl.saxon.Context context)
          Called when a node of the source tree gets processed
 int getCurrentSourceIndex()
           
 int getCurrentStyleIndex()
           
 SourceFrame getSourceFrame(int idx)
           
 int getState()
           
 StyleFrame getStyleFrame(int idx)
           
 void leave(com.icl.saxon.om.NodeInfo node, com.icl.saxon.Context context)
          Called after an element of the stylesheet got processed
 void leaveSource(com.icl.saxon.handlers.NodeHandler handler, com.icl.saxon.Context context)
          Called after a node of the source tree got processed
 void open()
          Called at start
 void resume()
           
 void setTrace(boolean on)
           
 void step()
           
 void stepEnd()
           
 void stepOver()
           
 void toplevel(com.icl.saxon.om.NodeInfo element)
          Called for all top level elements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DO_TRACE

protected static final int DO_TRACE

DO_SKIP

protected static final int DO_SKIP

DO_END

protected static final int DO_END

DO_RUN

protected static final int DO_RUN

DO_RUN_BREAK

protected static final int DO_RUN_BREAK

owner

protected ThreadManager owner

callback

protected DebuggerCallback callback

state

protected int state

action

protected int action

depth

protected int depth

defferedBreakpoint

protected boolean defferedBreakpoint

styleFrames

protected java.util.Stack styleFrames

sourceFrames

protected java.util.Stack sourceFrames
Constructor Detail

SaxonThread

public SaxonThread(ThreadManager owner,
                   DebuggerCallback callback)
Method Detail

open

public void open()
Called at start
Specified by:
open in interface com.icl.saxon.trace.TraceListener

close

public void close()
Called at end
Specified by:
close in interface com.icl.saxon.trace.TraceListener

toplevel

public void toplevel(com.icl.saxon.om.NodeInfo element)
              throws org.xml.sax.SAXException
Called for all top level elements
Specified by:
toplevel in interface com.icl.saxon.trace.TraceListener

enterSource

public void enterSource(com.icl.saxon.handlers.NodeHandler handler,
                        com.icl.saxon.Context context)
                 throws org.xml.sax.SAXException
Called when a node of the source tree gets processed
Specified by:
enterSource in interface com.icl.saxon.trace.TraceListener

leaveSource

public void leaveSource(com.icl.saxon.handlers.NodeHandler handler,
                        com.icl.saxon.Context context)
                 throws org.xml.sax.SAXException
Called after a node of the source tree got processed
Specified by:
leaveSource in interface com.icl.saxon.trace.TraceListener

enter

public void enter(com.icl.saxon.om.NodeInfo node,
                  com.icl.saxon.Context context)
           throws org.xml.sax.SAXException
Called when an element of the stylesheet gets processed
Specified by:
enter in interface com.icl.saxon.trace.TraceListener

leave

public void leave(com.icl.saxon.om.NodeInfo node,
                  com.icl.saxon.Context context)
           throws org.xml.sax.SAXException
Called after an element of the stylesheet got processed
Specified by:
leave in interface com.icl.saxon.trace.TraceListener

getState

public int getState()
             throws java.lang.Exception
Specified by:
getState in interface XSLThread

resume

public void resume()
            throws java.lang.Exception
Specified by:
resume in interface XSLThread

step

public void step()
          throws java.lang.Exception
Specified by:
step in interface XSLThread

stepOver

public void stepOver()
              throws java.lang.Exception
Specified by:
stepOver in interface XSLThread

stepEnd

public void stepEnd()
             throws java.lang.Exception
Specified by:
stepEnd in interface XSLThread

getCurrentSourceIndex

public int getCurrentSourceIndex()
                          throws java.lang.Exception
Specified by:
getCurrentSourceIndex in interface XSLThread

getCurrentStyleIndex

public int getCurrentStyleIndex()
                         throws java.lang.Exception
Specified by:
getCurrentStyleIndex in interface XSLThread

dumpSourceStack

public SourceFrame[] dumpSourceStack()
                              throws java.lang.Exception
Specified by:
dumpSourceStack in interface XSLThread

getSourceFrame

public SourceFrame getSourceFrame(int idx)
                           throws java.lang.Exception
Specified by:
getSourceFrame in interface XSLThread

dumpStyleStack

public StyleFrame[] dumpStyleStack()
                            throws java.lang.Exception
Specified by:
dumpStyleStack in interface XSLThread

getStyleFrame

public StyleFrame getStyleFrame(int idx)
                         throws java.lang.Exception
Specified by:
getStyleFrame in interface XSLThread

setTrace

public void setTrace(boolean on)