getClass
Get the Definition of a Class
Description
Gets the definition of a class.
Usage
getClass(Class, .Force = FALSE,
where = .classEnv(Class, topenv(parent.frame()), FALSE))
Arguments
Class |
a character string naming the class.
|
.Force |
a logical value to define the behavior if Class is an undefined class.
|
where |
this argument is unimplemented.
|
Details
If Class is a defined class, this returns the class definition
for the class. If the class is undefined, the result depends on the
.Force argument.
- If .Force is FALSE (the
default), the function stops with an error.
- If .Force is
TRUE, a virtual class definition for the undefined class is
returned.
Value
returns an object classRepresentation corresponding to the class Class.
See Also
Examples
getClass("integer")
## Not run:
getClass("my_undefined_class") # Error: "my_undefined_class" is not a defined class
## End(Not run)
getClass("my_undefined_class", .Force = TRUE) # returns a virtual class.