Class JSONStringifyStringNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.builtins.json.JSONStringifyStringNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class JSONStringifyStringNode extends JavaScriptBaseNode
  • 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
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(JSContext context)
     
    abstract Object
    execute(Object data, Object keyStr, JSObject holder)
     
    static com.oracle.truffle.api.strings.TruffleStringBuilder
    jsonQuote(StringBuilderProfile stringBuilderProfile, com.oracle.truffle.api.strings.TruffleStringBuilderUTF16 sb, com.oracle.truffle.api.strings.TruffleString valueStr, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readCharNode, com.oracle.truffle.api.strings.TruffleStringBuilder.AppendCharUTF16Node appendCharNode, com.oracle.truffle.api.strings.TruffleStringBuilder.AppendStringNode appendStringNode, com.oracle.truffle.api.strings.TruffleStringBuilder.AppendSubstringByteIndexNode appendSubstringNode)
     
    jsonStrMain(Object jsonData, com.oracle.truffle.api.strings.TruffleString keyStr, JSObject holder)
     

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JSONStringifyStringNode

      protected JSONStringifyStringNode(JSContext context)
  • Method Details

    • execute

      public abstract Object execute(Object data, Object keyStr, JSObject holder)
    • create

      public static JSONStringifyStringNode create(JSContext context)
    • jsonStrMain

      public Object jsonStrMain(Object jsonData, com.oracle.truffle.api.strings.TruffleString keyStr, JSObject holder)
    • jsonQuote

      public static com.oracle.truffle.api.strings.TruffleStringBuilder jsonQuote(StringBuilderProfile stringBuilderProfile, com.oracle.truffle.api.strings.TruffleStringBuilderUTF16 sb, com.oracle.truffle.api.strings.TruffleString valueStr, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readCharNode, com.oracle.truffle.api.strings.TruffleStringBuilder.AppendCharUTF16Node appendCharNode, com.oracle.truffle.api.strings.TruffleStringBuilder.AppendStringNode appendStringNode, com.oracle.truffle.api.strings.TruffleStringBuilder.AppendSubstringByteIndexNode appendSubstringNode)