public class DebugSourceModel extends SourceModel implements LineNumberConverter
countImportLines, fields, hasSingletonMethod, methods| Constructor and Description |
|---|
DebugSourceModel(SourceModel model)
Construction using a SourceModel.
|
DebugSourceModel(java.lang.String scriptContent,
boolean hasSingletonMethod,
int offset,
int countImportLines)
Constructor using a script content.
|
| Modifier and Type | Method and Description |
|---|---|
DebugSourceModel |
clone() |
int |
getLineNumber(int lineNumber,
boolean isException)
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.
|
void |
offset(int initialLine,
int destLine)
Offset the source for one line containing a step instruction.
|
addField, addMethod, countImportLines, getFields, getFieldVariables, getFirstLine, getMethods, getOffset, getScriptContent, getSource, getVariables, hasSingletonMethod, replace, setFirstLine, setScriptContentequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLineNumber, getLineNumberpublic DebugSourceModel(SourceModel model)
model - the SourceModelpublic DebugSourceModel(java.lang.String scriptContent,
boolean hasSingletonMethod,
int offset,
int countImportLines)
scriptContent - the script contenthasSingletonMethod - true if there is a singleton methodoffset - the offsetcountImportLines - the number of import lines in the initial scriptpublic int getLineNumber(int lineNumber,
boolean isException)
lineNumber - the line numberisException - true for getting the line number for an exceptionpublic int getLineNumber(ScriptSource source, int lineNumber, boolean isException)
getLineNumber in interface LineNumberConvertergetLineNumber in class SourceModelsource - the script sourcelineNumber - the line numberisException - true for getting the line number for an exceptionpublic void offset(int initialLine,
int destLine)
initialLine - the intial line before applying offsetsdestLine - the final line after applying offsetpublic DebugSourceModel clone() throws java.lang.CloneNotSupportedException
clone in class SourceModeljava.lang.CloneNotSupportedExceptionCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence