Package org.mozilla.javascript
Class AccessorSlot.FunctionSetter
- java.lang.Object
-
- org.mozilla.javascript.AccessorSlot.FunctionSetter
-
- All Implemented Interfaces:
AccessorSlot.Setter
- Enclosing class:
- AccessorSlot
static final class AccessorSlot.FunctionSetter extends java.lang.Object implements AccessorSlot.Setter
Invoke the setter as a JavaScript function, taking care that it might actually be Undefined.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Object
target
-
Constructor Summary
Constructors Constructor Description FunctionSetter(java.lang.Object target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function
asSetterFunction(java.lang.String name, Scriptable scope)
boolean
setValue(java.lang.Object value, Scriptable owner, Scriptable start)
-
-
-
Method Detail
-
setValue
public boolean setValue(java.lang.Object value, Scriptable owner, Scriptable start)
- Specified by:
setValue
in interfaceAccessorSlot.Setter
-
asSetterFunction
public Function asSetterFunction(java.lang.String name, Scriptable scope)
- Specified by:
asSetterFunction
in interfaceAccessorSlot.Setter
-
-