Representation of an unregistered classes.
More...
#import <SCRuntimeUnregisteredClass.h>
Representation of an unregistered classes.
- SDK
- macOS 10.6+, iOS 7.0+, GNUstep
- Since
- version 1.2.6
Provides access to unregistered classes in the process of creation for their subsequent registration in the runtime environment:
- creating new classes;
- access to methods of a new class;
- access to properties of a new class;
- access to variables of a new class;
- access to protocols of a new class;
- registration in the runtime environment.
Class instances can thrown the following exceptions:
Adds a given method into the receiving unregistered class.
- Parameters
-
method | - a method to add |
instance | - YES for an instance method, NO for a class method |
- Returns
- YES if a method was successfully added, otherwise NO
- Exceptions
-
Adds a given property into the receiving unregistered class.
- Parameters
-
property | - a property to add into the unregistered class |
instance | - YES for an instance property, NO for a class property (ignored on GNUstep platform) |
- Returns
- YES if a property was successfully added, otherwise NO
- Exceptions
-
Adds a given protocol into the receiving unregistered class.
- Parameters
-
protocol | - a protocol to add into the unregistered class |
- Returns
- YES if a protocol was successfully added, otherwise NO
- Exceptions
-
Adds a given variable into the receiving unregistered class.
- Parameters
-
variable | - a variable to add into the unregistered class |
- Returns
- YES if a variable was successfully added, otherwise NO
- Exceptions
-
- (NSArray *) classMethods |
|
|
|
Returns a list of class methods.
- Returns
- An array of methods
- (NSArray *) classProperties |
|
|
|
- SDK
- macOS 10.6+, iOS 7.0+
Returns a list of a class properties.
- Returns
- An array of properties
+ (instancetype) classWithName: |
|
(NSString *) |
name |
|
Returns an unregistered class created by using a given name.
- Parameters
-
name | - a name of the new class |
- Returns
- A created unregistered class
- Exceptions
-
+ (instancetype) classWithName: |
|
(NSString *) |
name |
superclass: |
|
(Class) |
superclass |
|
|
| |
Returns an unregistered class created by using a given name and superclass.
- Parameters
-
name | - a name of the new class |
superclass | - a superclass of the new class |
- Returns
- A created unregistered class
- Exceptions
-
- (BOOL) conformsToProtocolWithName: |
|
(NSString *) |
name |
|
Returns a boolen value that indicates whether the receiving unregistered class conforms to a protocol with a given name.
- Parameters
-
- Returns
- YES if the receiving unregistered class conforms to a protocol with a given name, otherwise NO
Returns a boolen value that indicates whether the receiving unregistered class conforms to a given protocol.
- Parameters
-
- Returns
- YES if the receiving unregistered class conforms to a given protocol, otherwise NO
- (BOOL) containsMethod: |
|
(SCRuntimeMethod *) |
method |
instance: |
|
(BOOL) |
instance |
|
|
| |
Returns a boolean value that indicates whether the receiving unregistered class contains a given method.
- Parameters
-
method | - a method |
instance | - YES for an instance method, NO for a class method |
- Returns
- YES if a given method is present in the receiving unregistered class, otherwise NO
- (BOOL) containsMethodWithSelector: |
|
(SEL) |
selector |
instance: |
|
(BOOL) |
instance |
|
|
| |
Returns a boolean value that indicates whether the receiving unregistered class contains a method with a given selector.
- Parameters
-
selector | - a method selector |
instance | - YES for an instance method, NO for a class method |
- Returns
- YES if a method with a given selector is present in the receiving unregistered class, otherwise NO
Returns a boolean value that indicates whether a given property is present in the receiving unregistered class.
- Parameters
-
property | - a property |
instance | - YES for an instance property, NO for a class property (ignored on GNUstep platform) |
- Returns
- YES if a given property is present in the receiving unregistered class, otherwise NO
- (BOOL) containsPropertyWithName: |
|
(NSString *) |
name |
instance: |
|
(BOOL) |
instance |
|
|
| |
Returns a boolean value that indicates whether a property with a given name is present in the receiving unregistered class.
- Parameters
-
name | - a property name |
instance | - YES for an instance property, NO for a class property (ignored on GNUstep platform) |
- Returns
- YES if a property with a given name is present in the receiving unregistered class, otherwise NO
Returns a boolean value that indicates whether a given variable is present in the receiving unregistered class.
- Parameters
-
- Returns
- YES if a given variable is present in the receiving unregisterd class, otherwise NO
- (BOOL) containsVariableWithName: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a variable with a given name is present in the receiving unregistered class.
- Parameters
-
- Returns
- YES if a variable with a given name is present in the receiving unregisterd class, otherwise NO
- (instancetype) initWithName: |
|
(NSString *) |
name |
|
Initializes an unregistered class created by using a given name.
- Parameters
-
name | - a name of the new class |
- Returns
- A newly initialized unregistered class
- Exceptions
-
- (instancetype) initWithName: |
|
(NSString *) |
name |
superclass: |
|
(Class) |
superclass |
|
|
| |
Initializes an unregistered class using a given name and superclass.
- Parameters
-
name | - a name of the new class |
superclass | - a superclass of the new class |
- Returns
- A newly initialized unregistered class
- Exceptions
-
- (NSArray *) instanceMethods |
|
|
|
Returns a list of instance methos.
- Returns
- An array of methods
- (NSArray *) instanceProperties |
|
|
|
Returns a list of an instance properties.
- Returns
- An array of properties
- (BOOL) isEqual: |
|
(id) |
object |
|
Returns a boolean value that indicates whether the receiving unregistered class is equals to a given object.
- Parameters
-
object | - an object with which to compare the receiving unregistered class |
- Returns
- YES if a given object is equals to the receiving unregistered class, otherwise NO
Reimplemented from SCObject.
- (BOOL) isEqualToClass: |
|
(Class) |
class |
|
Returns a boolean value that indicates whether the receiving unregistered class is equals to a given class.
- Parameters
-
class | - the class with which to compare the receiving unregistered class |
- Returns
- YES if a given class is equals to the receiving unregistered class, otherwise NO
- (BOOL) isEqualToName: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether the name of the receiving unregistered class is equals to a given name.
- Parameters
-
name | - the name with which to compare the name of the receiving unregistered class |
- Returns
- YES if the name is equals to the name of the receiving unregistered class, otherwise NO
Returns a boolean value that indicates whether the receiving unregistered class is equals to an another given unregistered class.
- Parameters
-
class | - the unregistered class with which to compare the receiving unregistered class |
- Returns
- YES if the other unregistered class is equals to the receiving unregistered class, otherwise NO
Returns a list of protocols.
- Returns
- An array of protocols
Register an unregistered class in the runtime environment.
- Returns
- A registered class
- Exceptions
-
Returns a list of variables.
- Returns
- An array of variables
Returns a boolean value that indicates whether the receiving class is registered
The documentation for this class was generated from the following files: