org.semver.jardiff
Class AccumulatingDiffHandler
java.lang.Object
org.osjava.jardiff.AbstractDiffHandler
org.semver.jardiff.AccumulatingDiffHandler
- All Implemented Interfaces:
- org.osjava.jardiff.DiffHandler
public class AccumulatingDiffHandler
- extends org.osjava.jardiff.AbstractDiffHandler
DiffHandler
implementation accumulating changes.
Methods inherited from class org.osjava.jardiff.AbstractDiffHandler |
getClassName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccumulatingDiffHandler
public AccumulatingDiffHandler()
AccumulatingDiffHandler
public AccumulatingDiffHandler(@Nonnull
java.util.Set<java.lang.String> includes,
@Nonnull
java.util.Set<java.lang.String> excludes)
startDiff
public void startDiff(java.lang.String previous,
java.lang.String current)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
endDiff
public void endDiff()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
startOldContents
public void startOldContents()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
endOldContents
public void endOldContents()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
startNewContents
public void startNewContents()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
endNewContents
public void endNewContents()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
contains
public void contains(org.osjava.jardiff.ClassInfo classInfo)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
startAdded
public void startAdded()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
classAdded
public void classAdded(org.osjava.jardiff.ClassInfo classInfo)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
fieldAdded
public void fieldAdded(org.osjava.jardiff.FieldInfo fieldInfo)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
methodAdded
public void methodAdded(org.osjava.jardiff.MethodInfo methodInfo)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
endAdded
public void endAdded()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
startChanged
public void startChanged()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
startClassChanged
public void startClassChanged(java.lang.String className)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
classChanged
public void classChanged(org.osjava.jardiff.ClassInfo oldClassInfo,
org.osjava.jardiff.ClassInfo newClassInfo)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
fieldChanged
public void fieldChanged(org.osjava.jardiff.FieldInfo oldFieldInfo,
org.osjava.jardiff.FieldInfo newFieldInfo)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
methodChanged
public void methodChanged(org.osjava.jardiff.MethodInfo oldMethodInfo,
org.osjava.jardiff.MethodInfo newMethodInfo)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
endClassChanged
public void endClassChanged()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
endChanged
public void endChanged()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
startRemoved
public void startRemoved()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
classRemoved
public void classRemoved(org.osjava.jardiff.ClassInfo classInfo)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
fieldRemoved
public void fieldRemoved(org.osjava.jardiff.FieldInfo fieldInfo)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
methodRemoved
public void methodRemoved(org.osjava.jardiff.MethodInfo methodInfo)
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
endRemoved
public void endRemoved()
throws org.osjava.jardiff.DiffException
- Throws:
org.osjava.jardiff.DiffException
isConsidered
protected final boolean isConsidered()
- Is considered a class whose package:
* is included
* is not excluded
If includes are provided then package must be defined here.
- Returns:
getDifferences
public java.util.Set<AccumulatingDiffHandler.Difference> getDifferences()
Copyright © 2010. All Rights Reserved.