SimpleValue

esmeta.state.SimpleValue
sealed trait SimpleValue extends Value

simple values

Simple values are ECMAScript values except objects and symbols. ECMAScript objects and symbols need to be stored in a heap.

Attributes

Graph
Supertypes
trait Value
trait StateElem
class Object
trait Matchable
class Any
Known subtypes
class Bool
object Null
trait Numeric
class BigInt
class Number
class Str
object Undef
Show all

Members list

Value members

Inherited methods

def asAddr: Addr

Attributes

Inherited from:
Value
def asAst: Ast

Attributes

Inherited from:
Value
def asBool: Boolean

Attributes

Inherited from:
Value

Attributes

Inherited from:
Value

Attributes

Inherited from:
Value
def asInt: Int

Attributes

Inherited from:
Value
def asList(st: State): ListObj

Attributes

Inherited from:
Value
def asMath: BigDecimal

Attributes

Inherited from:
Value
def asStr: String

check if the value is an expected type

check if the value is an expected type

Attributes

Inherited from:
Value
def toString(detail: Boolean, location: Boolean): String

stringify with options

stringify with options

Attributes

Inherited from:
StateElem
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
StateElem -> Any
Inherited from:
StateElem