public abstract static class TruffleString.CompareBytesNode extends Node
TruffleString.CompareBytesNode.execute(AbstractTruffleString, AbstractTruffleString, TruffleString.Encoding) for
details.Node.Child, Node.Children| Modifier and Type | Method and Description |
|---|---|
static TruffleString.CompareBytesNode |
create()
Create a new
TruffleString.CompareBytesNode. |
abstract int |
execute(AbstractTruffleString a,
AbstractTruffleString b,
TruffleString.Encoding expectedEncoding)
Compare strings
a and b byte-by-byte. |
static TruffleString.CompareBytesNode |
getUncached()
Get the uncached version of
TruffleString.CompareBytesNode. |
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringpublic abstract int execute(AbstractTruffleString a, AbstractTruffleString b, TruffleString.Encoding expectedEncoding)
a and b byte-by-byte. Returns zero if a and
b are equal. If a is equal to b up to its length, but b
is longer than a, a negative value is returned. In the inverse case, a positive
value is returned. Otherwise, elements a[i] and b[i] at a byte index
i are different. If a[i] is greater than b[i], a positive value
is returned, otherwise a negative value is returned.public static TruffleString.CompareBytesNode create()
TruffleString.CompareBytesNode.public static TruffleString.CompareBytesNode getUncached()
TruffleString.CompareBytesNode.