public class Symbol extends Object
Modifier and Type | Field and Description |
---|---|
static String |
hasInstance
A method that determines if a constructor object recognizes an object as one of the
constructor’s instances.
|
static String |
isConcatSpreadable
A Boolean value that if true indicates that an object should flatten to its array elements
by Array.prototype.concat.
|
static String |
iterator
A method that returns the default iterator for an object.
|
static String |
match
A regular expression method that matches the regular expression against a string.
|
static Symbol |
prototype
A reference to the prototype.
|
static String |
replace
A regular expression method that replaces matched substrings of a string.
|
static String |
search
A regular expression method that returns the index within a string that matches the
regular expression.
|
static String |
species
A function valued property that is the constructor function that is used to create
derived objects.
|
static String |
split
A regular expression method that splits a string at the indices that match the regular
expression.
|
static String |
toPrimitive
A method that converts an object to a corresponding primitive value.Called by the ToPrimitive
abstract operation.
|
static String |
toStringTag
A String value that is used in the creation of the default string description of an object.
|
static String |
unscopables
An Object whose own property names are property names that are excluded from the with
environment bindings of the associated objects.
|
constructor
Constructor and Description |
---|
Symbol() |
Modifier and Type | Method and Description |
---|---|
String |
$get(Symbol toStringTag) |
static String |
applyStatic()
Returns a new unique Symbol value.
|
static String |
applyStatic(double description)
Returns a new unique Symbol value.
|
static String |
applyStatic(String description)
Returns a new unique Symbol value.
|
static String |
For(String key)
Returns a Symbol object from the global symbol registry matching the given key if found.
|
static String |
keyFor(String sym)
Returns a key from the global symbol registry matching the given Symbol if found.
|
String |
toString()
Returns a string representation of an object.
|
Object |
valueOf()
Returns the primitive value of the specified object.
|
$applyStatic, $applyStatic, $delete, $delete, $get, $get, $set, $set, $super, assign, create, create, defineProperties, defineProperty, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, hasOwnProperty, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, propertyIsEnumerable, propertyIsEnumerable, seal, toJSString, toLocaleString
public static Symbol prototype
public static String hasInstance
public static String isConcatSpreadable
public static String iterator
public static String match
public static String replace
public static String search
public static String species
public static String split
public static String toPrimitive
public static String toStringTag
public static String unscopables
public String toString()
public Object valueOf()
public static String applyStatic(String description)
description
- Description of the new Symbol object.@Name(value="for") public static String For(String key)
key
- key to search for.public static String keyFor(String sym)
sym
- Symbol to find the key for.public static String applyStatic()
description
- Description of the new Symbol object.public static String applyStatic(double description)
description
- Description of the new Symbol object.