Uses of Enum Class
org.variantsync.diffdetective.variation.diff.Time
Package
Description
-
Uses of Time in org.variantsync.diffdetective.diff.git
Modifier and TypeMethodDescriptionPatchDiff.getFileExtension
(Time time) Returns the extension of the file this patch is modifying.GitPatch.getFileName
(Time time) Returns the name of the patched file at the given time.GitPatch.SimpleGitPatch.getFileName
(Time time) PatchDiff.getFileName
(Time time) -
Uses of Time in org.variantsync.diffdetective.diff.text
Modifier and TypeMethodDescriptionint
Returns the line number at the given time.static LineRange
DiffLineNumber.rangeAtTime
(DiffLineNumber from, DiffLineNumber to, Time time) Returns the range between two line numbers at a given time.DiffLineNumber.withLineNumberAtTime
(int lineNumber, Time time) -
Uses of Time in org.variantsync.diffdetective.examplesearch
Modifier and TypeMethodDescriptionprivate static boolean
ExampleCriterions.isNestedAt
(DiffNode<?> n, Time t) -
Uses of Time in org.variantsync.diffdetective.gumtree
-
Uses of Time in org.variantsync.diffdetective.variation.diff
Modifier and TypeFieldDescriptionprivate Time
Projection.time
private final Time
ProjectionSource.time
The field for thetime
record component.Modifier and TypeMethodDescriptionProjection.getTime()
Time.other()
Returns the complement of this time.ProjectionSource.time()
Returns the value of thetime
record component.static Time
Returns the enum constant of this class with the specified name.static Time[]
Time.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionvoid
The same asDiffNode.insertChild(org.variantsync.diffdetective.variation.diff.DiffNode<L>, int, org.variantsync.diffdetective.variation.diff.Time)
but puts the node at the end of the children list instead of inserting it at a specific index.void
DiffNode.addChildren
(Collection<DiffNode<L>> children, Time time) Adds all given nodes at the timetime
as children usingDiffNode.addChild(org.variantsync.diffdetective.variation.diff.DiffNode<L>, org.variantsync.diffdetective.variation.diff.Time)
.void
Removes this subtree from its parents at the timetime
.boolean
DiffType.existsAtTime
(Time time) Returns true iff artifacts with this diff type exist at the given time.int
DiffNode.getChangeAmount
(Time time) Gets the amount of nodes on the path from the root to this node which only exist at the timetime
.DiffNode.getChildOrder
(Time time) Returns the order of the children attime
.int
Gets the length of the path from the root to this node at the timetime
.org.prop4j.Node
DiffNode.getFeatureMapping
(Time time) Returns the full feature mapping formula of this node.Gets the firstif
node in the path from the root to this node at the timetime
.DiffNode.getLinesAtTime
(Time time) Returns the range of line numbers of this node's corresponding source code before or after the edit.Returns the parent of this node before or after the edit.org.prop4j.Node
DiffNode.getPresenceCondition
(Time time) Returns the presence condition of this node before or after the edit.int
DiffNode.indexOfChild
(DiffNode<L> child, Time time) Returns the index of the given child in the list of children of this node.void
DiffNode.insertChild
(DiffNode<L> child, int index, Time time) Insertchild
as child at the timetime
at the positionindex
.boolean
Returns true iff this node is the parent of the given node at the given time.Creates the projection of this variation diff at the given time.DiffNode.projection
(Time time) Returns a view of thisDiffNode
as a variation node at the timetime
.void
DiffNode.removeChild
(DiffNode<L> child, Time time) Removes the given node from this node's children before or after the edit.DiffNode.removeChildren
(Time time) Removes all children before or after the edit.void
DiffNode.setLinesAtTime
(LineRange lineRange, Time time) Returns the range of line numbers of this node's corresponding source code before or after the edit.static DiffType
DiffType.thatExistsOnlyAt
(Time time) Returns the diff type for which corresponding artifacts exist only at the given time.Modifier and TypeMethodDescriptionstatic void
Invoke the given function for each time value (i.e., each value in this enum).void
DiffType.forAllTimesOfExistence
(Consumer<Time> t) Runs the given procedure for any time at which elements with this diff type exist.DiffType.thatExistsOnlyAtAll
(Set<Time> t) Returns the diff type for which corresponding artifacts exist at all times in the given set.ModifierConstructorDescription(package private)
Projection
(DiffNode<L> backingNode, Time time) Creates a new projection of aDiffNode
.ProjectionSource
(VariationDiff<L> origin, Time time) Creates an instance of aProjectionSource
record class. -
Uses of Time in org.variantsync.diffdetective.variation.diff.bad
Modifier and TypeMethodDescription(package private) VariationTreeNode<L>
Returns the VariationTreeNode that represents the given DiffNode d at the given time t in the produced bad diff.(package private) void
Remember that the given DiffNode d was translated to the given VariationTreeNode v at time t. -
Uses of Time in org.variantsync.diffdetective.variation.diff.graph
Modifier and TypeFieldDescriptionprivate final Time
FormalDiffGraph.Edge.time
The field for thetime
record component.Modifier and TypeMethodDescriptionFormalDiffGraph.Edge.time()
Returns the value of thetime
record component. -
Uses of Time in org.variantsync.diffdetective.variation.diff.view
Modifier and TypeMethodDescriptionstatic <L extends Label>
BiPredicate<Time,Projection<L>> DiffView.computeWhenNodesAreRelevant
(VariationDiff<L> d, Relevance rho) Translates a relevance predicate for nodes on variation trees to a relevance predicate on nodes in a variation diff.Modifier and TypeMethodDescriptionstatic <L extends Label>
VariationDiff<DiffLinesLabel>DiffView.naive
(VariationDiff<L> d, Relevance rho, BiPredicate<Time, Projection<L>> inView) This method is not intended to be used directly and exists for optimization purposes only.static <L extends Label>
VariationDiff<L>DiffView.optimized
(VariationDiff<L> d, Relevance rho, BiPredicate<Time, Projection<L>> inView) This method is not intended to be used directly and exists for optimization purposes only.