Class StringPrototypeBuiltins.JSStringStartsWithNode

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

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

    • JSStringStartsWithNode

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

    • startsWithString

      protected boolean startsWithString(com.oracle.truffle.api.strings.TruffleString thisObj, com.oracle.truffle.api.strings.TruffleString searchStr, Object position, com.oracle.truffle.api.strings.TruffleString.RegionEqualByteIndexNode regionEqualsNode)
    • startsWithGeneric

      protected boolean startsWithGeneric(Object thisObj, Object searchString, Object position, JSToStringNode toString2Node, IsRegExpNode isRegExpNode, com.oracle.truffle.api.strings.TruffleString.RegionEqualByteIndexNode regionEqualsNode, com.oracle.truffle.api.profiles.InlinedBranchProfile noStringBranch)
    • 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)