Package japicmp.compat
Class CompatibilityChanges
java.lang.Object
japicmp.compat.CompatibilityChanges
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enum
private static interface
private static interface
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addCompatibilityChange
(JApiCompatibility binaryCompatibility, JApiCompatibilityChange compatibilityChange) buildClassMap
(List<JApiClass> classes) private void
checkAbstractMethod
(JApiClass jApiClass, Map<String, JApiClass> classMap, JApiMethod method) private void
checkIfAbstractMethodAdded
(JApiClass jApiClass, Map<String, JApiClass> classMap) private void
checkIfAbstractMethodAddedInSuperclass
(JApiClass jApiClass, Map<String, JApiClass> classMap) private void
checkIfAnnotationDeprectedAdded
(JApiHasAnnotations jApiHasAnnotations) private void
checkIfClassNowCheckedException
(JApiClass jApiClass) private void
checkIfConstructorsHaveChangedIncompatible
(JApiClass jApiClass, Map<String, JApiClass> classMap) private void
private void
checkIfFieldsHaveChangedIncompatible
(JApiClass jApiClass, Map<String, JApiClass> classMap) private void
checkIfMethodHasBeenPulledUp
(JApiClass jApiClass, Map<String, JApiClass> classMap, JApiMethod method, List<Integer> returnValues) private void
checkIfMethodsHaveChangedIncompatible
(JApiClass jApiClass, Map<String, JApiClass> classMap) private void
checkIfSuperclassesOrInterfacesChangedIncompatible
(JApiClass jApiClass, Map<String, JApiClass> classMap) void
private void
evaluateBinaryCompatibility
(JApiClass jApiClass, Map<String, JApiClass> classMap) private boolean
fieldTypeMatches
(JApiField field1, JApiField field2) private <T> void
forAllImplementedInterfaces
(JApiClass jApiClass, Map<String, JApiClass> classMap, List<T> returnValues, CompatibilityChanges.OnImplementedInterfaceCallback<T> onImplementedInterfaceCallback) private <T> void
forAllSuperclasses
(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 boolean
hasSameType
(JApiField field, JApiField otherField) private boolean
isAbstract
(JApiHasAbstractModifier jApiHasAbstractModifier) private boolean
isAnnotation
(JApiClass jApiClass) private boolean
private boolean
isImplemented
(JApiMethod jApiMethod) Is a method implemented in a super classprivate boolean
isInterface
(JApiClass jApiClass) private JApiClass
loadClass
(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:
true
if it is implemented in a super class
-
checkIfSuperclassesOrInterfacesChangedIncompatible
-
hasSameType
-
checkIfAbstractMethodAdded
-
checkIfAbstractMethodAddedInSuperclass
-
checkIfClassNowCheckedException
-
addCompatibilityChange
private void addCompatibilityChange(JApiCompatibility binaryCompatibility, JApiCompatibilityChange compatibilityChange)
-