MethodSupport            package:methods            R Documentation

_A_d_d_i_t_i_o_n_a_l (_S_u_p_p_o_r_t) _F_u_n_c_t_i_o_n_s _f_o_r _M_e_t_h_o_d_s

_D_e_s_c_r_i_p_t_i_o_n:

     These are support routines for computations on formal methods.

_U_s_a_g_e:

     listFromMethods(generic, where, table)

     getMethodsForDispatch(fdef, inherited = FALSE)

     cacheMethod(f, sig, def, args, fdef, inherited = FALSE)

     resetGeneric(f, fdef, mlist, where, deflt)

_S_u_m_m_a_r_y _o_f _F_u_n_c_t_i_o_n_s:


     '_l_i_s_t_F_r_o_m_M_e_t_h_o_d_s': A list object describing the methods for the
          function 'generic', supplied either as the function or the
          name of the function.   For user code, the function
          'findMethods' or 'findMethodSignatures' is recommended
          instead,  returning a simple list of methods or a character
          matrix of the signatures.

          If 'where' is supplied, this should be an environment or
          search list position from which a table of methods for the
          generic will be taken.  If 'table' is supplied, this is
          itself assumed to be such a table.  If neither argument is
          supplied, the table is taken directly from the generic
          function (that is, the current set of methods defined for
          this generic).

          Returns an object of class '"LinearMethodsList"' (see
          LinearMethodsList) describing all the methods in the relevant
          table.

     '_r_e_s_e_t_G_e_n_e_r_i_c': reset the currently defined methods for the
          generic function named 'f', found in environment 'where' or
          explicitly supplied as an argument.  Other arguments are
          obsolete and ignored.

          Called for its side effect of resetting all inherited methods
          in the generic function's internal table. Normally not called
          directly, since changes to methods and the loading and
          detaching  of packages all generate a call automatically.

     '_c_a_c_h_e_M_e_t_h_o_d': Store the definition for this function and
          signature in the method metadata for the function.  Used to
          store extensions of coerce methods found through inheritance,
          and to cache methods with 'callNextMethod' information.

          No persistent effect, since the method metadata is
          session-scope only.

     '_g_e_t_M_e_t_h_o_d_s_F_o_r_D_i_s_p_a_t_c_h': Get the table of  methods representing
          the methods for function 'f'. For user code, the function
          'findMethods' or 'findMethodSignatures' is recommended
          instead,  returning a simple list of methods or a character
          matrix of the signatures.


