Package com.oracle.truffle.sl.nodes.util
Class SLToTruffleStringNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.sl.nodes.util.SLToTruffleStringNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
public abstract class SLToTruffleStringNode
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 TypeMethodDescriptionabstract com.oracle.truffle.api.strings.TruffleStringprotected static com.oracle.truffle.api.strings.TruffleStringfromBigNumber(SLBigInteger value, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaStringNode) static com.oracle.truffle.api.strings.TruffleStringfromBoolean(boolean value) static com.oracle.truffle.api.strings.TruffleStringfromFunction(SLFunction value) static com.oracle.truffle.api.strings.TruffleStringfromInterop(Object value, com.oracle.truffle.api.interop.InteropLibrary interop, com.oracle.truffle.api.strings.TruffleString.FromLongNode fromLongNode, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaStringNode) protected static com.oracle.truffle.api.strings.TruffleStringfromLong(long value, com.oracle.truffle.api.strings.TruffleString.FromLongNode fromLongNode) static com.oracle.truffle.api.strings.TruffleStringprotected static com.oracle.truffle.api.strings.TruffleStringfromString(String value, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaStringNode) static com.oracle.truffle.api.strings.TruffleStringfromTruffleString(com.oracle.truffle.api.strings.TruffleString value) 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
-
SLToTruffleStringNode
public SLToTruffleStringNode()
-
-
Method Details
-
execute
public abstract com.oracle.truffle.api.strings.TruffleString execute(com.oracle.truffle.api.nodes.Node node, Object value) -
fromNull
-
fromString
protected static com.oracle.truffle.api.strings.TruffleString fromString(String value, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaStringNode) -
fromTruffleString
public static com.oracle.truffle.api.strings.TruffleString fromTruffleString(com.oracle.truffle.api.strings.TruffleString value) -
fromBoolean
public static com.oracle.truffle.api.strings.TruffleString fromBoolean(boolean value) -
fromLong
protected static com.oracle.truffle.api.strings.TruffleString fromLong(long value, com.oracle.truffle.api.strings.TruffleString.FromLongNode fromLongNode) -
fromBigNumber
protected static com.oracle.truffle.api.strings.TruffleString fromBigNumber(SLBigInteger value, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaStringNode) -
fromFunction
-
fromInterop
public static com.oracle.truffle.api.strings.TruffleString fromInterop(Object value, com.oracle.truffle.api.interop.InteropLibrary interop, com.oracle.truffle.api.strings.TruffleString.FromLongNode fromLongNode, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaStringNode)
-