code: public void addLibrary(Class<?> library) {
          for (Method method : library.getDeclaredMethods()) {
              if ((method.getModifiers() & Modifier.PUBLIC) == 0) {
                  continue; // ignore non-public methods
              }
  
              String name = method.getName().toLowerCase();
  
              // strip preceding _ chars used to avoid conflicts with Java keywords
              if (name.startsWith("_")) {
                  name = name.substring(1);
              }
  
              m_functions.put(name, method);
          }
      }
docs: Adds functions from a library class
  @param library the library class