/** * Returns the value of the indexed property or NOT_FOUND. * * @param index the numeric index for the property * @param start the object in which the lookup began * @return the value of the property (may be null), or NOT_FOUND */ public Object get(int index, Scriptable start) { if (externalData != null) { if (index < externalData.getArrayLength()) { return externalData.getArrayElement(index); } return Scriptable.NOT_FOUND; } Slot slot = getSlot(null, index, SLOT_QUERY); if (slot == null) { return Scriptable.NOT_FOUND; } return slot.getValue(start); }
/** * Returns the value of the named property or NOT_FOUND. * * If the property was created using defineProperty, the * appropriate getter method is called. * * @param name the name of the property * @param start the object in which the lookup began * @return the value of the property (may be null), or NOT_FOUND */ public Object get(String name, Scriptable start) { Slot slot = getSlot(name, 0, SLOT_QUERY); if (slot == null) { return Scriptable.NOT_FOUND; } return slot.getValue(start); }
/** * Returns the value of the named property or NOT_FOUND. * * If the property was created using defineProperty, the * appropriate getter method is called. * * @param name the name of the property * @param start the object in which the lookup began * @return the value of the property (may be null), or NOT_FOUND */ public Object get(String name, Scriptable start) { Slot slot = getSlot(name, 0, SLOT_QUERY); if (slot == null) { return Scriptable.NOT_FOUND; } return slot.getValue(start); }
/** * Returns the value of the named property or NOT_FOUND. * * If the property was created using defineProperty, the * appropriate getter method is called. * * @param name the name of the property * @param start the object in which the lookup began * @return the value of the property (may be null), or NOT_FOUND */ public Object get(String name, Scriptable start) { Slot slot = getSlot(name, 0, SLOT_QUERY); if (slot == null) { return Scriptable.NOT_FOUND; } return slot.getValue(start); }
/** * Returns the value of the indexed property or NOT_FOUND. * * @param index the numeric index for the property * @param start the object in which the lookup began * @return the value of the property (may be null), or NOT_FOUND */ public Object get(int index, Scriptable start) { if ((externalArray != null) && externalArray.inRange(index)) { return externalArray.get(index); } Slot slot = getSlot(null, index, SLOT_QUERY); if (slot == null) { return Scriptable.NOT_FOUND; } return slot.getValue(start); }
/** * Returns the value of the named property or NOT_FOUND. * * If the property was created using defineProperty, the * appropriate getter method is called. * * @param name the name of the property * @param start the object in which the lookup began * @return the value of the property (may be null), or NOT_FOUND */ public Object get(String name, Scriptable start) { Slot slot = getSlot(name, 0, SLOT_QUERY); if (slot == null) { return Scriptable.NOT_FOUND; } return slot.getValue(start); }
/** * Returns the value of the indexed property or NOT_FOUND. * * @param index the numeric index for the property * @param start the object in which the lookup began * @return the value of the property (may be null), or NOT_FOUND */ public Object get(int index, Scriptable start) { Slot slot = getSlot(null, index, SLOT_QUERY); if (slot == null) { return Scriptable.NOT_FOUND; } return slot.getValue(start); }
/** * Returns the value of the indexed property or NOT_FOUND. * * @param index the numeric index for the property * @param start the object in which the lookup began * @return the value of the property (may be null), or NOT_FOUND */ public Object get(int index, Scriptable start) { Slot slot = getSlot(null, index, SLOT_QUERY); if (slot == null) { return Scriptable.NOT_FOUND; } return slot.getValue(start); }
@Override Object getValue(Scriptable start) { return slot.getValue(start); }
@Override Object getValue(Scriptable start) { return slot.getValue(start); }
@Override Object getValue(Scriptable start) { return slot.getValue(start); }
@Override Object getValue(Scriptable start) { return slot.getValue(start); }