R.oo (version 1.24.0)

isStatic.Class: Checks if a class is static or not

Description

Checks if a class is static or not. A class is static if it has static methods.

Usage

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

Arguments

...

Not used.

Value

Returns TRUE if the class is static, otherwise FALSE.

See Also

setConstructorS3(). For more information see Class.

Examples

Run this code
# NOT RUN {
  if (!isStatic(RccViolationException))
    throw("RccViolationException should be static because Exception is.")
# }

Run the code above in your browser using DataCamp Workspace