Package org.eclipse.wst.xsl.debugger


org.eclipse.wst.xsl.debugger
Class IXSLDebugger



public class IXSLDebugger
extends 
An interface to XSL debugger instances.


Method Summary

public voidaddBreakpoint(org.eclipse.wst.xsl.debugger.BreakPoint breakpoint)
     Add a breakpoint to this.
public voidaddTransformer(javax.xml.transform.Transformer transformer)
     Add a transformer to this.
public org.eclipse.wst.xsl.debugger.VariablegetVariable(int id)
     Get the variable with the given id.
public voidquit()
     Quit debugging.
public voidremoveBreakpoint(org.eclipse.wst.xsl.debugger.BreakPoint breakpoint)
     Remove a breakpoint from this.
public voidresume()
     Perform a 'resume' operation.
public voidsetEventWriter(java.io.Writer writer)
     Set the Writer for this to write events to.
public voidsetInvoker(org.eclipse.wst.xsl.invoker.IProcessorInvoker invoker)
     Set the invoker to use.
public voidsetSource(java.net.URL sourceURL)
     Set the URL of the transformation source file.
public voidsetTarget(javax.xml.transform.Result res)
     Set the transformation Result.
public voidsetTransformerFactory(javax.xml.transform.TransformerFactory factory)
     Set the transformer factory to use.
public java.lang.Stringstack()
     Generate a string that represents the current call stack of frames and their variables.

Frames are generated with the following format: file|frameId|lineNumber|name This is immediately followed with the id's of the frame's variables (each variable id being unique for the whole process).

The separator for frames is $$$. Within a frame, the separator for variable id's is |.

e.g. file:/tran1.xsl|1|12|xsl:template name="temp1"|1|2|3$$$file:/tran2.xsl|2|34|xsl:template name="temp2"|4|5|6 This defines 2 frames with id's 1 and 2, which are occur in files tran1.xsl and tran2.xsl respectively. Frame 1 is currently at line 12, in a template with name temp1, and it defines 3 variables with id's 1, 2 and 3.

public voidstepInto()
     Perform a 'step into' operation.
public voidstepOver()
     Perform a 'step over' operation.
public voidstepReturn()
     Perform a 'step return' operation.
public voidsuspend()
     Perform a 'suspend' operation.

Methods Detail

addBreakpoint

public void addBreakpoint(org.eclipse.wst.xsl.debugger.BreakPoint breakpoint)

Add a breakpoint to this.

Parameters

breakpoint


addTransformer

public void addTransformer(javax.xml.transform.Transformer transformer)

Add a transformer to this.

Parameters

transformer


getVariable

public org.eclipse.wst.xsl.debugger.Variable getVariable(int id)

Get the variable with the given id.

Parameters

id - the id of the variable

Returns

org.eclipse.wst.xsl.debugger.Variable - the variable


quit

public void quit()

Quit debugging.


removeBreakpoint

public void removeBreakpoint(org.eclipse.wst.xsl.debugger.BreakPoint breakpoint)

Remove a breakpoint from this.

Parameters

breakpoint


resume

public void resume()

Perform a 'resume' operation.


setEventWriter

public void setEventWriter(java.io.Writer writer)

Set the Writer for this to write events to.

Parameters

writer - the writer to write events to


setInvoker

public void setInvoker(org.eclipse.wst.xsl.invoker.IProcessorInvoker invoker)

Set the invoker to use.

Parameters

invoker - the invoker to set


setSource

public void setSource(java.net.URL sourceURL)

Set the URL of the transformation source file.

Parameters

sourceURL - the source URL


setTarget

public void setTarget(javax.xml.transform.Result res)

Set the transformation Result.

Parameters

res - the result


setTransformerFactory

public void setTransformerFactory(javax.xml.transform.TransformerFactory factory)

Set the transformer factory to use.

Parameters

factory - the factory to use


stack

public java.lang.String stack()

Generate a string that represents the current call stack of frames and their variables.

Frames are generated with the following format: file|frameId|lineNumber|name This is immediately followed with the id's of the frame's variables (each variable id being unique for the whole process).

The separator for frames is $$$. Within a frame, the separator for variable id's is |.

e.g. file:/tran1.xsl|1|12|xsl:template name="temp1"|1|2|3$$$file:/tran2.xsl|2|34|xsl:template name="temp2"|4|5|6 This defines 2 frames with id's 1 and 2, which are occur in files tran1.xsl and tran2.xsl respectively. Frame 1 is currently at line 12, in a template with name temp1, and it defines 3 variables with id's 1, 2 and 3.

Returns

java.lang.String - the generated string


stepInto

public void stepInto()

Perform a 'step into' operation.


stepOver

public void stepOver()

Perform a 'step over' operation.


stepReturn

public void stepReturn()

Perform a 'step return' operation.


suspend

public void suspend()

Perform a 'suspend' operation.