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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
     
    static com.oracle.truffle.api.interop.UnknownIdentifierException
    error(Object value)
     
    abstract String
    execute(com.oracle.truffle.api.nodes.Node node, Object value)
     
    static String
     
    static String
    fromBoolean(boolean value)
     
    static String
    fromInterop(Object value, com.oracle.truffle.api.interop.InteropLibrary interop)
     
    static String
    fromLong(long value)
     
    static String
     
    protected static String
    fromTruffleString(com.oracle.truffle.api.strings.TruffleString value, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode)
     
    static String
    longToString(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public static String fromString(String value)
    • fromTruffleString

      protected static String fromTruffleString(com.oracle.truffle.api.strings.TruffleString value, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode)
    • fromBoolean

      public static String fromBoolean(boolean value)
    • fromLong

      public static String fromLong(long value)
    • fromBigNumber

      public static String fromBigNumber(SLBigInteger value)
    • 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

      public static com.oracle.truffle.api.interop.UnknownIdentifierException error(Object value)
    • bigNumberToString

      public static String bigNumberToString(SLBigInteger value)
    • longToString

      public static String longToString(long longValue)