Class StringPrototypeBuiltins.JSStringToLocaleLowerOrUpperCaseNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Enclosing class:
StringPrototypeBuiltins

public abstract static class StringPrototypeBuiltins.JSStringToLocaleLowerOrUpperCaseNode extends JSBuiltinNode
Implementation of the String.prototype.toLocaleLowerCase() and toLocaleUpperCase() methods as specified by ECMAScript Internationalization API, 1.0. https://tc39.github.io/ecma402/#sup-string.prototype.tolocalelowercase https://tc39.github.io/ecma402/#sup-string.prototype.tolocaleuppercase
  • Constructor Details

    • JSStringToLocaleLowerOrUpperCaseNode

      public JSStringToLocaleLowerOrUpperCaseNode(JSContext context, JSBuiltin builtin, boolean toUpperCase)
  • Method Details

    • doString

      protected final com.oracle.truffle.api.strings.TruffleString doString(com.oracle.truffle.api.strings.TruffleString thisStr, Object locale, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaStringNode)
    • doGeneric

      protected final com.oracle.truffle.api.strings.TruffleString doGeneric(Object thisObj, Object locale, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaStringNode)
    • within

      protected static int within(int value, int min, int max)
    • withinNumber

      protected static int withinNumber(Number value, int min, int max)
    • requireObjectCoercible

      protected final void requireObjectCoercible(Object target)
    • toString

      protected com.oracle.truffle.api.strings.TruffleString toString(Object target)
    • toIntegerAsInt

      protected int toIntegerAsInt(Object target)