Class OrdinaryToPrimitiveNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.OrdinaryToPrimitiveNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Implements OrdinaryToPrimitive (O, hint).
- See Also:
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OrdinaryToPrimitiveNodecreate()protected static ObjectdoForeign(Object object, JSToPrimitiveNode.Hint hint, com.oracle.truffle.api.nodes.Node node, PropertyGetNode getToStringNode, PropertyGetNode getValueOfNode, IsCallableNode isCallableNode, IsPrimitiveNode isPrimitiveNode, JSFunctionCallNode callToStringNode, JSFunctionCallNode callValueOfNode, ForeignObjectPrototypeNode foreignObjectPrototypeNode, com.oracle.truffle.api.interop.InteropLibrary interop) protected static ObjectdoObject(JSObject object, JSToPrimitiveNode.Hint hint, com.oracle.truffle.api.nodes.Node node, PropertyGetNode getToStringNode, PropertyGetNode getValueOfNode, IsCallableNode isCallableNode, IsPrimitiveNode isPrimitiveNode, JSFunctionCallNode callToStringNode, JSFunctionCallNode callValueOfNode) abstract Objectexecute(Object object, JSToPrimitiveNode.Hint hint) static booleanisJavaArray(Object object, com.oracle.truffle.api.interop.InteropLibrary interop) Methods inherited from class 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
-
Constructor Details
-
OrdinaryToPrimitiveNode
protected OrdinaryToPrimitiveNode()
-
-
Method Details
-
execute
-
doObject
protected static Object doObject(JSObject object, JSToPrimitiveNode.Hint hint, com.oracle.truffle.api.nodes.Node node, PropertyGetNode getToStringNode, PropertyGetNode getValueOfNode, IsCallableNode isCallableNode, IsPrimitiveNode isPrimitiveNode, JSFunctionCallNode callToStringNode, JSFunctionCallNode callValueOfNode) -
doForeign
protected static Object doForeign(Object object, JSToPrimitiveNode.Hint hint, com.oracle.truffle.api.nodes.Node node, PropertyGetNode getToStringNode, PropertyGetNode getValueOfNode, IsCallableNode isCallableNode, IsPrimitiveNode isPrimitiveNode, JSFunctionCallNode callToStringNode, JSFunctionCallNode callValueOfNode, ForeignObjectPrototypeNode foreignObjectPrototypeNode, com.oracle.truffle.api.interop.InteropLibrary interop) -
create
-
isJavaArray
public static boolean isJavaArray(Object object, com.oracle.truffle.api.interop.InteropLibrary interop)
-