Package com.oracle.truffle.api.strings
Class TruffleString.GetByteCodeRangeNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.GetByteCodeRangeNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to get a string's "byte-based"
TruffleString.CodeRange
. See
execute(AbstractTruffleString, TruffleString.Encoding)
for details.- Since:
- 22.1
-
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.GetByteCodeRangeNode
.abstract TruffleString.CodeRange
execute
(AbstractTruffleString a, TruffleString.Encoding expectedEncoding) Get the string's "byte-based"TruffleString.CodeRange
.Get the uncached version ofTruffleString.GetByteCodeRangeNode
.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 "byte-based"TruffleString.CodeRange
. This differs fromTruffleString.GetCodeRangeNode
in the following way:- A string is only considered to be in the
TruffleString.CodeRange.ASCII
code range if its encoding is byte-based, soTruffleString.Encoding.UTF_16
andTruffleString.Encoding.UTF_32
cannot beTruffleString.CodeRange.ASCII
. TruffleString.CodeRange.LATIN_1
andTruffleString.CodeRange.BMP
are mapped toTruffleString.CodeRange.VALID
.
TruffleString.CodeRange.ASCII
,TruffleString.CodeRange.VALID
orTruffleString.CodeRange.BROKEN
.- Since:
- 22.1
- A string is only considered to be in the
-
create
Create a newTruffleString.GetByteCodeRangeNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.GetByteCodeRangeNode
.- Since:
- 22.1
-