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
-
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic JSTrimWhitespaceNodecreate()protected final com.oracle.truffle.api.strings.TruffleStringdoString(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.TruffleStringdoStringNoWhitespace(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.TruffleStringdoStringZero(com.oracle.truffle.api.strings.TruffleString string) abstract com.oracle.truffle.api.strings.TruffleStringexecuteString(com.oracle.truffle.api.strings.TruffleString operand) protected booleanstartsOrEndsWithWhitespace(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.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace, reportLoopCount, reportLoopCountMethods 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
-
Constructor Details
-
JSTrimWhitespaceNode
public JSTrimWhitespaceNode()
-
-
Method Details
-
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)
-