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

Method respondsTo

src/main/java/groovy/lang/MetaClassImpl.java:303–307  ·  view source on GitHub ↗

@see MetaObjectProtocol#respondsTo(Object, String, Object[])

(final Object obj, final String name, final Object[] argTypes)

Source from the content-addressed store, hash-verified

301 * @see MetaObjectProtocol#respondsTo(Object, String, Object[])
302 */
303 @Override
304 public List<MetaMethod> respondsTo(final Object obj, final String name, final Object[] argTypes) {
305 MetaMethod m = getMetaMethod(name, MetaClassHelper.castArgumentsToClassArray(argTypes));
306 return (m != null ? Collections.singletonList(m) : Collections.emptyList());
307 }
308
309 /**
310 * @see MetaObjectProtocol#respondsTo(Object, String)

Callers

nothing calls this directly

Calls 6

getMetaMethodMethod · 0.95
getMethodsMethod · 0.95
getTheClassMethod · 0.95
singletonListMethod · 0.80
toListMethod · 0.65

Tested by

no test coverage detected