final case class WasmSubstring(string: Tree, start: Tree, optEnd: Option[Tree]) extends Value with Product with Serializable
Wasm intrinsic for jl.String.substring
.
Typing rules: string
must be a jl.String
; start
and optEnd
must
be int
s. The result is a string
.
Evaluation semantics are as follows:
- Let
stringV
be the result of evaluatingstring
. If it isnull
, throw an NPE (subject to UB). 2. LetstartV
be the result of evaluatingstart
. 3. IfoptEnd
is empty, letendV
bestringV.length
. Otherwise, letendV
be the result of evaluatingoptEnd
. 4. IfstartV < 0
,endV < startV
orendV > stringV.length
, throw aStringIndexOutOfBoundsException
(subject to UB). 5. Return the substring ofstringV
in the range[startV, endV)
.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WasmSubstring
- Serializable
- Serializable
- Product
- Equals
- Value
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val optEnd: Option[Tree]
-
def
printIR(out: IRTreePrinter): Unit
- Definition Classes
- WasmSubstring → Value
- val start: Tree
- val string: Tree
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
tpe: Type
- Definition Classes
- WasmSubstring → Value
-
def
transform(transformer: Transformer, isStat: Boolean)(implicit pos: Position): Tree
- Definition Classes
- WasmSubstring → Value
-
def
traverse(traverser: Traverser): Unit
- Definition Classes
- WasmSubstring → Value
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()