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

isProtected.ClassR Documentation

Checks if a class is defined protected or not

Description

Checks if a class is defined protected or not.

Usage

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

Arguments

...

Not used.

Value

Returns TRUE if the class is protected, otherwise FALSE.

Author(s)

Henrik Bengtsson

See Also

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

Examples

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

R.oo documentation built on Nov. 2, 2024, 1:07 a.m.