|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jrcs.diff.MergeVisitor
public class MergeVisitor
.. makes changes to the revisions it visits, so if a conflict is detected, the revisions should be discarded.
TODO: Support ignoring whitespace.
| Field Summary | |
|---|---|
static org.apache.log4j.Category |
log
|
| Constructor Summary | |
|---|---|
MergeVisitor()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Category log
| Constructor Detail |
|---|
public MergeVisitor()
| Method Detail |
|---|
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.RevisionVisitorrevision - public void visit(org.apache.commons.jrcs.diff.DeleteDelta delta)
visit in interface org.apache.commons.jrcs.diff.RevisionVisitordelta - public void visit(org.apache.commons.jrcs.diff.ChangeDelta delta)
visit in interface org.apache.commons.jrcs.diff.RevisionVisitordelta - public void visit(org.apache.commons.jrcs.diff.AddDelta delta)
visit in interface org.apache.commons.jrcs.diff.RevisionVisitordelta -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||