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.


