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

Method isMethod

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

Returns true if this metamethod represents the same method as the argument. @param method A metaMethod instance @return true if method is for the same method as this method, false otherwise.

(MetaMethod method)

Source from the content-addressed store, hash-verified

110 * @return true if method is for the same method as this method, false otherwise.
111 */
112 public boolean isMethod(MetaMethod method) {
113 return getName().equals(method.getName())
114 && getModifiers() == method.getModifiers()
115 && getReturnType().equals(method.getReturnType())
116 && equal(getParameterTypes(), method.getParameterTypes());
117 }
118
119 /**
120 * Compares cached parameter types against Java classes.

Callers 1

findMethodMethod · 0.95

Calls 8

getNameMethod · 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