BecomeStatement

com.reactific.riddl.language.AST.BecomeStatement
case class BecomeStatement(loc: At, entity: EntityRef, handler: HandlerRef) extends Statement

An action that changes the behavior of an entity by making it use a new handler for its messages; named for the "become" operation in Akka that does the same for an user.

Value parameters

entity

The entity whose behavior is to change

handler

The reference to the new handler for the entity

loc

The location in the source of the become action

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Statement
trait RiddlValue
trait RiddlNode
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def format: String

Format the node to a string

Format the node to a string

Attributes

override def kind: String

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
RiddlNode

Determine if this node is a container or not

Determine if this node is a container or not

Attributes

Inherited from:
RiddlNode

Attributes

Inherited from:
RiddlNode

determine if this node is empty or not.

determine if this node is empty or not. Non-containers are always empty

Attributes

Inherited from:
RiddlNode
final def nonEmpty: Boolean

Attributes

Inherited from:
RiddlNode

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product