Class MethodExtension
java.lang.Object
tools.mdsd.jamopp.model.java.extensions.members.MethodExtension
-
Method Summary
Modifier and TypeMethodDescriptionstatic Block
Returns a block representing the body of a method.static boolean
isBetterMethodForCall
(Method method, Method otherMethod, MethodCall methodCall) static boolean
isMethodForCall
(Method method, MethodCall methodCall, boolean needsPerfectMatch) static boolean
isSomeMethodForCall
(Method method, MethodCall methodCall) Returnstrue
if the given method matches the given call.
-
Method Details
-
isSomeMethodForCall
Returnstrue
if the given method matches the given call.- Parameters:
methodCall
-- Returns:
-
isBetterMethodForCall
public static boolean isBetterMethodForCall(Method method, Method otherMethod, MethodCall methodCall) Returnstrue
if the givenMethod
me
is a better match for the given method call thanMethod
otherMethod
.- Parameters:
otherMethod
-methodCall
-- Returns:
-
isMethodForCall
public static boolean isMethodForCall(Method method, MethodCall methodCall, boolean needsPerfectMatch) -
getBlock
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.
-