Class MethodExtension

java.lang.Object
tools.mdsd.jamopp.model.java.extensions.members.MethodExtension

public final class MethodExtension extends Object
  • Method Details

    • isSomeMethodForCall

      public static boolean isSomeMethodForCall(Method method, MethodCall methodCall)
      Returns true if the given method matches the given call.
      Parameters:
      methodCall -
      Returns:
    • isBetterMethodForCall

      public static boolean isBetterMethodForCall(Method method, Method otherMethod, MethodCall methodCall)
      Returns true if the given Method me is a better match for the given method call than Method otherMethod.
      Parameters:
      otherMethod -
      methodCall -
      Returns:
    • isMethodForCall

      public static boolean isMethodForCall(Method method, MethodCall methodCall, boolean needsPerfectMatch)
    • getBlock

      public static Block getBlock(Method method)
      Returns a block representing the body of a method.
      Parameters:
      method - the method for which the body is returned.
      Returns:
      the block or null if the method has no implementation.