Package org.sonar.plugins.python
Class NotebookParsingData
java.lang.Object
org.sonar.plugins.python.NotebookParsingData
-
Constructor Summary
ConstructorsConstructorDescriptionNotebookParsingData(StringBuilder aggregatedSource, Map<Integer, IPythonLocation> locationMap, Integer aggregatedSourceLine) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefaultLocation(int line, int lineNr, int columnNr) voidaddDelimiterToSource(String delimiter, int lineNr, int columnNr) voidaddLineToSource(String sourceLine, int lineNr, int columnNr, List<EscapeCharPositionInfo> colOffsets, boolean isCompressed) voidaddLineToSource(String sourceLine, IPythonLocation location) voidappendToSource(String str) combine(NotebookParsingData other) static NotebookParsingDataempty()booleanstatic NotebookParsingDatafromLine(int line) inthashCode()void
-
Constructor Details
-
NotebookParsingData
public NotebookParsingData(StringBuilder aggregatedSource, Map<Integer, IPythonLocation> locationMap, Integer aggregatedSourceLine)
-
-
Method Details
-
fromLine
-
empty
-
getAggregatedSource
-
getLocationMap
-
getAggregatedSourceLine
-
combine
-
appendToSource
-
addLineToSource
public void addLineToSource(String sourceLine, int lineNr, int columnNr, List<EscapeCharPositionInfo> colOffsets, boolean isCompressed) -
addLineToSource
-
addDelimiterToSource
-
addDefaultLocation
public void addDefaultLocation(int line, int lineNr, int columnNr) -
removeTrailingExtraLine
public void removeTrailingExtraLine() -
equals
-
hashCode
public int hashCode()
-