Checks if a class is defined protected or not.

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

Arguments

...

Not used.

Value

Returns TRUE if the class is protected, otherwise FALSE.

Author

Henrik Bengtsson

See also

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

Examples

  if (isProtected(RccViolationException))
    throw("The class RccViolationException should NOT be protected.")