S - the script interfacepublic abstract class AbstractDebugInstrumentor<S> extends java.lang.Object implements DebugInstrumentor<S>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDebugInstrumentor.StepProperties
The properties for a Step.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
initialOffset
The initial line offset.
|
protected SourceModel |
model
The source model.
|
protected int |
offset
The current line offset.
|
protected DebugSourceModel |
outputModel
The debugger source model, after the instrumentation.
|
protected java.util.List<java.lang.String> |
scriptLines |
protected DebugSession<S> |
session
The debug session.
|
| Constructor and Description |
|---|
AbstractDebugInstrumentor() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractDebugInstrumentor.StepProperties |
createStepProperties(int lineNumber)
Create the properties for a Step.
|
DebugSourceModel |
instrument()
Instrument the model and return the instrumented model.
|
void |
setSession(DebugSession<S> session)
Set the debug session.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStepInstruction, addStepInstructionprotected DebugSession<S> session
protected SourceModel model
protected DebugSourceModel outputModel
protected final java.util.List<java.lang.String> scriptLines
protected int offset
protected int initialOffset
public void setSession(DebugSession<S> session)
setSession in interface DebugInstrumentor<S>session - the debug sessionpublic DebugSourceModel instrument()
instrument in interface DebugInstrumentor<S>protected AbstractDebugInstrumentor.StepProperties createStepProperties(int lineNumber)
lineNumber - the line numberCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence