Rev 59039 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/methods/man/MethodDefinition-class.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Team% Distributed under GPL 2 or later\name{MethodDefinition-class}\docType{class}\alias{MethodDefinition-class}\alias{SealedMethodDefinition-class}\title{Classes to Represent Method Definitions}\description{These classes extend the basic class \code{"function"} whenfunctions are to be stored and used as method definitions.}\section{Objects from the Class}{The action of setting a method by a call to \code{\link{setMethod}} creates an object of this class. It'sunwise to create them directly.The class \code{"SealedMethodDefinition"} is created by a call to\code{\link{setMethod}} with argument \code{sealed = TRUE}. It hasthe same representation as \code{"MethodDefinition"}.}\section{Slots}{\describe{\item{\code{.Data}:}{Object of class \code{"function"}; the datapart of the definition. }\item{\code{target}:}{Object of class \code{"signature"}; thesignature for which the method was wanted. }\item{\code{defined}:}{Object of class \code{"signature"}; thesignature for which a method was found. If the method wasinherited, this will not be identical to \code{target}. }\item{\code{generic}:}{Object of class \code{"character"}; the functionfor which the method was created. }}}\section{Extends}{Class \code{"function"}, from data part.\crClass \code{"PossibleMethod"}, directly.\crClass \code{"OptionalMethods"}, by class \code{"function"}.}\details{Method definition objects are functions with additional informationdefining how the function is being used as a method. The\code{target} slot is the class signature for which the method willbe dispatched, and the \code{defined} slot the signature for whichthe method was originally specified (that is, the one that appearedin some call to \code{\link{setMethod}}).}\seealso{class \code{\linkS4class{MethodsList}} for the objectsdefining sets of methods associated with a particular genericfunction. The individual method definitions stored in these objectsare from class \code{MethodDefinition}, or an extension.Class \code{\linkS4class{MethodWithNext}} for an extension used by\code{\link{callNextMethod}}.}\keyword{classes}