Class StringPrototypeBuiltins.JSStringTrimNode

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

public abstract static class StringPrototypeBuiltins.JSStringTrimNode extends JSBuiltinNode
Implementation of the String.prototype.trim() method as specified by ECMAScript 5.1 in 15.5.4.20.
  • Constructor Details

  • Method Details

    • trimString

      protected Object trimString(com.oracle.truffle.api.strings.TruffleString thisStr, JSTrimWhitespaceNode trimWhitespaceNode)
    • trimObject

      protected Object trimObject(Object thisObj, JSTrimWhitespaceNode trimWhitespaceNode)
    • 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)