public abstract static class TruffleString.EqualNode extends Node
The AbstractTruffleString.equals(Object)-method delegates to this node.
Node.Child, Node.Children| Modifier and Type | Method and Description |
|---|---|
static TruffleString.EqualNode |
create()
Create a new
TruffleString.EqualNode. |
abstract boolean |
execute(AbstractTruffleString a,
AbstractTruffleString b,
TruffleString.Encoding expectedEncoding)
Returns
true if a and b are byte-by-byte equal when considered in
expectedEncoding. |
static TruffleString.EqualNode |
getUncached()
Get the uncached version of
TruffleString.EqualNode. |
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 boolean execute(AbstractTruffleString a, AbstractTruffleString b, TruffleString.Encoding expectedEncoding)
true if a and b are byte-by-byte equal when considered in
expectedEncoding. Note that this method requires both strings to be compatible to
the expectedEncoding, just like all other operations with an
expectedEncoding parameter!
The AbstractTruffleString.equals(Object)-method delegates to this method.
public static TruffleString.EqualNode create()
TruffleString.EqualNode.public static TruffleString.EqualNode getUncached()
TruffleString.EqualNode.