Class VariabilityAwareDiffers
java.lang.Object
org.variantsync.diffdetective.variation.diff.VariabilityAwareDiffers
A collection of differs that create variation diffs.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGumTree()CallsGumTree(org.variantsync.diffdetective.variation.diff.parse.VariationDiffParseOptions,com.github.gumtreediff.matchers.Matcher)withVariationDiffParseOptions.Defaultand.Matchers.getInstance().getMatcher()GumTree(VariationDiffParseOptions parseOptions, com.github.gumtreediff.matchers.Matcher matcher) static VariabilityAwareTextDifferJGit(org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm lineDiffAlgorithm, VariationDiffParseOptions parseOptions) static VariabilityAwareTextDifferJGitGumTreeHybrid(org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm lineDiffAlgorithm, VariationDiffParseOptions parseOptions, com.github.gumtreediff.matchers.Matcher matcher) Returns a differ that first parses aVariationDifflikeJGit(org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm,org.variantsync.diffdetective.variation.diff.parse.VariationDiffParseOptions)and thenimprovesthe represented matching.static VariabilityAwareTextDifferCallsJGit(org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm,org.variantsync.diffdetective.variation.diff.parse.VariationDiffParseOptions)withDiffAlgorithm.SupportedAlgorithm.MYERSandVariationDiffParseOptions.Default.static VariabilityAwareTextDifferCallsJGitGumTreeHybrid(org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm,org.variantsync.diffdetective.variation.diff.parse.VariationDiffParseOptions,com.github.gumtreediff.matchers.Matcher)withDiffAlgorithm.SupportedAlgorithm.MYERS,VariationDiffParseOptions.Default, and.Matchers.getInstance().getMatcher()
-
Constructor Details
-
VariabilityAwareDiffers
public VariabilityAwareDiffers()
-
-
Method Details
-
JGit
public static VariabilityAwareTextDiffer JGit(org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm lineDiffAlgorithm, VariationDiffParseOptions parseOptions) - Parameters:
lineDiffAlgorithm- the Git diffing algorithm to useparseOptions- options for parsing theVariationDiff- Returns:
- the diffed
VariationDiff
-
JGitMyers
CallsJGit(org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm,org.variantsync.diffdetective.variation.diff.parse.VariationDiffParseOptions)withDiffAlgorithm.SupportedAlgorithm.MYERSandVariationDiffParseOptions.Default. -
GumTree
public static VariabilityAwareTreeDiffer<DiffLinesLabel> GumTree(VariationDiffParseOptions parseOptions, com.github.gumtreediff.matchers.Matcher matcher) - Parameters:
parseOptions- options for parsing theVariationTreesmatcher- the matcher used for diffing theVariationTrees- Returns:
- the diffed
VariationDiff
-
GumTree
CallsGumTree(org.variantsync.diffdetective.variation.diff.parse.VariationDiffParseOptions,com.github.gumtreediff.matchers.Matcher)withVariationDiffParseOptions.Defaultand.Matchers.getInstance().getMatcher() -
JGitGumTreeHybrid
public static VariabilityAwareTextDiffer JGitGumTreeHybrid(org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm lineDiffAlgorithm, VariationDiffParseOptions parseOptions, com.github.gumtreediff.matchers.Matcher matcher) Returns a differ that first parses aVariationDifflikeJGit(org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm,org.variantsync.diffdetective.variation.diff.parse.VariationDiffParseOptions)and thenimprovesthe represented matching.- Parameters:
lineDiffAlgorithm- the Git diffing algorithm to useparseOptions- options for parsing theVariationDiffmatcher- the matcher used for diffing the variation trees- Returns:
- the diffed
VariationDiff
-
JGitMyersGumTreeHybrid
CallsJGitGumTreeHybrid(org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm,org.variantsync.diffdetective.variation.diff.parse.VariationDiffParseOptions,com.github.gumtreediff.matchers.Matcher)withDiffAlgorithm.SupportedAlgorithm.MYERS,VariationDiffParseOptions.Default, and.Matchers.getInstance().getMatcher()
-