Class SimpleDebugHandler

java.lang.Object
me.topchetoeu.j2s.repl.debug.SimpleDebugHandler
All Implemented Interfaces:
me.topchetoeu.j2s.runtime.debug.DebugHandler

public class SimpleDebugHandler extends Object implements me.topchetoeu.j2s.runtime.debug.DebugHandler
  • Field Summary

    Fields inherited from interface me.topchetoeu.j2s.runtime.debug.DebugHandler

    EMPTY, IGNORE, KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    attachDebugger(me.topchetoeu.j2s.runtime.debug.DebugHandler debugger)
     
    me.topchetoeu.j2s.runtime.debug.DebugHandler
     
    boolean
     
    boolean
    detachDebugger(me.topchetoeu.j2s.runtime.debug.DebugHandler debugger)
     
    me.topchetoeu.j2s.common.FunctionMap
    getMap(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.common.FunctionBody func)
     
    void
    onFramePop(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame frame)
     
    void
    onFramePush(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame frame)
     
    void
    onFunctionLoad(me.topchetoeu.j2s.common.FunctionBody func, me.topchetoeu.j2s.common.FunctionMap map)
     
    boolean
    onInstruction(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame frame, me.topchetoeu.j2s.common.Instruction instruction, me.topchetoeu.j2s.runtime.values.Value returnVal, me.topchetoeu.j2s.runtime.exceptions.EngineException error, boolean caught)
     
    void
    onSourceLoad(me.topchetoeu.j2s.common.Filename filename, String source)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface me.topchetoeu.j2s.runtime.debug.DebugHandler

    getMap, getMapOrEmpty, getMapOrEmpty, onInstruction
  • Constructor Details

    • SimpleDebugHandler

      public SimpleDebugHandler()
  • Method Details

    • attachDebugger

      public boolean attachDebugger(me.topchetoeu.j2s.runtime.debug.DebugHandler debugger)
    • detachDebugger

      public boolean detachDebugger(me.topchetoeu.j2s.runtime.debug.DebugHandler debugger)
    • detachDebugger

      public boolean detachDebugger()
    • debugger

      public me.topchetoeu.j2s.runtime.debug.DebugHandler debugger()
    • getMap

      public me.topchetoeu.j2s.common.FunctionMap getMap(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.common.FunctionBody func)
      Specified by:
      getMap in interface me.topchetoeu.j2s.runtime.debug.DebugHandler
    • onFramePop

      public void onFramePop(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame frame)
      Specified by:
      onFramePop in interface me.topchetoeu.j2s.runtime.debug.DebugHandler
    • onFramePush

      public void onFramePush(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame frame)
      Specified by:
      onFramePush in interface me.topchetoeu.j2s.runtime.debug.DebugHandler
    • onInstruction

      public boolean onInstruction(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame frame, me.topchetoeu.j2s.common.Instruction instruction, me.topchetoeu.j2s.runtime.values.Value returnVal, me.topchetoeu.j2s.runtime.exceptions.EngineException error, boolean caught)
      Specified by:
      onInstruction in interface me.topchetoeu.j2s.runtime.debug.DebugHandler
    • onSourceLoad

      public void onSourceLoad(me.topchetoeu.j2s.common.Filename filename, String source)
      Specified by:
      onSourceLoad in interface me.topchetoeu.j2s.runtime.debug.DebugHandler
    • onFunctionLoad

      public void onFunctionLoad(me.topchetoeu.j2s.common.FunctionBody func, me.topchetoeu.j2s.common.FunctionMap map)
      Specified by:
      onFunctionLoad in interface me.topchetoeu.j2s.runtime.debug.DebugHandler