Class EditClass
java.lang.Object
org.variantsync.diffdetective.editclass.Pattern<DiffNode<?>>
org.variantsync.diffdetective.editclass.EditClass
- Direct Known Subclasses:
AddToPC
,AddWithMapping
,Generalization
,Reconfiguration
,Refactoring
,RemFromPC
,RemWithMapping
,Specialization
,Untouched
Abstract edit class according to our ESEC/FSE'22 paper.
- Author:
- Paul Bittner, Sören Viegener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
anyMatch
(VariationDiff<?> t) Returns true iff this edit class matches at leat one node on the given tree.Returns the diff type nodes matched by this edit class.final boolean
Returns true if this edit class matches the given node and is an artifact.protected abstract boolean
matchesArtifactNode
(DiffNode<?> artifactNode) Returns true iff the given node matches this edit class.
-
Field Details
-
diffType
-
-
Constructor Details
-
Method Details
-
getDiffType
Returns the diff type nodes matched by this edit class. -
matchesArtifactNode
Returns true iff the given node matches this edit class.- Parameters:
artifactNode
- Node which has node type ARTIFACT and whose DiffType is the same asgetDiffType()
.
-
matches
Returns true if this edit class matches the given node and is an artifact. -
anyMatch
Returns true iff this edit class matches at leat one node on the given tree.
-