RBReflectionUtility Class Reference

Inherits from NSObject
Declared in RBReflectionUtility.h

Overview

Reflection utility methods.

+ subclassesOf:

Finds the subclasses of the given type.

+ (nullable NSSet *)subclassesOf:(nonnull Class)type

Parameters

type

The type to find subclasses for.

Return Value

A set of the subclasses that were found.

Declared In

RBReflectionUtility.h

+ classesThatMatch:

Finds all of the classes that match the given block.

+ (nullable NSSet *)classesThatMatch:(nonnull BOOL ( ^ ) ( Class __nonnull typeClass ))classMatchBlock

Parameters

classMatchBlock

The block to determine whether a given type is acceptable.

Return Value

A set of the matching classes.

Declared In

RBReflectionUtility.h