| Line 6... |
Line 6... |
| 6 |
These functions check for either a method or a class that has been
|
6 |
These functions check for either a method or a class that has been
|
| 7 |
\dQuote{sealed} when it was defined, and which therefore cannot be
|
7 |
\dQuote{sealed} when it was defined, and which therefore cannot be
|
| 8 |
re-defined.
|
8 |
re-defined.
|
| 9 |
}
|
9 |
}
|
| 10 |
\usage{
|
10 |
\usage{
|
| 11 |
isSealedMethod(f, signature, fdef)
|
11 |
isSealedMethod(f, signature, fdef, where)
|
| 12 |
isSealedClass(Class)
|
12 |
isSealedClass(Class, where)
|
| 13 |
}
|
13 |
}
|
| 14 |
\arguments{
|
14 |
\arguments{
|
| 15 |
\item{f}{ The quoted name of the generic function. }
|
15 |
\item{f}{ The quoted name of the generic function. }
|
| 16 |
\item{signature}{ The class names in the method's signature, as
|
16 |
\item{signature}{ The class names in the method's signature, as
|
| 17 |
they would be supplied to \code{\link{setMethod}}. }
|
17 |
they would be supplied to \code{\link{setMethod}}. }
|
| 18 |
\item{fdef}{ Optional, and usually omitted: the generic function
|
18 |
\item{fdef}{ Optional, and usually omitted: the generic function
|
| 19 |
definition for \code{f}. }
|
19 |
definition for \code{f}. }
|
| 20 |
\item{Class}{The quoted name of the class.}
|
20 |
\item{Class}{The quoted name of the class.}
|
| - |
|
21 |
|
| - |
|
22 |
\item{where}{where to search for the method or class definition. By
|
| - |
|
23 |
default, searches from the top environment of the call to
|
| - |
|
24 |
\code{isSealedMethod} or \code{isSealedClass}, typically the
|
| - |
|
25 |
global environment or the namespace of a package containing a call
|
| - |
|
26 |
to one of the functions.}
|
| 21 |
}
|
27 |
}
|
| 22 |
\details{
|
28 |
\details{
|
| 23 |
In the R implementation of classes and methods, it is possible to
|
29 |
In the R implementation of classes and methods, it is possible to
|
| 24 |
seal the definition of either a class or a method. The basic
|
30 |
seal the definition of either a class or a method. The basic
|
| 25 |
classes (numeric and other types of vectors, matrix and array data)
|
31 |
classes (numeric and other types of vectors, matrix and array data)
|