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

Method checkParameters

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

Checks that the given parameters are valid to call this method. @param arguments the arguments to check @throws IllegalArgumentException if the parameters are not valid @deprecated

(Class[] arguments)

Source from the content-addressed store, hash-verified

90 * @deprecated
91 */
92 @Deprecated
93 public void checkParameters(Class[] arguments) {
94 // let's check that the argument types are valid
95 if (!isValidMethod(arguments)) {
96 throw new IllegalArgumentException(
97 "Parameters to method: "
98 + getName()
99 + " do not match types: "
100 + FormatHelper.toArrayString(getParameterTypes())
101 + " for arguments: "
102 + FormatHelper.toArrayString(arguments));
103 }
104 }
105
106 /**
107 * Returns true if this metamethod represents the same method as the argument.

Callers

nothing calls this directly

Calls 4

getNameMethod · 0.95
toArrayStringMethod · 0.95
isValidMethodMethod · 0.45
getParameterTypesMethod · 0.45

Tested by

no test coverage detected