The R Project SVN R

Rev

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

Rev 59039 Rev 61433
Line 12... Line 12...
12
\title{Description of the Methods Defined for a Generic Function}
12
\title{Description of the Methods Defined for a Generic Function}
13
\description{
13
\description{
14
  The function \code{findMethods} converts the methods defined in a table for a generic
14
  The function \code{findMethods} converts the methods defined in a table for a generic
15
  function (as used for selection of methods) into a list, for study or
15
  function (as used for selection of methods) into a list, for study or
16
  display.  The list is actually from the class \code{listOfMethods}
16
  display.  The list is actually from the class \code{listOfMethods}
17
  (see the section describing the class, below).  
17
  (see the section describing the class, below).
-
 
18
 
18
 
19
 
19
 
-
 
20
  The list will be limited
20
  The list will be limited
21
  to the methods defined in environment \code{where} if that argument is
21
  to the methods defined in environment \code{where} if that argument is
22
  supplied and limited to those including one or more of the
22
  supplied and limited to those including one or more of the
23
  specified \code{classes} in the method signature if that argument is
23
  specified \code{classes} in the method signature if that argument is
24
  supplied.
24
  supplied.
Line 30... Line 30...
30
 
30
 
31
  The function \code{findMethodSignatures} returns a character matrix
31
  The function \code{findMethodSignatures} returns a character matrix
32
  whose rows are the class names from the signature of the corresponding
32
  whose rows are the class names from the signature of the corresponding
33
  methods; it operates either from a list returned by
33
  methods; it operates either from a list returned by
34
  \code{findMethods}, or by computing such a list itself, given the same
34
  \code{findMethods}, or by computing such a list itself, given the same
35
  arguments as \code{findMethods} .  
35
  arguments as \code{findMethods} .
36
 
36
 
37
  The function \code{hasMethods} returns \code{TRUE} or \code{FALSE}
37
  The function \code{hasMethods} returns \code{TRUE} or \code{FALSE}
38
  according to whether there is a non-empty table of methods for
38
  according to whether there is a non-empty table of methods for
39
  function \code{f} in the environment or search position \code{where}
39
  function \code{f} in the environment or search position \code{where}
40
  (or for the generic function generally if \code{where} is missing).
40
  (or for the generic function generally if \code{where} is missing).
Line 96... Line 96...
96
    missing this will be inferred either from the \code{"package"}
96
    missing this will be inferred either from the \code{"package"}
97
    attribute of the function name, if any, or from the package slot of
97
    attribute of the function name, if any, or from the package slot of
98
    the generic function.  See \sQuote{Details}.}
98
    the generic function.  See \sQuote{Details}.}
99
}
99
}
100
\details{
100
\details{
101
  
101
 
102
  The functions obtain a table of the defined methods, either from the
102
  The functions obtain a table of the defined methods, either from the
103
  generic function or from the stored metadata object in the environment
103
  generic function or from the stored metadata object in the environment
104
  specified by \code{where}.  In a call to \code{getMethods}, the information in the table is converted
104
  specified by \code{where}.  In a call to \code{getMethods}, the information in the table is converted
105
  as described above to produce the returned value, except with the
105
  as described above to produce the returned value, except with the
106
  \code{table} argument.
106
  \code{table} argument.
107
 
107
 
108
 
108
 
109
  Note that \code{hasMethods}, but not the other functions, can be used
109
  Note that \code{hasMethods}, but not the other functions, can be used
110
  even if no generic function of this name is currently found.  In this
110
  even if no generic function of this name is currently found.  In this
111
  case \code{package} must either be supplied as an argument or included
111
  case \code{package} must either be supplied as an argument or included
112
  as an attribute of \code{f}, since the package name is part of the
112
  as an attribute of \code{f}, since the package name is part of the
113
  identification of the methods tables.
113
  identification of the methods tables.