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

Method hasMethod

src/main/java/org/codehaus/groovy/ast/ClassNode.java:1162–1164  ·  view source on GitHub ↗

Tests whether a method with the given name and parameter signature exists in this class or any of its superclasses. This is a convenience method for checking method existence. @param name the name of the method to check @param parameters an array of Parameters representing the method signat

(String name, Parameter[] parameters)

Source from the content-addressed store, hash-verified

1160 * @see #hasDeclaredMethod(String, Parameter[])
1161 */
1162 public boolean hasMethod(String name, Parameter[] parameters) {
1163 return (getMethod(name, parameters) != null);
1164 }
1165
1166 /**
1167 * Tests whether a method with the given name and parameter signature is declared directly

Callers 8

createMapVariantMethod · 0.80
createMethodBodyMethod · 0.80
visitMethod · 0.80

Calls 1

getMethodMethod · 0.95

Tested by

no test coverage detected