MCPcopy Create free account
hub / github.com/mozilla/rhino / modify

Method modify

rhino/src/main/java/org/mozilla/javascript/SlotMap.java:48–48  ·  view source on GitHub ↗

Return the Slot that matches EITHER "key" or "index". (It will use "key" if it is not null, and otherwise "index".) If no slot exists, then create a default slot class. @param key The key for the slot, which should be a String or a Symbol. @param index if key is zero, then this will be used as the

(SlotMapOwner<T> owner, Object key, int index, int attributes)

Source from the content-addressed store, hash-verified

46 * @return a Slot, which will be created anew if no such slot exists.
47 */
48 Slot<T> modify(SlotMapOwner<T> owner, Object key, int index, int attributes);
49
50 /**
51 * Retrieve the slot at EITHER key or index, or return null if the slot cannot be found.

Callers 15

crudOneStringMethod · 0.65
crudOneIndexMethod · 0.65
computeReplaceSlotMethod · 0.65
computeRemoveSlotMethod · 0.65
manyKeysAndIndicesMethod · 0.65
modifyWithLockMethod · 0.65
modifyMethod · 0.65
putImplMethod · 0.65
putConstImplMethod · 0.65
modifyMethod · 0.65
modifyWithLockMethod · 0.65
putImplMethod · 0.65

Calls

no outgoing calls

Tested by 5

crudOneStringMethod · 0.52
crudOneIndexMethod · 0.52
computeReplaceSlotMethod · 0.52
computeRemoveSlotMethod · 0.52
manyKeysAndIndicesMethod · 0.52