Class CompatibilityChanges
java.lang.Object
japicmp.compat.CompatibilityChanges
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumprivate static interfaceprivate static interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddCompatibilityChange(JApiCompatibility binaryCompatibility, JApiCompatibilityChange compatibilityChange) buildClassMap(List<JApiClass> classes) private voidcheckAbstractMethod(JApiClass jApiClass, Map<String, JApiClass> classMap, JApiMethod method) private voidcheckIfAbstractMethodAdded(JApiClass jApiClass, Map<String, JApiClass> classMap) private voidcheckIfAbstractMethodAddedInSuperclass(JApiClass jApiClass, Map<String, JApiClass> classMap) private voidcheckIfAnnotationDeprectedAdded(JApiHasAnnotations jApiHasAnnotations) private voidcheckIfClassNowCheckedException(JApiClass jApiClass) private voidcheckIfConstructorsHaveChangedIncompatible(JApiClass jApiClass, Map<String, JApiClass> classMap) private voidprivate voidcheckIfFieldsHaveChangedIncompatible(JApiClass jApiClass, Map<String, JApiClass> classMap) private voidcheckIfMethodHasBeenPulledUp(JApiClass jApiClass, Map<String, JApiClass> classMap, JApiMethod method, List<Integer> returnValues) private voidcheckIfMethodsHaveChangedIncompatible(JApiClass jApiClass, Map<String, JApiClass> classMap) private voidcheckIfSuperclassesOrInterfacesChangedIncompatible(JApiClass jApiClass, Map<String, JApiClass> classMap) voidprivate voidevaluateBinaryCompatibility(JApiClass jApiClass, Map<String, JApiClass> classMap) private booleanfieldTypeMatches(JApiField field1, JApiField field2) private <T> voidforAllImplementedInterfaces(JApiClass jApiClass, Map<String, JApiClass> classMap, List<T> returnValues, CompatibilityChanges.OnImplementedInterfaceCallback<T> onImplementedInterfaceCallback) private <T> voidforAllSuperclasses(JApiClass jApiClass, Map<String, JApiClass> classMap, List<T> returnValues, CompatibilityChanges.OnSuperclassCallback<T> onSuperclassCallback) private List<JApiMethod> getImplementedMethods(JApiClass jApiClass, Map<String, JApiClass> classMap, JApiMethod method) private List<JApiMethod> getOverriddenMethods(JApiClass jApiClass, Map<String, JApiClass> classMap, JApiMethod method) private booleanhasSameType(JApiField field, JApiField otherField) private booleanisAbstract(JApiHasAbstractModifier jApiHasAbstractModifier) private booleanisAnnotation(JApiClass jApiClass) private booleanprivate booleanisImplemented(JApiMethod jApiMethod) Is a method implemented in a super classprivate booleanisInterface(JApiClass jApiClass) private JApiClassloadClass(String newSuperclassName, EnumSet<CompatibilityChanges.Classpath> classpaths) private List<JApiMethod> removeNullValues(ArrayList<JApiMethod> jApiMethods)
-
Field Details
-
jarArchiveComparator
-
-
Constructor Details
-
CompatibilityChanges
-
-
Method Details
-
evaluate
-
buildClassMap
-
evaluateBinaryCompatibility
-
checkIfFieldsHaveChangedIncompatible
-
forAllSuperclasses
-
loadClass
private JApiClass loadClass(String newSuperclassName, EnumSet<CompatibilityChanges.Classpath> classpaths) -
fieldTypeMatches
-
checkIfConstructorsHaveChangedIncompatible
-
checkIfMethodsHaveChangedIncompatible
-
checkIfAnnotationDeprectedAdded
-
checkAbstractMethod
private void checkAbstractMethod(JApiClass jApiClass, Map<String, JApiClass> classMap, JApiMethod method) -
getOverriddenMethods
private List<JApiMethod> getOverriddenMethods(JApiClass jApiClass, Map<String, JApiClass> classMap, JApiMethod method) -
removeNullValues
-
getImplementedMethods
private List<JApiMethod> getImplementedMethods(JApiClass jApiClass, Map<String, JApiClass> classMap, JApiMethod method) -
isAbstract
-
checkIfExceptionIsNowChecked
-
isInterface
-
isAnnotation
-
isEnum
-
checkIfMethodHasBeenPulledUp
-
forAllImplementedInterfaces
-
isImplemented
Is a method implemented in a super class- Parameters:
jApiMethod- the method- Returns:
trueif it is implemented in a super class
-
checkIfSuperclassesOrInterfacesChangedIncompatible
-
hasSameType
-
checkIfAbstractMethodAdded
-
checkIfAbstractMethodAddedInSuperclass
-
checkIfClassNowCheckedException
-
addCompatibilityChange
private void addCompatibilityChange(JApiCompatibility binaryCompatibility, JApiCompatibilityChange compatibilityChange)
-