org.semver.jardiff
Class AccumulatingDiffHandler

java.lang.Object
  extended by org.osjava.jardiff.AbstractDiffHandler
      extended by org.semver.jardiff.AccumulatingDiffHandler
All Implemented Interfaces:
org.osjava.jardiff.DiffHandler

public class AccumulatingDiffHandler
extends org.osjava.jardiff.AbstractDiffHandler

DiffHandler implementation accumulating changes.


Nested Class Summary
static class AccumulatingDiffHandler.Add
           
static class AccumulatingDiffHandler.Change
           
static class AccumulatingDiffHandler.Difference
           
 class AccumulatingDiffHandler.Remove
           
 
Constructor Summary
AccumulatingDiffHandler()
           
AccumulatingDiffHandler(java.util.Set<java.lang.String> includes, java.util.Set<java.lang.String> excludes)
           
 
Method Summary
 void classAdded(org.osjava.jardiff.ClassInfo classInfo)
           
 void classChanged(org.osjava.jardiff.ClassInfo oldClassInfo, org.osjava.jardiff.ClassInfo newClassInfo)
           
 void classRemoved(org.osjava.jardiff.ClassInfo classInfo)
           
 void contains(org.osjava.jardiff.ClassInfo classInfo)
           
 void endAdded()
           
 void endChanged()
           
 void endClassChanged()
           
 void endDiff()
           
 void endNewContents()
           
 void endOldContents()
           
 void endRemoved()
           
 void fieldAdded(org.osjava.jardiff.FieldInfo fieldInfo)
           
 void fieldChanged(org.osjava.jardiff.FieldInfo oldFieldInfo, org.osjava.jardiff.FieldInfo newFieldInfo)
           
 void fieldRemoved(org.osjava.jardiff.FieldInfo fieldInfo)
           
 java.util.Set<AccumulatingDiffHandler.Difference> getDifferences()
           
protected  boolean isConsidered()
          Is considered a class whose package: * is included * is not excluded If includes are provided then package must be defined here.
 void methodAdded(org.osjava.jardiff.MethodInfo methodInfo)
           
 void methodChanged(org.osjava.jardiff.MethodInfo oldMethodInfo, org.osjava.jardiff.MethodInfo newMethodInfo)
           
 void methodRemoved(org.osjava.jardiff.MethodInfo methodInfo)
           
 void startAdded()
           
 void startChanged()
           
 void startClassChanged(java.lang.String className)
           
 void startDiff(java.lang.String previous, java.lang.String current)
           
 void startNewContents()
           
 void startOldContents()
           
 void startRemoved()
           
 
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
 

Constructor Detail

AccumulatingDiffHandler

public AccumulatingDiffHandler()

AccumulatingDiffHandler

public AccumulatingDiffHandler(@Nonnull
                               java.util.Set<java.lang.String> includes,
                               @Nonnull
                               java.util.Set<java.lang.String> excludes)
Method Detail

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.