Class JSTrimWhitespaceNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.JSTrimWhitespaceNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class JSTrimWhitespaceNode extends JavaScriptBaseNode
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node

    com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected final com.oracle.truffle.api.strings.TruffleString
    doString(com.oracle.truffle.api.strings.TruffleString string, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readRawNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastNonWhitespace, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastWhitespace, com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode, com.oracle.truffle.api.profiles.InlinedBranchProfile startsWithWhitespaceBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile endsWithWhitespaceBranch, com.oracle.truffle.api.profiles.InlinedConditionProfile isEmpty)
     
    protected static com.oracle.truffle.api.strings.TruffleString
    doStringNoWhitespace(com.oracle.truffle.api.strings.TruffleString string, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readRawNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastNonWhitespace, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastWhitespace)
     
    protected static com.oracle.truffle.api.strings.TruffleString
    doStringZero(com.oracle.truffle.api.strings.TruffleString string)
     
    abstract com.oracle.truffle.api.strings.TruffleString
    executeString(com.oracle.truffle.api.strings.TruffleString operand)
     
    protected boolean
    startsOrEndsWithWhitespace(com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readRawNode, com.oracle.truffle.api.strings.TruffleString string, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastNonWhitespace, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastWhitespace)
     

    Methods inherited from class com.oracle.truffle.api.nodes.Node

    accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, reportReplace, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JSTrimWhitespaceNode

      public JSTrimWhitespaceNode()
  • Method Details

    • create

      public static JSTrimWhitespaceNode create()
    • executeString

      public abstract com.oracle.truffle.api.strings.TruffleString executeString(com.oracle.truffle.api.strings.TruffleString operand)
    • startsOrEndsWithWhitespace

      protected boolean startsOrEndsWithWhitespace(com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readRawNode, com.oracle.truffle.api.strings.TruffleString string, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastNonWhitespace, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastWhitespace)
    • doStringZero

      protected static com.oracle.truffle.api.strings.TruffleString doStringZero(com.oracle.truffle.api.strings.TruffleString string)
    • doStringNoWhitespace

      protected static com.oracle.truffle.api.strings.TruffleString doStringNoWhitespace(com.oracle.truffle.api.strings.TruffleString string, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readRawNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastNonWhitespace, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastWhitespace)
    • doString

      protected final com.oracle.truffle.api.strings.TruffleString doString(com.oracle.truffle.api.strings.TruffleString string, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readRawNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastNonWhitespace, com.oracle.truffle.api.profiles.InlinedConditionProfile isFastWhitespace, com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode, com.oracle.truffle.api.profiles.InlinedBranchProfile startsWithWhitespaceBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile endsWithWhitespaceBranch, com.oracle.truffle.api.profiles.InlinedConditionProfile isEmpty)