Package com.oracle.truffle.api.strings
Class TruffleString.GetStringCompactionLevelNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.GetStringCompactionLevelNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to get a string's
TruffleString.CompactionLevel
.- Since:
- 23.0
-
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.GetStringCompactionLevelNode
.abstract TruffleString.CompactionLevel
execute
(AbstractTruffleString a, TruffleString.Encoding expectedEncoding) Get the string'sTruffleString.CompactionLevel
.Get the uncached version ofTruffleString.GetStringCompactionLevelNode
.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, reportReplace, toString
-
Method Details
-
execute
public abstract TruffleString.CompactionLevel execute(AbstractTruffleString a, TruffleString.Encoding expectedEncoding) Get the string'sTruffleString.CompactionLevel
. Since string compaction is only supported onTruffleString.Encoding.UTF_16
andTruffleString.Encoding.UTF_32
, this node will returnTruffleString.CompactionLevel.S1
on all other encodings.- Since:
- 23.0
-
create
Create a newTruffleString.GetStringCompactionLevelNode
.- Since:
- 23.0
-
getUncached
Get the uncached version ofTruffleString.GetStringCompactionLevelNode
.- Since:
- 23.0
-