Class EqualityChecker

java.lang.Object
org.somox.kdmhelper.EqualityChecker

public class EqualityChecker extends Object
Helper class
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: