isPrivate.Class: Checks if a class is defined private or not

isPrivate.ClassR Documentation

Checks if a class is defined private or not

Description

Checks if a class is defined private or not.

Usage

## S3 method for class 'Class'
isPrivate(this, ...)

Arguments

...

Not used.

Value

Returns TRUE if the class is private, otherwise FALSE.

Author(s)

Henrik Bengtsson

See Also

class(). setConstructorS3(). For more information see Class.

Examples

  if (isPrivate(RccViolationException))
    throw("The class RccViolationException should NOT be private.")

HenrikBengtsson/R.oo documentation built on Jan. 31, 2024, 9:06 a.m.