Samond Classes Library 1.2.6-STABLE build 219
List of all members
SCRuntimeUnregisteredClass Class Reference

Representation of an unregistered classes. More...

#import <SCRuntimeUnregisteredClass.h>

+ Inheritance diagram for SCRuntimeUnregisteredClass:

Creating and Initializing Unregistered Class

(instancetype) + classWithName:superclass:
 
(instancetype) + classWithName:
 
(instancetype) - initWithName:superclass:
 
(instancetype) - initWithName:
 

Class Properties

NSString * name
 
BOOL registered
 

Comparing Unregistered Classes

(BOOL) - isEqualToUnregisteredClass:
 
(BOOL) - isEqualToName:
 
(BOOL) - isEqualToClass:
 
(BOOL) - isEqual:
 

Access to Methods

(NSArray *) - instanceMethods
 
(NSArray *) - classMethods
 
(BOOL) - containsMethod:instance:
 
(BOOL) - containsMethodWithSelector:instance:
 
(BOOL) - addMethod:instance:
 

Access to Properties

(NSArray *) - instanceProperties
 
(NSArray *) - classProperties
 
(BOOL) - containsProperty:instance:
 
(BOOL) - containsPropertyWithName:instance:
 
(BOOL) - addProperty:instance:
 

Access to Variables

(NSArray *) - variables
 
(BOOL) - containsVariable:
 
(BOOL) - containsVariableWithName:
 
(BOOL) - addVariable:
 

Access to Protocols

(NSArray *) - protocols
 
(BOOL) - conformsToRuntimeProtocol:
 
(BOOL) - conformsToProtocolWithName:
 
(BOOL) - addProtocol:
 

Registering Class

(Class) - registerClass
 

Additional Inherited Members

- Instance Methods inherited from SCObject
(instancetype) - initWithCoder:
 
(instancetype) - initWithContentsOfSerializedFile:
 
(void) - encodeWithCoder:
 
(BOOL) - writeContentsToSerializedFile:
 
(instancetype) - initWithDataDictionary:
 
(instancetype) - initWithDataDictionaryFromFile:
 
(void) - writeToDataDictionary:
 
(void) - writeToDataDictionaryFile:atomically:
 
(void) - writeToDataDictionaryFile:
 
(NSDictionary *) - dataDictionary
 
(instancetype) - initWithStream:
 
(instancetype) - initWithFileStream:
 
(void) - writeToStream:
 
(void) - writeToFileStream:
 
(void) - appendToFileStream:
 
(id) - copyObject
 
(SCComparisonResult- compareWithObject:
 
(instancetype) - initWithData:
 
(instancetype) - initWithDataWrapper:
 
(instancetype) - initWithContentsOfFile:
 
(instancetype) - initWithContentsOfURL:
 
(instancetype) - initWithContentsOfURLString:
 
(void) - writeToData:
 
(BOOL) - writeToFile:
 
(BOOL) - writeToURL:
 
(BOOL) - writeToURLString:
 
(NSData *) - data
 
- Properties inherited from SCObject
NSString * className
 

Detailed Description

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:

Class instances can thrown the following exceptions:

Method Documentation

- (BOOL) addMethod: (SCRuntimeMethod *)  method
instance: (BOOL)  instance 

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
SCRuntimeException- runtime error detected
- (BOOL) addProperty: (SCRuntimeProperty *)  property
instance: (BOOL)  instance 

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
SCRuntimeException- runtime error detected
- (BOOL) addProtocol: (SCRuntimeProtocol *)  protocol

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
SCRuntimeException- runtime error detected
- (BOOL) addVariable: (SCRuntimeVariable *)  variable

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
SCRuntimeException- runtime error detected
- (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
SCRuntimeException- runtime error detected
+ (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
SCRuntimeException- runtime error detected
- (BOOL) conformsToProtocolWithName: (NSString *)  name

Returns a boolen value that indicates whether the receiving unregistered class conforms to a protocol with a given name.

Parameters
name- a protocol name
Returns
YES if the receiving unregistered class conforms to a protocol with a given name, otherwise NO
- (BOOL) conformsToRuntimeProtocol: (SCRuntimeProtocol *)  protocol

Returns a boolen value that indicates whether the receiving unregistered class conforms to a given protocol.

Parameters
protocol- a protocol
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
- (BOOL) containsProperty: (SCRuntimeProperty *)  property
instance: (BOOL)  instance 

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
- (BOOL) containsVariable: (SCRuntimeVariable *)  variable

Returns a boolean value that indicates whether a given variable is present in the receiving unregistered class.

Parameters
variable- a variable
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
name- a variable name
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
SCRuntimeException- runtime error detected
- (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
SCRuntimeException- runtime error detected
- (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
- (BOOL) isEqualToUnregisteredClass: (SCRuntimeUnregisteredClass *)  class

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
- (NSArray *) protocols

Returns a list of protocols.

Returns
An array of protocols
- (Class) registerClass

Register an unregistered class in the runtime environment.

Returns
A registered class
Exceptions
SCRuntimeException- runtime error detected
- (NSArray *) variables

Returns a list of variables.

Returns
An array of variables

Property Documentation

- (NSString *) name
readnonatomicretain

A class name

- (BOOL) registered
readnonatomicassign

Returns a boolean value that indicates whether the receiving class is registered


The documentation for this class was generated from the following files: