public class Symbol extends SimpleScriptable
Symbol
.Constructor and Description |
---|
Symbol()
Default constructor.
|
Symbol(Object name)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
static Symbol |
forFunction(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
Searches for existing symbols in a runtime-wide symbol registry with the given key and returns it if found.
|
Object |
getDefaultValue(Class<?> hint)
Returns the JavaScript default value of this object.
|
static Symbol |
getIsConcatSpreadable(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
isConcatSpreadable static property. |
static Symbol |
getIterator(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
iterator static property. |
static Symbol |
getToPrimitive(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
toPrimitive static property. |
String |
getTypeOf() |
static Symbol |
getUnscopables(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
unscopables static property. |
String |
toString() |
clone, equivalentValues, get, getBrowserVersion, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public Symbol()
public Symbol(Object name)
name
- the namepublic static Symbol getIterator(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
iterator
static property.thisObj
- the scriptableiterator
static propertypublic static Symbol getUnscopables(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
unscopables
static property.thisObj
- the scriptableunscopables
static propertypublic static Symbol getIsConcatSpreadable(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
isConcatSpreadable
static property.thisObj
- the scriptableisConcatSpreadable
static propertypublic static Symbol getToPrimitive(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
toPrimitive
static property.thisObj
- the scriptabletoPrimitive
static propertypublic static Symbol forFunction(net.sourceforge.htmlunit.corejs.javascript.Context context, net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, net.sourceforge.htmlunit.corejs.javascript.Function function)
context
- the contextthisObj
- this objectargs
- the argumentsfunction
- the functionpublic String getTypeOf()
getTypeOf
in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
public Object getDefaultValue(Class<?> hint)
getDefaultValue
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
getDefaultValue
in class SimpleScriptable
hint
- a hint as to the format of the default value (ignored in this case)Copyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.