| subClasses {classGraph} | R Documentation |
subClasses(Cl, directOnly = TRUE, complete = TRUE, ...)
Cl |
a class representation or a class name (character). |
directOnly |
logical indicating if you direct subclasses are desired (or also the ones with distance > 1). |
complete |
logical,.. as in.... |
... |
........ |
~Describe the value returned If it is a LIST, use
comp1 |
Description of 'comp1' |
comp2 |
Description of 'comp2' |
...
Martin Maechler
superClasses; Classes in
general.
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (Cl, directOnly = TRUE, complete = TRUE, ...)
{
if (isClassDef(Cl)) {
cDef <- Cl
Cl <- cDef@className
}
else {
cDef <- if (complete)
getClass(Cl)
else getClassDef(Cl)
}
subs <- showExtends(cDef@subclasses, printTo = FALSE)
if (directOnly)
subs$what[subs$how == "directly"]
else subs$what
}