Package org.somox.kdmhelper
Class EqualityChecker
java.lang.Object
org.somox.kdmhelper.EqualityChecker
Helper class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areConstructorsEqual
(tools.mdsd.jamopp.model.java.members.Constructor constructor1, tools.mdsd.jamopp.model.java.members.Constructor constructor2) checks whether the constructor are equal.static boolean
areFunctionsEqual
(tools.mdsd.jamopp.model.java.members.Method function1, tools.mdsd.jamopp.model.java.members.Method function2) Checks the equality of two functions by comparing their signatures.
-
Constructor Details
-
EqualityChecker
public EqualityChecker()
-
-
Method Details
-
areFunctionsEqual
public static boolean areFunctionsEqual(tools.mdsd.jamopp.model.java.members.Method function1, tools.mdsd.jamopp.model.java.members.Method function2) Checks the equality of two functions by comparing their signatures. Checks name, return type, number of parameters and types of parameters.- Parameters:
function1
-function2
-- Returns:
- true if both functions are equal; false else
-
areConstructorsEqual
public static boolean areConstructorsEqual(tools.mdsd.jamopp.model.java.members.Constructor constructor1, tools.mdsd.jamopp.model.java.members.Constructor constructor2) checks whether the constructor are equal. First check object identity.- Parameters:
constructor1
-constructor2
-- Returns:
-