S - the script interfacepublic abstract class AbstractDebuggingScriptWrapper<S> extends AbstractScriptWrapper<S> implements DebuggingWrapper<S>
| Modifier and Type | Field and Description | 
|---|---|
| protected DebugListener | debugListenerThe debug listener. | 
| protected DebuggingWrapper<?> | parentWrapperThe parent wrapper. | 
| protected DebugSession<S> | sessionThe debug session. | 
additionalHelpers, context, exListeners, firstException, hasCustomHelper, helper, importLines, logger, offset, optimLevel, scriptContent, source, VARIABLES_DECL_AFTER_CLASS_DECL, VARIABLES_DECL_BEFORE_CLASS_DECLMODE_BLOCKING, MODE_NON_BLOCKING, OPTIM_LEVEL_DEFAULT, OPTIM_LEVEL_MAX, OPTIM_LEVEL_MIN| Constructor and Description | 
|---|
| AbstractDebuggingScriptWrapper() | 
| AbstractDebuggingScriptWrapper(DebuggingWrapper<?> parentWrapper) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | __step__(java.lang.Object... args)Fired when entering a debug step. | 
| DebugSession<S> | createDebugSession()Create a debug session. | 
| void | endDebugSession()End a debug session. | 
| void | err(java.lang.String message,
   char errorType,
   java.lang.Throwable e)Log an error. | 
| DebugListener | getDebugListener()Return the debug listener. | 
| DebugSession<S> | getDebugSession()Return the current Debug session. | 
| int | getLineNumber(ScriptSource source,
             int lineNumber)Return the effective line number of a line detected in the script runtime. | 
| int | getLineNumber(ScriptSource source,
             int lineNumber,
             boolean isException)Return the effective line number of a line detected in the script runtime. | 
| DebuggingWrapper<?> | getParentWrapper()Return the parent Script wrapper. | 
| protected ScriptLogger | getPreferredLogger()Return the preferred logger. | 
| void | initializeDebugSession()Initialize a debug session. | 
| boolean | isDebugging()Return true if the wrapper is in a debug session and debugging. | 
| boolean | isInDebugSession()Return true if the wrapper is in a debug session. | 
| void | setDebugListener(DebugListener debugListener)Set the debug listener. | 
abort, addActiveScript, addAdditionalHelper, addExceptionListener, addImports, addImports, addImports, addUncompiledScript, clearActiveScriptFiles, clearAdditionalHelpers, clearImports, convertPrimitiveArgument, countImportLines, createScriptContext, createScriptObject, createScriptObject, getActiveEncodedScriptFile, getActiveScriptFile, getActiveScripts, getActiveScriptSource, getAdditionalHelpers, getAdditionalScriptContent, getClassLoader, getCompileException, getCompileException, getContextClassPath, getCustomImports, getDefaultContent, getDefaultDeclaration, getDefaultImports, getEnd, getExceptionListeners, getExecutionMode, getFilename, getHelperClassPath, getInvocableMethodKey, getLoggerClassPath, getOffset, getOptimizationLevel, getRawScript, getRuntimeException, getRuntimeException, getScriptClassName, getScriptContent, getScriptContext, getScriptFile, getScriptInterface, getScriptProxy, getSingletonMethod, getSource, getVariablesDeclarationsPosition, hasActiveScriptFile, hasAdditionalHelpers, hasScriptHelper, hasSingletonMethod, installScript, installScript, installScript, installScript, isLoggingExceptions, logExceptions, notifyExceptionToListeners, parseScript, reInstallScript, reInstallScript, reInstallScript, removeExceptionListener, removeTabulations, setClassLoader, setExecutionMode, setOptimizationLevel, setScriptContext, setScriptLogger, startMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDebugSupportedabort, abort, addAdditionalHelper, addExceptionListener, addImports, addImports, addImports, clearAdditionalHelpers, clearImports, countImportLines, createAdditionalScript, createAdditionalScript, err, getActiveEncodedScriptFile, getActiveScriptFile, getActiveScripts, getActiveScriptSource, getAdditionalHelpers, getClassLoader, getExceptionListeners, getExecutionMode, getFilename, getMIME, getOffset, getOptimizationLevel, getRawScript, getScript, getScriptClassName, getScriptContent, getScriptContext, getScriptException, getScriptExtension, getScriptFile, getScriptInterface, getScriptProxy, getScriptProxy, getScriptProxyHandler, getSource, hasActiveScriptFile, hasAdditionalHelpers, hasScriptHelper, hasSingletonMethod, installScript, installScript, installScript, installScript, installScript, installScript, installScript, installScript, isLibAvailable, isLibAvailable, isLoggingExceptions, isMultiImplementSupported, isSingletonMethodEnabled, logExceptions, reInstallScript, removeExceptionListener, resetWrapperState, setClassLoader, setExecutionMode, setOptimizationLevel, setScriptContext, setScriptLogger, startMethodcacheInvocableMethods, getInvocableMethods, getInvocableMethodsByNames, hasInvocableMethod, invokeMethod, invokeMethod, isAutoCachingInvocableMethods, isInvocableByName, isInvocableMethodsEnabled, setAutoCacheInvocableMethodsprotected DebugListener debugListener
protected DebugSession<S> session
protected DebuggingWrapper<?> parentWrapper
public AbstractDebuggingScriptWrapper()
public AbstractDebuggingScriptWrapper(DebuggingWrapper<?> parentWrapper)
public DebuggingWrapper<?> getParentWrapper()
getParentWrapper in interface DebuggingWrapper<S>public void initializeDebugSession()
initializeDebugSession in interface DebuggingWrapper<S>public void endDebugSession()
endDebugSession in interface DebuggingWrapper<S>public DebugSession<S> createDebugSession() throws java.lang.Exception
initializeDebugSession().createDebugSession in interface DebuggingWrapper<S>java.lang.Exceptionpublic DebugSession<S> getDebugSession()
getDebugSession in interface DebuggingWrapper<S>public void setDebugListener(DebugListener debugListener)
setDebugListener in interface DebuggingWrapper<S>debugListener - the debug listenerpublic DebugListener getDebugListener()
getDebugListener in interface DebuggingWrapper<S>public void __step__(java.lang.Object... args)
__step__ in interface ScriptWrapper<S>args - the argumentspublic boolean isDebugging()
isDebugging in interface ScriptWrapper<S>public boolean isInDebugSession()
isInDebugSession in interface ScriptWrapper<S>protected ScriptLogger getPreferredLogger()
getPreferredLogger in class AbstractScriptWrapper<S>public void err(java.lang.String message,
                char errorType,
                java.lang.Throwable e)
err in interface ScriptWrapper<S>err in class AbstractScriptWrapper<S>message - the error messageerrorType - the error typee - the ThrowableErrorTypepublic int getLineNumber(ScriptSource source, int lineNumber)
getLineNumber in interface ScriptWrapper<S>getLineNumber in class AbstractScriptWrapper<S>lineNumber - the line numbersource - the script sourcepublic int getLineNumber(ScriptSource source, int lineNumber, boolean isException)
getLineNumber in interface ScriptWrapper<S>lineNumber - the line numberisException - true for getting the line number for an exceptionsource - the script sourceCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence