Uses of Record Class
org.variantsync.diffdetective.diff.text.DiffLineNumber
Package
Description
-
Uses of DiffLineNumber in org.variantsync.diffdetective.diff.result
Modifier and TypeMethodDescriptionstatic DiffParseException
DiffParseException.Unparseable
(Exception exception, DiffLineNumber lineNumber) A DiffParseException due to an unparseable formula.ModifierConstructorDescriptionprivate
DiffParseException
(Exception exception, DiffError error, DiffLineNumber lineNumber) DiffParseException
(DiffError error, DiffLineNumber lineNumber) -
Uses of DiffLineNumber in org.variantsync.diffdetective.diff.text
Modifier and TypeFieldDescriptionprivate final DiffLineNumber
DiffLineNumberRange.from
The field for thefrom
record component.private final DiffLineNumber
DiffLineNumberRange.to
The field for theto
record component.Modifier and TypeMethodDescriptionDiffLineNumber.add
(int offset) Shifts this line number by adding the given offset.Shifts this line number by adding the given offset.Filters this line number to only represent line numbers for the given diff type.DiffLineNumberRange.from()
Returns the value of thefrom
record component.static DiffLineNumber
DiffLineNumber.Invalid()
Creates an invalid line number usingInvalidLineNumber
.DiffLineNumberRange.to()
Returns the value of theto
record component.DiffLineNumber.withLineNumberAtTime
(int lineNumber, Time time) DiffLineNumber.withLineNumberInDiff
(int lineNumber) Modifier and TypeMethodDescriptionstatic LineRange
DiffLineNumber.rangeAtTime
(DiffLineNumber from, DiffLineNumber to, Time time) Returns the range between two line numbers at a given time.static LineRange
DiffLineNumber.rangeInDiff
(DiffLineNumber from, DiffLineNumber to) Returns the range between two line numbers in the diff.ModifierConstructorDescriptionDiffLineNumberRange
(DiffLineNumber from, DiffLineNumber to) Creates an instance of aDiffLineNumberRange
record class. -
Uses of DiffLineNumber in org.variantsync.diffdetective.variation
Modifier and TypeFieldDescriptionprivate final DiffLineNumber
DiffLinesLabel.Line.lineNumber
The field for thelineNumber
record component.Modifier and TypeMethodDescriptionDiffLinesLabel.Line.lineNumber()
Returns the value of thelineNumber
record component.ModifierConstructorDescriptionLine
(String content, DiffLineNumber lineNumber) Creates an instance of aLine
record class. -
Uses of DiffLineNumber in org.variantsync.diffdetective.variation.diff
Modifier and TypeFieldDescriptionprivate DiffLineNumber
DiffNode.from
private DiffLineNumber
DiffNode.to
Modifier and TypeMethodDescriptionDiffNode.getFromLine()
Returns the starting line number of this node's corresponding text block.DiffNode.getToLine()
Returns the end line number of this node's corresponding text block.Modifier and TypeMethodDescriptionstatic DiffNode<DiffLinesLabel>
DiffNode.createArtifact
(DiffType diffType, DiffLineNumber fromLines, DiffLineNumber toLines, String code) Creates an artifact node with the given parameters.DiffNode.createArtifact
(DiffType diffType, DiffLineNumber fromLines, DiffLineNumber toLines, L label) The same asDiffNode.createArtifact(DiffType, DiffLineNumber, DiffLineNumber, String)
but with a generic label.void
DiffNode.setFromLine
(DiffLineNumber from) void
DiffNode.setToLine
(DiffLineNumber to) ModifierConstructorDescriptionDiffNode
(DiffType diffType, NodeType nodeType, DiffLineNumber fromLines, DiffLineNumber toLines, org.prop4j.Node featureMapping, L label) Creates a DiffNode with the given parameters. -
Uses of DiffLineNumber in org.variantsync.diffdetective.variation.diff.parse
Modifier and TypeMethodDescriptionLogicalLine.getStartLineNumber()
Returns the line number of the firstLogicalLine.consume(java.lang.String,org.variantsync.diffdetective.diff.text.DiffLineNumber)
d physical line of the current physical line.Modifier and TypeMethodDescriptionvoid
LogicalLine.consume
(String line, DiffLineNumber lineNumber) Adds the physical lineline
with the line numberlineNumber
to this logical line.private void
VariationDiffParser.parseLine
(LogicalLine line, DiffType diffType, DiffLineNumber lastLineNumber) Parses one logical line and most notably, handles conditional macros.private void
VariationDiffParser.popIfChain
(Stack<DiffNode<DiffLinesLabel>> stack, DiffLineNumber elseLineNumber) Popstack
until an IF node is popped.