Package me.topchetoeu.j2s.repl.debug
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
attachDebugger
(me.topchetoeu.j2s.runtime.debug.DebugHandler debugger) me.topchetoeu.j2s.runtime.debug.DebugHandler
debugger()
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 interfaceme.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 interfaceme.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 interfaceme.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 interfaceme.topchetoeu.j2s.runtime.debug.DebugHandler
-
onSourceLoad
- Specified by:
onSourceLoad
in interfaceme.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 interfaceme.topchetoeu.j2s.runtime.debug.DebugHandler
-