\HeaderA{MethodSupport}{Additional (Support) Functions for Methods}{MethodSupport}
\aliasA{.conflicts.OK}{MethodSupport}{.conflicts.OK}
\aliasA{cacheMethod}{MethodSupport}{cacheMethod}
\aliasA{getMethodsForDispatch}{MethodSupport}{getMethodsForDispatch}
\aliasA{OldEvalSelectedMethod}{MethodSupport}{OldEvalSelectedMethod}
\aliasA{resetGeneric}{MethodSupport}{resetGeneric}
\keyword{internal}{MethodSupport}
\begin{Description}\relax
These are support routines for computations on formal methods.
\end{Description}
\begin{Usage}
\begin{verbatim}
getMethodsForDispatch(f, fdef)

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

resetGeneric(f, fdef, mlist, where, deflt)
\end{verbatim}
\end{Usage}
\begin{Section}{Summary of Functions}
\describe{
\item[\code{resetGeneric}:] reset the currently defined methods for this generic to the
currently visible methods, looking from environment \code{where}.  Returns \code{TRUE}
or \code{FALSE} according to whether information for the function
was found in the metadata.

Normally not called directly, since changes to methods,
attaching and detaching packages all generate a call automatically.

\item[\code{cacheMethod}:] 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
\code{\LinkA{callNextMethod}{callNextMethod}} information.

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

\item[\code{getMethodsForDispatch}:] Get the current methods list object representing the methods for
function \code{f}, merged from the various packages and with any
additional caching information stored in the \code{allMethods}
slot.

If methods have not yet been merged, calling
\code{getMethodsForDispatch} will cause the merge to take place.

}
\end{Section}

