Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 'Class'
isStatic(this, ...)

Arguments

...

Not used.

Value

Returns TRUE if the class is static, otherwise FALSE.

Author(s)

Henrik Bengtsson

See Also

setConstructorS3(). For more information see Class.

Examples

if (!isStatic(RccViolationException))
    throw("RccViolationException should be static because Exception is.")

R.oo

R Object-Oriented Programming with or without References

v1.24.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.