Class MethodExtension
java.lang.Object
tools.mdsd.jamopp.model.java.extensions.members.MethodExtension
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockReturns a block representing the body of a method.static booleanisBetterMethodForCall(Method method, Method otherMethod, MethodCall methodCall) static booleanisMethodForCall(Method method, MethodCall methodCall, boolean needsPerfectMatch) static booleanisSomeMethodForCall(Method method, MethodCall methodCall) Returnstrueif the given method matches the given call.
-
Method Details
-
isSomeMethodForCall
Returnstrueif the given method matches the given call.- Parameters:
methodCall-- Returns:
-
isBetterMethodForCall
public static boolean isBetterMethodForCall(Method method, Method otherMethod, MethodCall methodCall) Returnstrueif the givenMethodmeis a better match for the given method call thanMethodotherMethod.- 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.
-