MBConcreteVariableDeclaration Class Reference
Inherits from | MBVariableDeclaration : MBDataModel : MBFormattedDescriptionObject |
---|---|
Declared in | MBVariableDeclaration.h |
Overview
An MBVariableDeclaration
that represents a concrete variable. Concrete
variables are those whose values are NSObject
instances stored in the
MBVariableSpace
.
declaredType
Returns an MBConcreteVariableType
value indicating the variable’s type
as declared by the type="
type"
attribute in MBML.
Defaults to MBConcreteVariableTypeSimple
if no type attribute is
specified.
@property (nonatomic, readonly) MBConcreteVariableType declaredType
Declared In
MBVariableDeclaration.h
declaredValue
Returns the variable value as it was originally declared in MBML. Note that this may not necessarily be the same as the current value.
@property (nullable, nonatomic, readonly) id declaredValue
Declared In
MBVariableDeclaration.h
isLiteralValue
Indicates whether the receiver represents a literal value. Literal values
are not evaluated as expressions when they are set. In MBML, a literal
value is specified using the literal="
expr"
attribute
where expr is an arbitrary text string.
@property (nonatomic, readonly) BOOL isLiteralValue
Declared In
MBVariableDeclaration.h
isBooleanValue
Indicates whether the receiver represents a boolean value. Boolean values
are evaluated as boolean expressions when they are set. In MBML, a boolean
value is specified using the boolean="
expr"
attribute
where expr is an Mockingbird expression evaluated in a boolean context.
@property (nonatomic, readonly) BOOL isBooleanValue
Declared In
MBVariableDeclaration.h
userDefaultsName
If the receiver is bound to an NSUserDefaults
value, this property
returns the name of the value (also known as the key) within the
NSUserDefaults
’s standardUserDefaults
. Will be nil
is there is
no NSUserDefaults
value associated with the receiver.
@property (nullable, nonatomic, readonly) NSString *userDefaultsName
Declared In
MBVariableDeclaration.h