public abstract static class TruffleString.CompareIntsUTF32Node extends Node
TruffleString.CompareIntsUTF32Node.execute(AbstractTruffleString, AbstractTruffleString)
for details.Node.Child, Node.Children
Modifier and Type | Method and Description |
---|---|
static TruffleString.CompareIntsUTF32Node |
create()
Create a new
TruffleString.CompareIntsUTF32Node . |
abstract int |
execute(AbstractTruffleString a,
AbstractTruffleString b)
Compare UTF-32 strings
a and b int-by-int. |
static TruffleString.CompareIntsUTF32Node |
getUncached()
Get the uncached version of
TruffleString.CompareIntsUTF32Node . |
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toString
public abstract int execute(AbstractTruffleString a, AbstractTruffleString b)
a
and b
int-by-int. 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 an 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.CompareIntsUTF32Node create()
TruffleString.CompareIntsUTF32Node
.public static TruffleString.CompareIntsUTF32Node getUncached()
TruffleString.CompareIntsUTF32Node
.