Class StringPrototypeBuiltins.JSStringCodePointAtNode

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

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

    • JSStringCodePointAtNode

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

    • codePointAt

      protected Object codePointAt(Object thisObj, Object position, com.oracle.truffle.api.strings.TruffleString.CodePointAtByteIndexNode codePointAtRawNode, com.oracle.truffle.api.profiles.InlinedBranchProfile undefinedBranch)
    • 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)