MCPcopy Index your code
hub / github.com/apache/groovy / isSame

Method isSame

src/main/java/groovy/lang/MetaMethod.java:205–210  ·  view source on GitHub ↗

Determines if the given method has the same name, parameters, return type and modifiers but may be defined on another type. @param method the method to compare against

(MetaMethod method)

Source from the content-addressed store, hash-verified

203 * @param method the method to compare against
204 */
205 public final boolean isSame(MetaMethod method) {
206 return getName().equals(method.getName())
207 && compatibleModifiers(getModifiers(), method.getModifiers())
208 && getReturnType().equals(method.getReturnType())
209 && equal(getParameterTypes(), method.getParameterTypes());
210 }
211
212 /**
213 * Checks the compatibility between two modifier masks. Checks that they are

Callers

nothing calls this directly

Calls 9

getNameMethod · 0.95
compatibleModifiersMethod · 0.95
getModifiersMethod · 0.95
getReturnTypeMethod · 0.95
equalMethod · 0.95
equalsMethod · 0.65
getNameMethod · 0.65
getModifiersMethod · 0.65
getParameterTypesMethod · 0.45

Tested by

no test coverage detected