Rev 59039 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/methods/man/signature-class.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2007 R Core Team% Distributed under GPL 2 or later\name{signature-class}\docType{class}\alias{signature-class}\alias{show,signature-method}\title{Class \code{"signature"} For Method Definitions}\description{This class represents the mapping of some of the formalarguments of a function onto the corresponding classes. It is used fortwo slots in the \code{\linkS4class{MethodDefinition}} class.}\section{Objects from the Class}{Objects can be created by calls of the form \code{new("signature",functionDef, ...)}. The \code{functionDef} argument, if it issupplied as a function object, defines the formal names. The otherarguments define the classes. More typically, the objects arecreated as side effects of defining methods. Either way, note thatthe classes are expected to be well defined, usually because thecorresponding class definitions exist. See the comment on the\code{package} slot.}\section{Slots}{\describe{\item{\code{.Data}:}{Object of class \code{"character"} the class names. }\item{\code{names}:}{Object of class \code{"character"} thecorresponding argument names. }\item{\code{package}:}{Object of class \code{"character"} thenames of the packages corresponding to the class names. Thecombination of class name and package uniquely defines theclass. In principle, the same class name could appear in morethan one package, in which case the \code{package} informationis required for the signature to be well defined.} }}\section{Extends}{Class \code{"character"}, from data part.Class \code{"vector"}, by class "character".}\section{Methods}{\describe{\item{initialize}{\code{signature(object = "signature")}: see thediscussion of objects from the class, above. }}}\seealso{class \code{\linkS4class{MethodDefinition}} for the use of this class.}\keyword{classes}