public class SimpleDiffCriteria extends java.lang.Object implements DiffCriteria
Constructor and Description |
---|
SimpleDiffCriteria() |
Modifier and Type | Method and Description |
---|---|
boolean |
differs(ClassInfo oldInfo,
ClassInfo newInfo)
Check if there is a change between two versions of a class.
|
boolean |
differs(FieldInfo oldInfo,
FieldInfo newInfo)
Check if there is a change between two versions of a field.
|
boolean |
differs(MethodInfo oldInfo,
MethodInfo newInfo)
Check if there is a change between two versions of a method.
|
boolean |
validClass(ClassInfo info)
Check if a class is valid.
|
boolean |
validField(FieldInfo info)
Check if a field is valid.
|
boolean |
validMethod(MethodInfo info)
Check if a method is valid.
|
public boolean validClass(ClassInfo info)
validClass
in interface DiffCriteria
info
- Info describing the class.public boolean validMethod(MethodInfo info)
validMethod
in interface DiffCriteria
info
- Info describing the method.public boolean validField(FieldInfo info)
validField
in interface DiffCriteria
info
- Info describing the field.public boolean differs(ClassInfo oldInfo, ClassInfo newInfo)
differs
in interface DiffCriteria
oldInfo
- Info about the old version of the class.newInfo
- Info about the new version of the class.public boolean differs(MethodInfo oldInfo, MethodInfo newInfo)
differs
in interface DiffCriteria
oldInfo
- Info about the old version of the method.newInfo
- Info about the new version of the method.public boolean differs(FieldInfo oldInfo, FieldInfo newInfo)
differs
in interface DiffCriteria
oldInfo
- Info about the old version of the field.newInfo
- Info about the new version of the field.