Interface VariabilityAwareTextDiffer
- All Superinterfaces:
VariabilityAwareDiffer<DiffLinesLabel>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface VariabilityAwareTextDiffer
extends VariabilityAwareDiffer<DiffLinesLabel>
A
VariabilityAwareDiffer that first creates a line diff and
parses this line diff into a
VariationDiff.-
Method Summary
Modifier and TypeMethodDescriptiondefault VariationDiff<DiffLinesLabel> Returns a line diff ofbeforeandafterin the unified diff format.default StringReturns a line diff ofbeforeandafterin the unified diff format.default VariationDiffParseOptionsReturns the options used forparsingtheVariationDiffinparseDiff(java.lang.String,org.variantsync.diffdetective.util.Source).default VariationDiff<DiffLinesLabel> Methods inherited from interface org.variantsync.diffdetective.variation.diff.VariabilityAwareDiffer
diff, diff
-
Method Details
-
diffLines
Returns a line diff ofbeforeandafterin the unified diff format.- Throws:
IOException
-
diffLines
Returns a line diff ofbeforeandafterin the unified diff format.- Throws:
IOException
-
getParseOptions
Returns the options used forparsingtheVariationDiffinparseDiff(java.lang.String,org.variantsync.diffdetective.util.Source). -
parseDiff
default VariationDiff<DiffLinesLabel> parseDiff(String diff, Source diffSource) throws DiffParseException - Throws:
DiffParseException
-
diff
default VariationDiff<DiffLinesLabel> diff(Reader before, Reader after, Source beforeSource, Source afterSource) throws IOException, DiffParseException ComposesdiffLines(java.io.Reader,java.io.Reader)andparseDiff(java.lang.String,org.variantsync.diffdetective.util.Source)to create aVariationDiff.- Specified by:
diffin interfaceVariabilityAwareDiffer<DiffLinesLabel>- Throws:
IOExceptionDiffParseException
-