Package org.somox.kdmhelper
Class EqualityChecker
java.lang.Object
org.somox.kdmhelper.EqualityChecker
Helper class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areConstructorsEqual
(org.emftext.language.java.members.Constructor constructor1, org.emftext.language.java.members.Constructor constructor2) checks whether the constructor are equal.static boolean
areFunctionsEqual
(org.emftext.language.java.members.Method function1, org.emftext.language.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(org.emftext.language.java.members.Method function1, org.emftext.language.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(org.emftext.language.java.members.Constructor constructor1, org.emftext.language.java.members.Constructor constructor2) checks whether the constructor are equal. First check object identity.- Parameters:
constructor1
-constructor2
-- Returns:
-