Rev 17211 | Rev 19029 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{MethodSupport}\alias{.conflicts.OK}\alias{OldEvalSelectedMethod}\alias{getMethodsForDispatch}\alias{cacheMethod}\alias{hasMethod}\alias{resetGeneric}\title{Additional (Support) Functions for Methods}\usage{getMethodsForDispatch(f)cacheMethod(f, sig, def, args = names(sig))hasMethod(f, signature=character())resetGeneric(f)}\description{These are support routines for computations on formal methods.}\section{Summary of Functions}{\describe{\item{\code{hasMethod}:}{returns \code{TRUE} if \code{f} is the name of a generic function with an (explicit) method forthis signature.}\item{\code{resetGeneric}:}{reset the currently defined methods for this generic by removing thecorresponding definition from the methods metadata (to be remergedwhen the function is next called). Returns \code{TRUE} or\code{FALSE} according to whether information for the function wasfound in the metadata.You \emph{must} call this function when you change relevant inheritance information during asession, to guarantee that the new information is used if this generic has already beencalled.}\item{\code{cacheMethod}:}{Store the definition for this function andsignature in the method metadata for the function. Used to storeextensions of coerce methods found through inheritance.No persistent effect, since the method metadata is session-scope only.}\item{\code{getMethodsForDispatch}:}{Get the current methods list objectrepresenting the methods for function f, merged from the variouslibraries 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.}}}\keyword{internal}