Class JSStringListFromIterableNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.JSStringListFromIterableNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
Converts an arbitrary iterable object to a string list.
Throws TypeError if a non-string value is encountered.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoUndefined(Object value) executeIterable(Object value) stringToList(com.oracle.truffle.api.strings.TruffleString s) toArray(Object iterable, com.oracle.truffle.api.nodes.Node node, GetIteratorNode getIteratorNode, IteratorStepNode iteratorStepNode, IteratorValueNode iteratorValueNode, IteratorCloseNode iteratorCloseNode) Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace, reportLoopCount, reportLoopCountMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Field Details
-
context
-
-
Constructor Details
-
JSStringListFromIterableNode
-
-
Method Details
-
executeIterable
-
stringToList
-
toArray
protected static List<String> toArray(Object iterable, com.oracle.truffle.api.nodes.Node node, GetIteratorNode getIteratorNode, IteratorStepNode iteratorStepNode, IteratorValueNode iteratorValueNode, IteratorCloseNode iteratorCloseNode) -
doUndefined
-