Class StringPrototypeBuiltins.JSStringNormalizeNode

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

public abstract static class StringPrototypeBuiltins.JSStringNormalizeNode extends JSBuiltinNode
Implementation of the String.prototype.normalize() method of ECMAScript6/Harmony.
  • Constructor Details

    • JSStringNormalizeNode

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

    • normalize

      protected com.oracle.truffle.api.strings.TruffleString normalize(Object thisObj, Object form, com.oracle.truffle.api.strings.TruffleString.EqualNode stringEqualsNode, 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)