Package com.oracle.truffle.sl.nodes.util
Class SLToMemberNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.sl.nodes.util.SLToMemberNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
public abstract class SLToMemberNode
extends com.oracle.truffle.api.nodes.Node
The node to normalize any value to an SL value. This is useful to reduce the number of values
expression nodes need to expect.
-
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 StringbigNumberToString(SLBigInteger value) static com.oracle.truffle.api.interop.UnknownIdentifierExceptionabstract Stringstatic StringfromBigNumber(SLBigInteger value) static StringfromBoolean(boolean value) static StringfromInterop(Object value, com.oracle.truffle.api.interop.InteropLibrary interop) static StringfromLong(long value) static StringfromString(String value) protected static StringfromTruffleString(com.oracle.truffle.api.strings.TruffleString value, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode) static StringlongToString(long longValue) Methods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Constructor Details
-
SLToMemberNode
public SLToMemberNode()
-
-
Method Details
-
execute
public abstract String execute(com.oracle.truffle.api.nodes.Node node, Object value) throws com.oracle.truffle.api.interop.UnknownIdentifierException - Throws:
com.oracle.truffle.api.interop.UnknownIdentifierException
-
fromString
-
fromTruffleString
protected static String fromTruffleString(com.oracle.truffle.api.strings.TruffleString value, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode) -
fromBoolean
-
fromLong
-
fromBigNumber
-
fromInterop
public static String fromInterop(Object value, com.oracle.truffle.api.interop.InteropLibrary interop) throws com.oracle.truffle.api.interop.UnknownIdentifierException - Throws:
com.oracle.truffle.api.interop.UnknownIdentifierException
-
error
-
bigNumberToString
-
longToString
-