Uses of Interface
org.variantsync.diffdetective.util.Source
Packages that use Source
Package
Description
-
Uses of Source in org.variantsync.diffdetective.diff.git
Subinterfaces of Source in org.variantsync.diffdetective.diff.gitModifier and TypeInterfaceDescriptioninterfaceInterface for patches from a git repository.Classes in org.variantsync.diffdetective.diff.git that implement SourceModifier and TypeClassDescriptionstatic final recordMinimal default implementation ofGitPatchclassData class containing information about a single patch (i.e., the differences in a single file). -
Uses of Source in org.variantsync.diffdetective.mining
Methods in org.variantsync.diffdetective.mining that return SourceMethods in org.variantsync.diffdetective.mining with parameters of type Source -
Uses of Source in org.variantsync.diffdetective.util
Classes in org.variantsync.diffdetective.util that implement SourceModifier and TypeClassDescriptionclassRepresents aSourcewithout arguments.final recordRepresents a file input in aSourcehierarchy.Fields in org.variantsync.diffdetective.util declared as SourceModifier and TypeFieldDescriptionstatic final SourceSource.UnknownA placeholder for an unknown source without any explanation.Fields in org.variantsync.diffdetective.util with type parameters of type SourceMethods in org.variantsync.diffdetective.util that return SourceModifier and TypeMethodDescriptiondefault SourceSource.getRootSource()Returns one representativeSourcethat identifies the initial data.Methods in org.variantsync.diffdetective.util that return types with arguments of type SourceModifier and TypeMethodDescriptionCompositeSource.getSources()Source.getSources()Returns a list of sources that influenced this source.Methods in org.variantsync.diffdetective.util with parameters of type SourceModifier and TypeMethodDescriptionprivate static <T> voidImplementation of<T>findAll(org.variantsync.diffdetective.util.Source,java.lang.Class<T>)using anresultaccumulator.static <T> List<T> static <T> Tstatic StringSource.fullExplanation(Source source) CallsfullExplanation(int,java.lang.StringBuilder)onsourcebut handlesnulllikeUnknownand returns the resulting string.static StringSource.rootExplanation(Source source) static StringSource.shallowExplanation(Source source) static StringSource.shortExplanation(Source source) Returns a short one line explanation ofsourceby pairingshortExplanation(org.variantsync.diffdetective.util.Source)withrootExplanation(org.variantsync.diffdetective.util.Source).Constructors in org.variantsync.diffdetective.util with parameters of type Source -
Uses of Source in org.variantsync.diffdetective.variation.diff
Classes in org.variantsync.diffdetective.variation.diff that implement SourceModifier and TypeClassDescriptionfinal recordProjectionSource<L extends Label>classVariationDiff<L extends Label>Implementation of variation tree diffs from our ESEC/FSE'22 paper.Fields in org.variantsync.diffdetective.variation.diff declared as SourceMethods in org.variantsync.diffdetective.variation.diff that return SourceModifier and TypeMethodDescriptionVariationDiff.getSource()Returns the source of this VariationDiff (i.e., the data this VariationDiff was created from).Methods in org.variantsync.diffdetective.variation.diff that return types with arguments of type SourceMethods in org.variantsync.diffdetective.variation.diff with parameters of type SourceModifier and TypeMethodDescriptionCreate a variation diff by diffing the content of twoReaders.default VariationDiff<L> Create a variation diff by diffing the content of twoStrings.default VariationDiff<DiffLinesLabel> VariabilityAwareTextDiffer.diff(Reader before, Reader after, Source beforeSource, Source afterSource) default VariationDiff<L> VariabilityAwareTreeDiffer.diff(Reader before, Reader after, Source beforeSource, Source afterSource) ComposesVariabilityAwareTreeDiffer.parseTree(java.io.Reader,org.variantsync.diffdetective.util.Source)andVariabilityAwareTreeDiffer.diffTrees(org.variantsync.diffdetective.variation.tree.VariationTree<org.variantsync.diffdetective.variation.DiffLinesLabel>,org.variantsync.diffdetective.variation.tree.VariationTree<org.variantsync.diffdetective.variation.DiffLinesLabel>)to create aVariationDiff.static VariationDiff<DiffLinesLabel> VariationDiff.fromDiff(String diff, Source source, VariationDiffParseOptions parseOptions) Parses a VariationDiff from the given unix diff.static VariationDiff<DiffLinesLabel> VariationDiff.fromLines(String before, String after, Source beforeSource, Source afterSource, org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm algorithm, VariationDiffParseOptions options) Creates a variation diff from to line-based text inputs.static VariationDiff<DiffLinesLabel> DiffGraph.fromNodes(Collection<DiffNode<DiffLinesLabel>> nodes, Source source) Deprecated.Takes a set of DiffNodes that forms a DiffGraph (i.e., similar to a VariationDiff but with no explicit root) and converts it to a VariationDiff by equipping it with a synthetic root node.default VariationDiff<DiffLinesLabel> Parses theline diffinto aVariationDiffusing the options fromVariabilityAwareTextDiffer.getParseOptions().default VariationTree<DiffLinesLabel> voidSets the source of this VariationDiff.Constructors in org.variantsync.diffdetective.variation.diff with parameters of type SourceModifierConstructorDescriptionVariationDiff(DiffNode<L> root, Source source) Creates a VariationDiff that only consists of the single given root node. -
Uses of Source in org.variantsync.diffdetective.variation.diff.bad
Classes in org.variantsync.diffdetective.variation.diff.bad that implement SourceModifier and TypeClassDescriptionfinal recordA bad variation diff is a variation diff that has no subtree sharing.Methods in org.variantsync.diffdetective.variation.diff.bad that return types with arguments of type Source -
Uses of Source in org.variantsync.diffdetective.variation.diff.construction
Methods in org.variantsync.diffdetective.variation.diff.construction with parameters of type SourceModifier and TypeMethodDescriptionstatic VariationDiff<DiffLinesLabel> JGitDiff.diff(String linesBefore, String linesAfter, Source sourceBefore, Source sourceAfter, org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm algorithm, VariationDiffParseOptions options) Creates a variation diff from to line-based text inputs. -
Uses of Source in org.variantsync.diffdetective.variation.diff.parse
Methods in org.variantsync.diffdetective.variation.diff.parse with parameters of type SourceModifier and TypeMethodDescriptionstatic VariationDiff<DiffLinesLabel> VariationDiffParser.createVariationDiff(BufferedReader fullDiff, Source source, VariationDiffParseOptions options) Default parsing method forVariationDiffs from diffs.static VariationDiff<DiffLinesLabel> VariationDiffParser.createVariationDiff(String fullDiff, Source source, VariationDiffParseOptions parseOptions) The same asVariationDiffParser.createVariationDiff(BufferedReader, Source, VariationDiffParseOptions)but with the diff given as a single string with line breaks instead of aBufferedReader.static VariationDiff<DiffLinesLabel> VariationDiffParser.createVariationTree(BufferedReader file, Source source, VariationDiffParseOptions options) Parses a variation tree from a source file.private VariationDiff<DiffLinesLabel> VariationDiffParser.parse(Source source, org.apache.commons.lang3.function.FailableSupplier<VariationDiffParser.DiffLine, IOException> lines) Parses the line difffullDiff. -
Uses of Source in org.variantsync.diffdetective.variation.diff.render
Method parameters in org.variantsync.diffdetective.variation.diff.render with type arguments of type SourceModifier and TypeMethodDescriptionprivate <L extends Label>
booleanVariationDiffRenderer.render(VariationDiff<? extends L> tree, String treeAndFileName, Path directory, RenderOptions<? super L> options, LineGraphExportOptions<? super L> exportOptions, BiFunction<String, Source, String> treeHeader) Renders the given VariationDiff to an image file. -
Uses of Source in org.variantsync.diffdetective.variation.diff.serialize
Methods in org.variantsync.diffdetective.variation.diff.serialize with parameters of type SourceModifier and TypeMethodDescriptionprivate static StringLineGraphExport.lineGraphHeader(Source source, LineGraphExportOptions<?> options) Produces the final linegraph file content. -
Uses of Source in org.variantsync.diffdetective.variation.diff.serialize.treeformat
Methods in org.variantsync.diffdetective.variation.diff.serialize.treeformat that return SourceModifier and TypeMethodDescriptionConverts a label of line graph into aSource.default SourceVariationDiffLabelFormat.fromLineGraphLine(String lineGraphLine) Converts a line describing a graph (starting with "t # ") in line graph format into aSource.Methods in org.variantsync.diffdetective.variation.diff.serialize.treeformat with parameters of type SourceModifier and TypeMethodDescriptionConverts aSourcelabel of line graph.default StringVariationDiffLabelFormat.toLineGraphLine(Source variationDiffSource) Prepends thetree declarationto a label and return an entire line graph line. -
Uses of Source in org.variantsync.diffdetective.variation.diff.source
Classes in org.variantsync.diffdetective.variation.diff.source that implement SourceModifier and TypeClassDescriptionfinal recordDescribes that a VariationDiff was created from a patch in aCommitDiff.final recordA source for VariationDiffs that were parsed from a linegraph file.final recordSource for VariationDiffs that were created from a patch given as a String. -
Uses of Source in org.variantsync.diffdetective.variation.diff.view
Classes in org.variantsync.diffdetective.variation.diff.view that implement SourceModifier and TypeClassDescriptionfinal recordASourcethat remembers that a variation tree or diff represents a view on another variation tree or diff.Fields in org.variantsync.diffdetective.variation.diff.view declared as SourceModifier and TypeFieldDescriptionprivate final SourceViewSource.targetThe field for thetargetrecord component.Methods in org.variantsync.diffdetective.variation.diff.view that return SourceModifier and TypeMethodDescriptionViewSource.target()Returns the value of thetargetrecord component.Methods in org.variantsync.diffdetective.variation.diff.view that return types with arguments of type SourceConstructors in org.variantsync.diffdetective.variation.diff.view with parameters of type SourceModifierConstructorDescriptionViewSource(Source target, Relevance relevance, String method) Creates an instance of aViewSourcerecord class. -
Uses of Source in org.variantsync.diffdetective.variation.tree
Classes in org.variantsync.diffdetective.variation.tree that implement SourceModifier and TypeClassDescriptionclassVariationTree<L extends Label>Representation of a concrete variation tree with source information.Fields in org.variantsync.diffdetective.variation.tree declared as SourceMethods in org.variantsync.diffdetective.variation.tree that return SourceModifier and TypeMethodDescriptionVariationTree.getSource()Returns the source of this VariationTree (i.e., the data this VariationTree was created from).Methods in org.variantsync.diffdetective.variation.tree that return types with arguments of type SourceMethods in org.variantsync.diffdetective.variation.tree with parameters of type SourceModifier and TypeMethodDescriptionstatic VariationTree<DiffLinesLabel> VariationTree.fromFile(BufferedReader input, Source source, VariationDiffParseOptions parseOptions) Parses aVariationTreefrom source code with C preprocessor annotations.static <L extends Label>
VariationTree<L> VariationTree.fromProjection(Projection<L> projection, Source source) static VariationTree<DiffLinesLabel> VariationTree.fromText(String input, Source source, VariationDiffParseOptions parseOptions) Parses aVariationTreefrom source code with C preprocessor annotations.static <T extends VariationNode<T,L>, L extends Label>
VariationTree<L> VariationTree.fromVariationNode(VariationNode<T, L> node, Source source) voidSets the source of this VariationTree.Constructors in org.variantsync.diffdetective.variation.tree with parameters of type SourceModifierConstructorDescriptionVariationTree(VariationTreeNode<L> root, Source source) Creates aVariationTreewith the given root and source. -
Uses of Source in org.variantsync.diffdetective.variation.tree.source
Classes in org.variantsync.diffdetective.variation.tree.source that implement SourceModifier and TypeClassDescriptionfinal recordA file at a specific commit in a Git repository. -
Uses of Source in org.variantsync.diffdetective.variation.tree.view.relevance
Subinterfaces of Source in org.variantsync.diffdetective.variation.tree.view.relevanceModifier and TypeInterfaceDescriptioninterfaceAbstract definition of relevance predicates as defined in Section 3 in our SPLC'23 paper - Views on Edits to Variational Software.Classes in org.variantsync.diffdetective.variation.tree.view.relevance that implement SourceModifier and TypeClassDescriptionclassRelevance predicate that generates (partial) variants from variation trees.final recordRelevance predicate that searches for implementation artifacts in a variation tree.final recordRelevance predicate that traces a certain feature syntactically within a variation tree.final recordRelevance predicate that traces a certain feature semantically within a variation tree. -
Uses of Source in org.variantsync.diffdetective.variation.tree.view.relevance.spec
Classes in org.variantsync.diffdetective.variation.tree.view.relevance.spec that implement SourceModifier and TypeClassDescriptionfinal recordThis class serves as a specification forConfigure.