Representation of a class variable.
More...
#import <SCRuntimeVariable.h>
Representation of a class variable.
- SDK
- macOS 10.6+, iOS 7.0+, GNUstep
- Since
- version 1.2.6
Provides access to runtime class variables:
- getting information about existing variables of classes;
- creating new variables;
- access to various variables parameters;
- add variables to unregistered classes.
Class instances can thrown the following exceptions:
Adds a receiving variable to a given unregistered class.
- Parameters
-
class | - an unregistered class |
- Returns
- YES if a variable was successfully added, otherwise NO
- Exceptions
-
- (BOOL) availableInClass: |
|
(Class) |
class |
|
Returns a boolean value that indicates whether a receiving variable is present in a given class.
- Parameters
-
- Returns
- YES if a receving variable is present in a given class, otherwise NO
Returns a boolean value that indicates whether a receiving variable is present in a given unregistered class.
- Parameters
-
class | - an unregistered class |
- Returns
- YES if a receving variable is present in a given class, otherwise NO
- (instancetype) initWithClass: |
|
(Class) |
class |
name: |
|
(NSString *) |
name |
|
|
| |
Initializes a variable using the specified class and variable name.
- Parameters
-
class | - a class |
name | - a variable name |
- Returns
- A newly initialized variable
- Exceptions
-
- (instancetype) initWithName: |
|
(NSString *) |
name |
encoding: |
|
(NSString *) |
encoding |
|
|
| |
Initializes a variable using the specified name and type encoding.
- Parameters
-
name | - a variable name |
encoding | - a type encoding |
- Returns
- A newly initialized variable
- (instancetype) initWithObjCVariable: |
|
(Ivar) |
variable |
|
Initializes a variable using a given pointer to existing runtime variable.
- Parameters
-
variable | - a pointer to runtime variable |
- Returns
- A newly initialized variable
- (BOOL) isEqual: |
|
(id) |
object |
|
Returns a boolean value that indicates whether the receiving variable is equals to a given object.
- Parameters
-
object | - an object with which to compare the receiving variable |
- Returns
- YES if a given object is equals to the receiving variable, otherwise NO
Reimplemented from SCObject.
- (BOOL) isEqualToName: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether the receiving variable is equals to a variable with a given name.
- Parameters
-
name | - a name of variable with which to compare the receiving variable |
- Returns
- YES if the variable of a given name is equals to the receiving variable, otherwise NO
- (BOOL) isEqualToObjCVariable: |
|
(Ivar) |
variable |
|
Returns a boolean value that indicates whether the receiving variable is equals to a pointer to runtime variable.
- Parameters
-
variable | - a pointer to runtime variable with which to compare the receiving variable |
- Returns
- YES if a variable with a given runtime pointer is equals to the receiving variable, otherwise NO
Returns a boolean value that indicates whether the receiving variable is equals to an another given variable.
- Parameters
-
variable | - the variable with which to compare the receiving variable |
- Returns
- YES if the other variable is equals to the receiving variable, otherwise NO
+ (instancetype) variableWithClass: |
|
(Class) |
class |
name: |
|
(NSString *) |
name |
|
|
| |
Returns a variable created by using the specified class and variable name.
- Parameters
-
class | - a class |
name | - a variable name |
- Returns
- A created variable
- Exceptions
-
Returns a variable created by using the specified name and type encoding.
- Parameters
-
name | - a variable name |
encoding | - a type encoding |
- Returns
- A created variable
+ (instancetype) variableWithObjCVariable: |
|
(Ivar) |
variable |
|
Returns a variable created by using a given pointer to existing runtime variable.
- Parameters
-
variable | - a pointer to runtime variable |
- Returns
- A created variable
The documentation for this class was generated from the following files: