R.oo (version 1.22.0)

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

Description

Checks if a class is defined private or not.

Usage

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

Arguments

...

Not used.

Value

Returns TRUE if the class is private, otherwise FALSE.

See Also

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

Examples

Run this code
# NOT RUN {
  if (isPrivate(RccViolationException))
    throw("The class RccViolationException should NOT be private.")
# }

Run the code above in your browser using DataLab