code: public static BshMethod[] getDeclaredMethods(Class<?> type) {
          if (!isGeneratedClass(type))
              return new BshMethod[0];
          if (type.isInterface())
              return getMethods(type);
          return getMethods(getNewInstance(type));
      }
docs: /*
  Get all methods from both class static and object instance namespaces