Class baja.SlotCursor
Extends
baja.FilterCursor.
A Cursor used for Slot iteration.
Defined in: comp.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
actions()
Adds a filter to the Cursor for Actions.
|
|
|
dynamic()
Adds a filter to the Cursor for dynamic Slots.
|
|
|
eachDisplay(func)
Iterate through the Cursor and call 'each' on every Property Slot and get its display String.
|
|
|
eachValue(func)
Iterate through the Cursor and call 'each' on every Property Slot and get its value.
|
|
|
equalType(typeSpec)
Adds a filter for Properties whose Type matches via equals.
|
|
|
equalValue(value)
Adds a filter for Property values that match via equals.
|
|
|
equivalent(value)
Adds a filter for Property values that match via equivalent.
|
|
|
Return the first Property display String in the cursor (regardless of iterative state).
|
|
|
Return the first Property value in the cursor (regardless of iterative state).
|
|
|
flags(flgs)
Adds a filter for Slots that match the requested Slot Flags.
|
|
|
frozen()
Adds a filter to the Cursor for frozen Slots.
|
|
|
If the Slot is a Property, return its display String (otherwise return null).
|
|
|
getValue()
If the Slot is a Property, return its value (otherwise return null).
|
|
|
is(typeSpec)
Adds a filter for Property values that match the TypeSpec via Type#is.
|
|
|
Adds a filter for Property values that are of Type baja:Complex Type#isComplex.
|
|
|
Adds a filter for Property values that are of Type baja:Component Type#isComponent.
|
|
|
isNumber()
Adds a filter for Property values that are of Type baja:Number Type#isNumber.
|
|
|
isSimple()
Adds a filter for Property values that are of Type baja:Simple Type#isSimple.
|
|
|
isStruct()
Adds a filter for Property values that are of Type baja:Struct Type#isStruct.
|
|
|
isValue()
Adds a filter for Property values that are of Type baja:Value Type#isValue.
|
|
|
Return the last Property display String in the cursor (regardless of iterative state).
|
|
|
Return the last Property value in the cursor (regardless of iterative state).
|
|
|
Adds a filter to the Cursor for Properties.
|
|
|
slotName(slotName)
Adds a filter for Slots that match the given Slot name.
|
|
|
Return an array of Property display Strings (regardless of iterative state).
|
|
|
Return an Object Map of Property names with their corresponding display Strings (regardless of iterative state).
|
|
|
topics()
Adds a filter to the Cursor for Topics.
|
|
|
Return an array of Property values (regardless of iterative state).
|
|
|
Return an Object Map of Property names with their corresponding values (regardless of iterative state).
|
- Methods borrowed from class baja.FilterCursor:
- each, filter, first, get, getIndex, getKey, getSize, isEmpty, last, next, toArray, toMap
- Returns:
- {baja.SlotCursor} itself.
- Returns:
- {baja.SlotCursor} itself.
When the function is called, 'this' refers to the associated Complex and the argument is the display String.
- Parameters:
- {Function} func
- function called on every iteration with the argument being a Property's display String
When the function is called, 'this' refers to the associated Complex and the argument is the value of the Property.
- Parameters:
- {Function} func
- function called on every iteration with the argument being a Property's value.
This method can take a variable number of TypeSpecs. If a variable number of TypeSpecs are specified then a slot will be filtered through if any of the TypeSpecs match (logical OR).
- Returns:
- {baja.SlotCursor} itself.
This method can take a variable number of values. If a variable number of values are specified then a slot will be filtered through if any of the values match (logical OR).
- Parameters:
- value
- the value to be used for equals.
- Returns:
- {baja.SlotCursor} itself.
This method can take a variable number of values. If a variable number of values are specified then a slot will be filtered through if any of the values match (logical OR).
- Parameters:
- value
- the value to be used for equivalent.
- Returns:
- {baja.SlotCursor} itself.
- Returns:
- first Property display String found in the Cursor (or null if nothing found).
- Returns:
- first Property value found in the Cursor (or null if nothing found).
- Parameters:
- {Number} flgs
- the Slot flags to be tested for.
- Returns:
- {baja.SlotCursor} itself.
- See:
- baja.Flags
- Returns:
- {baja.SlotCursor} itself.
- Returns:
- {String} display String.
- Returns:
- a Property value.
This method can take a variable number of TypeSpecs. If a variable number of TypeSpecs are specified then a slot will be filtered through if any of the TypeSpecs match (logical OR).
- Returns:
- {baja.SlotCursor} itself.
- See:
- Type#is
- Returns:
- {baja.SlotCursor} itself.
- See:
- Type#isComplex
- Returns:
- {baja.SlotCursor} itself.
- See:
- Type#isComponent
- Returns:
- {baja.SlotCursor} itself.
- See:
- Type#isNumber
- Returns:
- {baja.SlotCursor} itself.
- See:
- Type#isSimple
- Returns:
- {baja.SlotCursor} itself.
- See:
- Type#isStruct
- Returns:
- {baja.SlotCursor} itself.
- See:
- Type#isValue
- Returns:
- first Property display String found in the Cursor (or null if nothing found).
- Returns:
- first Property value found in the Cursor (or null if nothing found).
- Returns:
- {baja.SlotCursor} itself.
- Parameters:
- {String|RegEx} slotName
- a String or Regular Expression for matching Slots via name.
- Returns:
- {baja.SlotCursor} itself.
- Returns:
- {Number}
- Returns:
- {Object}
- Returns:
- {baja.SlotCursor} itself.
- Returns:
- {Number}
- Returns:
- {Object}