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.
|
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, setScriptContent
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLineNumber
public 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)
getLineNumber
in interface LineNumberConverter
getLineNumber
in class SourceModel
lineNumber
- 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 SourceModel
java.lang.CloneNotSupportedException
Copyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence