Package org.mozilla.javascript
Interface SymbolScriptable
- All Known Implementing Classes:
Arguments
,Arguments.ThrowTypeError
,ArrowFunction
,BaseFunction
,BindingsObject
,BoundFunction
,Delegator
,Environment
,ES6Generator
,ES6Iterator
,FieldAndMethods
,FunctionObject
,Global
,IdFunctionObject
,IdFunctionObjectES6
,IdScriptableObject
,ImporterTopLevel
,InterpretedFunction
,LambdaConstructor
,LambdaFunction
,ModuleScope
,Namespace
,NativeArray
,NativeArrayBuffer
,NativeArrayBufferView
,NativeArrayIterator
,NativeBigInt
,NativeBoolean
,NativeCall
,NativeCallSite
,NativeCollectionIterator
,NativeContinuation
,NativeDataView
,NativeDate
,NativeError
,NativeFloat32Array
,NativeFloat64Array
,NativeFunction
,NativeGenerator
,NativeInt16Array
,NativeInt32Array
,NativeInt8Array
,NativeIterator
,NativeIterator.StopIteration
,NativeJavaArray
,NativeJavaClass
,NativeJavaConstructor
,NativeJavaList
,NativeJavaMap
,NativeJavaMap.NativeJavaMapIterator
,NativeJavaMethod
,NativeJavaObject
,NativeJavaObject.JavaIterableIterator
,NativeJavaPackage
,NativeJavaTopPackage
,NativeJSON
,NativeMap
,NativeMath
,NativeNumber
,NativeObject
,NativePromise
,NativeRegExp
,NativeRegExpCallable
,NativeRegExpCtor
,NativeScript
,NativeSet
,NativeString
,NativeStringIterator
,NativeSymbol
,NativeTypedArrayView
,NativeUint16Array
,NativeUint32Array
,NativeUint8Array
,NativeUint8ClampedArray
,NativeWeakMap
,NativeWeakSet
,NativeWith
,QName
,Require
,ScriptableObject
,Synchronizer
,TopLevel
,XML
,XMLCtor
,XMLList
,XMLObject
,XMLObjectImpl
,XMLWithScope
public interface SymbolScriptable
This interface may be combined with any object that implements Scriptable
to add support for properties keyed by Symbol objects (as opposed to
String and number objects as in previous versions of JavaScript.
It's separated into its own interface so that the addition of Symbol
support does not break compatibility for existing code.
- Since:
- 1.7.8
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete a property with the specified key.get
(Symbol key, Scriptable start) Return the value of the property with the specified key, or NOT_FOUND.boolean
has
(Symbol key, Scriptable start) Return true if the specified property exists.void
put
(Symbol key, Scriptable start, Object value) Add a new property to to the object.
-
Method Details
-
get
Return the value of the property with the specified key, or NOT_FOUND. -
has
Return true if the specified property exists. -
put
Add a new property to to the object. -
delete
Delete a property with the specified key.
-