MCPcopy Create free account
hub / github.com/ddf-project/DDF / parse

Method parse

core/src/main/java/io/ddf/util/Utils.java:471–479  ·  view source on GitHub ↗
(String classHashMethodName, String defaultMethodName, Object... args)

Source from the content-addressed store, hash-verified

469 }
470
471 private void parse(String classHashMethodName, String defaultMethodName, Object... args) throws DDFException {
472 List<Class<?>> argTypes = Lists.newArrayList();
473
474 if (args != null && args.length > 0) for (Object arg : args) {
475 argTypes.add(arg == null ? Object.class : arg.getClass());
476 }
477
478 this.parse(classHashMethodName, defaultMethodName, argTypes.toArray(new Class<?>[0]));
479 }
480
481 private void parse(String classHashMethodName, String defaultMethodName, Class<?>[] argTypes) throws DDFException {
482 if (Strings.isNullOrEmpty(classHashMethodName)) throw new DDFException("Class#Method name cannot be null");

Callers 2

getMethodMethod · 0.95
ClassMethodMethod · 0.95

Calls 4

findAndSetMethodMethod · 0.95
toArrayMethod · 0.80
addMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected