The R Project SVN R

Rev

Rev 19087 | Rev 21544 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19087 Rev 20092
Line 3... Line 3...
3
\alias{MethodDefinition-class}
3
\alias{MethodDefinition-class}
4
\title{Classes to Represent Method Definitions }
4
\title{Classes to Represent Method Definitions }
5
\description{These classes extend the basic class \code{"function"} when
5
\description{These classes extend the basic class \code{"function"} when
6
functions are to be stored and used as method definitions.}
6
functions are to be stored and used as method definitions.}
7
\section{Objects from the Class}{
7
\section{Objects from the Class}{
8
Objects can be created by calls of the form \code{new("MethodDefinition", ...)}.
8
The action of setting a method creates an object of this class.  It's
9
~~ describe objects here ~~ 
9
unwise to create them directly.
10
}
10
}
11
\section{Slots}{
11
\section{Slots}{
12
  \describe{
12
  \describe{
13
    \item{\code{.Data}:}{Object of class \code{"function"}; the data
13
    \item{\code{.Data}:}{Object of class \code{"function"}; the data
14
        part of the definition. }
14
        part of the definition. }
Line 22... Line 22...
22
\section{Extends}{
22
\section{Extends}{
23
Class \code{"function"}, from data part.
23
Class \code{"function"}, from data part.
24
Class \code{"PossibleMethod"}, directly.
24
Class \code{"PossibleMethod"}, directly.
25
Class \code{"OptionalMethods"}, by class "function".
25
Class \code{"OptionalMethods"}, by class "function".
26
}
26
}
27
\section{Methods}{
-
 
28
  \describe{
27
\details{
-
 
28
  Method definition objects are functions with additional information
-
 
29
  defining how the function is being used as a method.  The
29
    \item{findNextMethod}{\code{signature(method = "MethodDefinition")}: ... }
30
  \code{target} slot is the class signature for which the method will
30
    \item{loadMethod}{\code{signature(method = "MethodDefinition")}: ... }
31
  be dispatched, and the \code{defined} slot the signature for which
31
    \item{show}{\code{signature(object = "MethodDefinition")}: ... }
32
  the method was orignally specified (that is, the one that appeared
32
  }
33
  in some call to \code{\link{setMethod}}).
33
}
34
}
34
\seealso{ See 
35
\seealso{ See class \code{\link{MethodsList-class}} for the objects
-
 
36
  defining sets of methods associated with a particular generic
-
 
37
  function.  The individual method definitions stored in these objects
-
 
38
  are from class \code{MethodDefinition}, or an extension.
35
 \code{\link{MethodWithNext-class}} for an extension used by \code{\link{callNextMethod}}. }
39
 \code{\link{MethodWithNext-class}} for an extension used by \code{\link{callNextMethod}}. }
36
 
40
 
37
\keyword{classes}
41
\keyword{classes}