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 |
getMatch(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
match static property. |
static Symbol |
getSpecies(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
species static property. |
static Symbol |
getToPrimitive(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
toPrimitive static property. |
static Symbol |
getToStringTag(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
toStringTag 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, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, setClassName, setParentScopeapplyDescriptorToAttributeBitset, 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, sizepublic 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 getToStringTag(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
toStringTag static property.thisObj - the scriptabletoStringTag static propertypublic static Symbol getMatch(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
match static property.thisObj - the scriptablematch static propertypublic static Symbol getSpecies(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
species static property.thisObj - the scriptablespecies 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.ScriptableObjectpublic Object getDefaultValue(Class<?> hint)
getDefaultValue in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablegetDefaultValue in class SimpleScriptablehint - a hint as to the format of the default value (ignored in this case)Copyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.