|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.clirr.core.Checker
public final class Checker
This is the main class to be used by Clirr frontends, it implements the checking functionality of Clirr. Frontends can create an instance of this class and register themselves as DiffListeners, they are then informed whenever an API change is detected by the reportDiffs method.
Constructor Summary | |
---|---|
Checker()
Creates a new Checker. |
Method Summary | |
---|---|
void |
addDiffListener(DiffListener listener)
|
void |
fireDiff(ApiDifference diff)
Called by checks to inform listeners that an API difference has been detected. |
ScopeSelector |
getScopeSelector()
|
void |
reportDiffs(JavaType[] compatibilityBaseline,
JavaType[] currentVersion)
Checks two sets of classes for api changes and reports them to the DiffListeners. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Checker()
Method Detail |
---|
public ScopeSelector getScopeSelector()
public void addDiffListener(DiffListener listener)
public void fireDiff(ApiDifference diff)
ApiDiffDispatcher
fireDiff
in interface ApiDiffDispatcher
diff
- the API differencepublic void reportDiffs(JavaType[] compatibilityBaseline, JavaType[] currentVersion) throws CheckerException
compatibilityBaseline
- the classes that form the
compatibility baseline to check againstcurrentVersion
- the classes that are checked for
compatibility with compatibilityBaseline
CheckerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |