public class MergeVisitor extends Object implements org.apache.commons.jrcs.diff.RevisionVisitor
TODO: Support ignoring whitespace.
Constructor and Description |
---|
MergeVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
init(Object[] orig)
Initialise this visitor instance with a copy of the original object array being diffed.
|
void |
visit(org.apache.commons.jrcs.diff.AddDelta delta)
Implementation of the Revision Visitor interface.
|
void |
visit(org.apache.commons.jrcs.diff.ChangeDelta delta)
Implementation of the Revision Visitor interface.
|
void |
visit(org.apache.commons.jrcs.diff.DeleteDelta delta)
Implementation of the Revision Visitor interface.
|
void |
visit(org.apache.commons.jrcs.diff.Revision revision)
Implementation of the Revision Visitor interface.
|
boolean |
wasConflictDetected()
Returns true if a conflict was detected.
|
public boolean wasConflictDetected()
public void init(Object[] orig)
orig
- public void visit(org.apache.commons.jrcs.diff.Revision revision)
visit
in interface org.apache.commons.jrcs.diff.RevisionVisitor
revision
- public void visit(org.apache.commons.jrcs.diff.DeleteDelta delta)
visit
in interface org.apache.commons.jrcs.diff.RevisionVisitor
delta
- public void visit(org.apache.commons.jrcs.diff.ChangeDelta delta)
visit
in interface org.apache.commons.jrcs.diff.RevisionVisitor
delta
- public void visit(org.apache.commons.jrcs.diff.AddDelta delta)
visit
in interface org.apache.commons.jrcs.diff.RevisionVisitor
delta
- Copyright © 2003–2021 Atlassian. All rights reserved.