R.oo (version 1.24.0)

isProtected.Class: Checks if a class is defined protected or not

Description

Checks if a class is defined protected or not.

Usage

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

Arguments

...

Not used.

Value

Returns TRUE if the class is protected, otherwise FALSE.

See Also

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

Examples

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

Run the code above in your browser using DataLab