Class JSToCanonicalizedLocaleListNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.intl.JSToCanonicalizedLocaleListNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class JSToCanonicalizedLocaleListNode extends JavaScriptBaseNode
Implementation of ECMA intl402 9.2.1 "CanonicalizeLocaleList" as Truffle node. https://tc39.github.io/ecma402/#sec-canonicalizelocalelist
  • Constructor Details

    • JSToCanonicalizedLocaleListNode

      protected JSToCanonicalizedLocaleListNode(JSContext context)
  • Method Details

    • create

      public static JSToCanonicalizedLocaleListNode create(JSContext context)
    • executeLanguageTags

      public abstract String[] executeLanguageTags(Object value)
    • doTString

      protected String[] doTString(com.oracle.truffle.api.strings.TruffleString s)
    • doUndefined

      protected String[] doUndefined(Object object)
    • doLocale

      protected String[] doLocale(JSLocaleObject object)
    • doOtherType

      protected String[] doOtherType(Object object, JSToObjectNode toObjectNode, JSGetLengthNode getLengthNode, JSHasPropertyNode hasPropertyNode, TypeOfNode typeOfNode, JSToStringNode toStringNode, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode)
    • doForeignType

      protected String[] doForeignType(Object object, com.oracle.truffle.api.interop.InteropLibrary arrayInterop, com.oracle.truffle.api.interop.InteropLibrary valueInterop, ImportValueNode importValueNode, TypeOfNode typeOfNode, JSToStringNode toStringNode, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode)