Package org.mozilla.javascript
Class SymbolKey
- java.lang.Object
- 
- org.mozilla.javascript.SymbolKey
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- Symbol
 
 public class SymbolKey extends java.lang.Object implements Symbol, java.io.Serializable 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:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static SymbolKeyHAS_INSTANCEstatic SymbolKeyIS_CONCAT_SPREADABLEstatic SymbolKeyIS_REGEXPstatic SymbolKeyITERATORstatic SymbolKeyMATCHstatic SymbolKeyREPLACEstatic SymbolKeySEARCHstatic SymbolKeySPECIESstatic SymbolKeySPLITstatic SymbolKeyTO_PRIMITIVEstatic SymbolKeyTO_STRING_TAGstatic SymbolKeyUNSCOPABLES
 - 
Constructor SummaryConstructors Constructor Description SymbolKey(java.lang.String name)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetName()inthashCode()java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
ITERATORpublic static final SymbolKey ITERATOR 
 - 
TO_STRING_TAGpublic static final SymbolKey TO_STRING_TAG 
 - 
SPECIESpublic static final SymbolKey SPECIES 
 - 
HAS_INSTANCEpublic static final SymbolKey HAS_INSTANCE 
 - 
IS_CONCAT_SPREADABLEpublic static final SymbolKey IS_CONCAT_SPREADABLE 
 - 
IS_REGEXPpublic static final SymbolKey IS_REGEXP 
 - 
TO_PRIMITIVEpublic static final SymbolKey TO_PRIMITIVE 
 - 
MATCHpublic static final SymbolKey MATCH 
 - 
REPLACEpublic static final SymbolKey REPLACE 
 - 
SEARCHpublic static final SymbolKey SEARCH 
 - 
SPLITpublic static final SymbolKey SPLIT 
 - 
UNSCOPABLESpublic static final SymbolKey UNSCOPABLES 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-