Class JSToOperandNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.JSToOperandNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
Converts a value to an 'operand', which is a preliminary step when invoking an overloaded
operator. If the value is an object with overloaded operators, this ought to check that
overloaded operators for that object have been enabled. Otherwise, if the value doesn't feature
overloaded operators, it is coerced to a primitive using ToPrimitive.
-
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
ConstructorsModifierConstructorDescriptionprotectedJSToOperandNode(JSToPrimitiveNode.Hint hint, boolean checkOperatorAllowed) -
Method Summary
Modifier and TypeMethodDescriptionstatic JSToOperandNodecreate(JSToPrimitiveNode.Hint hint) static JSToOperandNodecreate(JSToPrimitiveNode.Hint hint, boolean checkOperatorAllowed) protected ObjectdoOther(Object arg, JSToPrimitiveNode toPrimitiveNode) protected Objectabstract Objectprotected JSToPrimitiveNode.HintgetHint()Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplaceMethods 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, toString
-
Field Details
-
hint
-
checkOperatorAllowed
protected final boolean checkOperatorAllowed
-
-
Constructor Details
-
JSToOperandNode
-
-
Method Details
-
create
-
create
-
execute
-
getHint
-
doOverloaded
-
doOther
-