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.
Value
returns an object classRepresentation corresponding to the class Class.
See Also
getClassDef, setClass
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.
Package methods version 6.1.1-7
Package Index