The R Project SVN R

Rev

Rev 15431 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

\name{MethodSupport}
\alias{evalSelectedMethod}
\alias{OldEvalSelectedMethod}
\alias{getMethodsForDispatch}
\alias{hasMethod}
\alias{resetGeneric}
\title{Additional (Support) Functions for Methods}
\usage{
evalSelectedMethod(f, ev, fname)

getMethodsForDispatch(f)

hasMethod(f, signature=character())

resetGeneric(f)
}
\description{
  
\describe{
\item{\code{evalSelectedMethod}:}{ 
  Evaluate the selected method, f, in the environment, ev.

The general case is that f is a closure (an ordinary function), in which case
the body is evaluated in the given environment.

The special cases (primitive and internal) have to be faked by going back to the
environment of the call to the generic.

  }
\item{\code{hasMethod}:}{ 
  returns \code{TRUE} if \code{f} is the name of a generic function with an (explicit) method for
this signature.

  
  }
\item{\code{resetGeneric}:}{ 
  reset the currently defined methods for this generic by un-caching any inherited
methods.

  You \emph{must} call this function when you change relevant inheritance information during a
session, to guarantee that the new information is used if this generic has already been
called.
}
  
}
}
\keyword{programming}