code: public final int getIndex(String name, Object... args) {
      Integer defaultIndex = methodIndexs.get(name);
      if (null != defaultIndex) return defaultIndex.intValue();
      else {
        final List<MethodInfo> exists = methods.get(name);
        if (null != exists) {
          for (MethodInfo info : exists)
            if (info.matches(args)) return info.index;
        }
        return -1;
      }
    }
docs: Return method index,return -1 if not found.