Class StringPrototypeBuiltins.JSStringTrimRightNode

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

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

    • JSStringTrimRightNode

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

    • trimRight

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