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 |
getHasInstance(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
hasInstance static property. |
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 |
getReplace(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
replace static property. |
static Symbol |
getSearch(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
search static property. |
static Symbol |
getSpecies(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
species static property. |
static Symbol |
getSplit(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
Returns the
split 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. |
static void |
remove(Window window)
Removes all cached symbols, which have the specified
window as their parent scope. |
String |
toString() |
clone, equivalentValues, get, getBrowserVersion, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, 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, 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 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 getHasInstance(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
hasInstance
static property.thisObj
- the scriptablehasInstance
static propertypublic static Symbol getReplace(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
replace
static property.thisObj
- the scriptablereplace
static propertypublic static Symbol getSearch(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
search
static property.thisObj
- the scriptablesearch
static propertypublic static Symbol getSplit(net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj)
split
static property.thisObj
- the scriptablesplit
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.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)public static void remove(Window window)
window
as their parent scope.window
- the windowCopyright © 2002–2019 Gargoyle Software Inc.. All rights reserved.