pnuts.tools
Class VisualDebuggerModel

java.lang.Object
  extended by pnuts.lang.Runtime
      extended by pnuts.tools.VisualDebuggerModel
All Implemented Interfaces:
Executable, CommandListener, Debugger

public class VisualDebuggerModel
extends Runtime
implements Debugger


Nested Class Summary
 
Nested classes/interfaces inherited from class pnuts.lang.Runtime
Runtime.Accessor, Runtime.Break, Runtime.Continue, Runtime.FunctionSerializer, Runtime.TypeMap
 
Field Summary
 
Fields inherited from class pnuts.lang.Runtime
BOOLEAN_SYMBOL, BYTE_SYMBOL, CHAR_SYMBOL, CLONE, DOUBLE_SYMBOL, EXCEPTOIN_FIELD_SYMBOL, FLOAT_SYMBOL, INT_SYMBOL, LONG_SYMBOL, SHORT_SYMBOL, VOID_SYMBOL
 
Constructor Summary
VisualDebuggerModel()
           
 
Method Summary
 void clearBreakPoints()
          Remove all breakpoints
 void do_close()
           
 void do_cont()
           
 void do_next(int n)
           
 void do_step(int n)
           
 void do_stepup()
           
 java.util.Vector getBreakPoints(java.lang.Object source)
           
 java.lang.Object getCurrentSource()
           
 void removeBreakPoint(java.lang.Object source, int lineno)
          Remove a breakpoint
 void setBreakPoint(java.lang.Object source, int lineno)
          Sets a breakpoint
protected  void showScript(java.lang.Object source, int line, SimpleNode node, Context context)
           
 void signal(CommandEvent event)
          Some kind of event raised, e.g.
 
Methods inherited from class pnuts.lang.Runtime
_callConstructor, _callMethod, add, add, add1, add1, addImport, addStaticMembers, and, and, applyGenerator, arraydim, arrayType, call, call, callConstructor, callFunction, callMethod, cast, catchException, checkException, checkException, compareObjects, compareTo, compareTo, createList, createMap, defineTopLevelFunction, defineUnboundFunction, divide, divide, eq, eq, escape, exec, execute, fileToURL, findCallableMethod, format, format, ge, ge, getArrayLength, getBeanProperty, getBeanProperty, getBeanProperty, getBeanPropertyType, getBeginColumn, getBeginLine, getBottomType, getCompiledScript, getConstructors, getElement, getElementAt, getEndLine, getField, getField, getFunction, getFunction, getFunctions, getMessage, getMethods, getProperty, getRange, getRuntime, getScriptReader, getScriptSource, getScriptURL, getStaticField, getThreadContext, gt, gt, isArray, isGenerator, jump, le, le, loadNode, lt, lt, makeArray, matchType, mod, mod, multiply, multiply, ne, ne, negate, negate, newInstance, not, not, or, or, parseChar, parseFloat, parseInt, parseString, primitive, printError, putField, putStaticField, quantity, replaceChar, run, saveNode, setBeanProperty, setBeanProperty, setBeanProperty, setElement, setExitHook, setLine, setLine, setPackage, setRange, setThreadContext, shiftArithmetic, shiftArithmetic, shiftLeft, shiftLeft, shiftRight, shiftRight, subtract, subtract, subtract1, subtract1, throwException, toBoolean, toEnumeration, transform, transform, unparse, xor, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualDebuggerModel

public VisualDebuggerModel()
Method Detail

do_step

public void do_step(int n)

do_stepup

public void do_stepup()

do_next

public void do_next(int n)

do_cont

public void do_cont()

do_close

public void do_close()

getCurrentSource

public java.lang.Object getCurrentSource()

setBreakPoint

public void setBreakPoint(java.lang.Object source,
                          int lineno)
Description copied from interface: Debugger
Sets a breakpoint

Specified by:
setBreakPoint in interface Debugger

removeBreakPoint

public void removeBreakPoint(java.lang.Object source,
                             int lineno)
Description copied from interface: Debugger
Remove a breakpoint

Specified by:
removeBreakPoint in interface Debugger

getBreakPoints

public java.util.Vector getBreakPoints(java.lang.Object source)

clearBreakPoints

public void clearBreakPoints()
Description copied from interface: Debugger
Remove all breakpoints

Specified by:
clearBreakPoints in interface Debugger

signal

public void signal(CommandEvent event)
Description copied from interface: CommandListener
Some kind of event raised, e.g. the line number has changed.

Specified by:
signal in interface CommandListener

showScript

protected void showScript(java.lang.Object source,
                          int line,
                          SimpleNode node,
                          Context context)