Class Symbol
java.lang.Object
com.oracle.truffle.js.runtime.Symbol
- All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SymbolA method that returns the default asynchronous iterator for an object.static final SymbolA method that determines if a constructor object recognizes an object as one of the constructor's instances.static final SymbolA Boolean valued property that if true indicates that an object should be flatten to its array elements by Array.prototype.concat.static final SymbolA method that returns the default iterator for an object.static final SymbolA regular expression method that matches the regular expression against a string.static final SymbolA regular expression method that returns an iterator, that yields matches of the regular expression against a string.static final SymbolA regular expression method that replaces matched substrings of a string.static final SymbolA regular expression method that returns the index within a string that matches the regular expression.static final SymbolA function valued property that is the constructor function that is used to create derived objects.static final SymbolA regular expression method that splits a string at the indices that match the regular expression.static final SymbolA method that converts an object to a corresponding primitive value.static final SymbolA property whose String value that is used in the creation of the default string description of an object.static final SymbolA property whose value is an Object whose own property names are property names that are excluded from the with environment bindings of the associated object. -
Method Summary
Modifier and TypeMethodDescriptionstatic Symbolcreate(com.oracle.truffle.api.strings.TruffleString description) static SymbolcreatePrivate(com.oracle.truffle.api.strings.TruffleString description) static SymbolcreatePrivateRegistered(com.oracle.truffle.api.strings.TruffleString description) static SymbolcreateRegistered(com.oracle.truffle.api.strings.TruffleString description) booleancom.oracle.truffle.api.strings.TruffleStringgetName()inthashCode()booleanbooleanvoidsetInvertedMap(Map<WeakMap, Object> invMap) com.oracle.truffle.api.strings.TruffleStringtoString()com.oracle.truffle.api.strings.TruffleString
-
Field Details
-
SYMBOL_HAS_INSTANCE
A method that determines if a constructor object recognizes an object as one of the constructor's instances. Called by the semantics of the instanceof operator. -
SYMBOL_IS_CONCAT_SPREADABLE
A Boolean valued property that if true indicates that an object should be flatten to its array elements by Array.prototype.concat. -
SYMBOL_ITERATOR
A method that returns the default iterator for an object. Called by the semantics of the for-of statement. -
SYMBOL_ASYNC_ITERATOR
A method that returns the default asynchronous iterator for an object. Called by the semantics of the for-await-of statement. -
SYMBOL_MATCH
A regular expression method that matches the regular expression against a string. Called by the String.prototype.match method. -
SYMBOL_MATCH_ALL
A regular expression method that returns an iterator, that yields matches of the regular expression against a string. Called by the String.prototype.matchAll method. -
SYMBOL_REPLACE
A regular expression method that replaces matched substrings of a string. Called by the String.prototype.replace method. -
SYMBOL_SEARCH
A regular expression method that returns the index within a string that matches the regular expression. Called by the String.prototype.search method. -
SYMBOL_SPECIES
A function valued property that is the constructor function that is used to create derived objects. -
SYMBOL_SPLIT
A regular expression method that splits a string at the indices that match the regular expression. Called by the String.prototype.split method. -
SYMBOL_TO_PRIMITIVE
A method that converts an object to a corresponding primitive value. Called by the ToPrimitive abstract operation. -
SYMBOL_TO_STRING_TAG
A property whose String value that is used in the creation of the default string description of an object. Called by the built-in method Object.prototype.toString. -
SYMBOL_UNSCOPABLES
A property whose value is an Object whose own property names are property names that are excluded from the with environment bindings of the associated object.
-
-
Method Details
-
create
-
createRegistered
-
createPrivate
-
createPrivateRegistered
public static Symbol createPrivateRegistered(com.oracle.truffle.api.strings.TruffleString description) -
getDescription
-
getName
public com.oracle.truffle.api.strings.TruffleString getName() -
isRegistered
public boolean isRegistered() -
isPrivate
public boolean isPrivate() -
toString
-
toTString
public com.oracle.truffle.api.strings.TruffleString toTString() -
toFunctionNameString
public com.oracle.truffle.api.strings.TruffleString toFunctionNameString() -
equals
-
hashCode
-
getInvertedMap
-
setInvertedMap
-