Class StringPrototypeBuiltins.JSStringLocaleCompareIntlNode

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

public abstract static class StringPrototypeBuiltins.JSStringLocaleCompareIntlNode extends JSBuiltinNode
Implementation of the String.prototype.localeCompare() method as specified by ECMAScript Internationalization API, 1.0. http://ecma-international.org/ecma-402/1.0/#sec-13.1.1
  • Constructor Details

    • JSStringLocaleCompareIntlNode

      public JSStringLocaleCompareIntlNode(JSContext context, JSBuiltin builtin)
  • Method Details

    • localeCompare

      protected int localeCompare(Object thisObj, Object thatObj, Object locales, Object options, JSToStringNode toString2Node)
    • 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)