Package com.oracle.truffle.api.strings
Class TruffleString.GetCodeRangeNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.GetCodeRangeNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to get a string's precise
TruffleString.CodeRange
.- Since:
- 22.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
Node.Child, Node.Children
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a newTruffleString.GetCodeRangeNode
.abstract TruffleString.CodeRange
execute
(AbstractTruffleString a, TruffleString.Encoding expectedEncoding) Get the string's preciseTruffleString.CodeRange
.Get the uncached version ofTruffleString.GetCodeRangeNode
.Methods inherited from class com.oracle.truffle.api.nodes.Node
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
-
Method Details
-
execute
public abstract TruffleString.CodeRange execute(AbstractTruffleString a, TruffleString.Encoding expectedEncoding) Get the string's preciseTruffleString.CodeRange
. This operation will cause a full string scan if the precise code range is currently unknown.- Since:
- 22.1
-
create
Create a newTruffleString.GetCodeRangeNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.GetCodeRangeNode
.- Since:
- 22.1
-