eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JavaScriptFunctionWithBreakpoints':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: JavaScriptFunctionWithBreakpoints


Inheritance:

   Object
   |
   +--ExecutableFunction
      |
      +--CompiledCode
         |
         +--Method
            |
            +--JavaScriptFunction
               |
               +--JavaScriptFunctionWithBreakpoints

Package:
stx:libjavascript
Category:
Languages-JavaScript-Compiling & Parsing
Version:
rev: 1.7 date: 2019/09/17 21:26:03
user: cg
file: JavaScriptFunctionWithBreakpoints.st directory: libjavascript
module: stx stc-classLibrary: libjavascript

Description:


support for line-Breakpoints

instances of me are created when line-breakpoints are placed.
The only function I serve is to provide the originalMethod information,
and an easy way to check for having a breakpoint (is breakpointed).

Caveat:
    very stupid - had to repead the definition from MethodWithBreakpoints.
    Probably it is a stupid idea, to implement breakpointed methods this way (by inheritance),
    instead of having some attribute in the method (such as in an annotation).
    May someone change that?...

copyright

COPYRIGHT (c) 2013 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Instance protocol:

accessing
o  originalMethod
return the original method; the one without breakpoints

o  originalMethod: something

enumerating
o  breakpointsDo: aBlock
(comment from inherited method)
Evaluate `aBlock` for every breakpoint installed in this method

misc
o  restoreOriginalMethod
remove myself - i.e. replace by the original method
(i.e. the one without line breakpoints)

queries
o  hasEnabledBreakpoints
true if any of my breakpoints is actually enabled

o  hasEnabledTracepoints
true if any of my tracepoints is actually enabled

o  isMethodWithBreakpoints
(comment from inherited method)
only redefined in MethodWithBreakpoints



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 13:35:37 GMT