Class StringPrototypeBuiltins.JSStringTrimLeftNode

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

public abstract static class StringPrototypeBuiltins.JSStringTrimLeftNode extends JSBuiltinNode
Non-standard String.prototype.trimLeft to provide compatibility with Nashorn and V8.
  • Constructor Details

    • JSStringTrimLeftNode

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

    • trimLeft

      protected final Object trimLeft(Object thisObj, com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readRawNode, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthExceeded, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthZero)
    • 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)