Package org.mozilla.javascript
Class SymbolKey
java.lang.Object
org.mozilla.javascript.SymbolKey
- All Implemented Interfaces:
Serializable
,Symbol
A SymbolKey is one of the implementations of Symbol. It is really there so that we can easily use
pre-defined symbols as keys in native code. A SymbolKey has the special property that two
NativeSymbol objects with the same key are equal.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SymbolKey
static final SymbolKey
static final SymbolKey
static final SymbolKey
static final SymbolKey
static final SymbolKey
static final SymbolKey
static final SymbolKey
static final SymbolKey
static final SymbolKey
static final SymbolKey
static final SymbolKey
static final SymbolKey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the symbol's description - will returnUndefined.instance
if we have an anonymous symbol (i.e. something created withSymbol()
).getName()
Returns the symbol's name.int
hashCode()
toString()
-
Field Details
-
ITERATOR
-
TO_STRING_TAG
-
SPECIES
-
HAS_INSTANCE
-
IS_CONCAT_SPREADABLE
-
IS_REGEXP
-
TO_PRIMITIVE
-
MATCH
-
MATCH_ALL
-
REPLACE
-
SEARCH
-
SPLIT
-
UNSCOPABLES
-
-
Constructor Details
-
SymbolKey
-
-
Method Details
-
getName
Returns the symbol's name. Returns empty string for anonymous symbol (i.e. something created withSymbol()
). -
getDescription
Returns the symbol's description - will returnUndefined.instance
if we have an anonymous symbol (i.e. something created withSymbol()
). -
hashCode
public int hashCode() -
equals
-
toString
-