OnMessageClause

com.reactific.riddl.language.AST.OnMessageClause
case class OnMessageClause(loc: At, msg: MessageRef, from: Option[Reference[Definition]], statements: Seq[Statement], brief: Option[LiteralString], description: Option[Description]) extends OnClause

Defines the actions to be taken when a particular message is received by an entity. OnMessageClauses are used in the definition of a Handler with one for each kind of message that handler deals with.

Value parameters

brief

A brief description (one sentence) for use in documentation

description

An optional description of the on clause.

from

Optional message generating

loc

The location of the "on" clause

msg

A reference to the message type that is handled

statements

A set of statements that define the behavior when the msg is received.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait OnClause
trait Definition
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

def id: Identifier
override def isEmpty: Boolean

determine if this node is empty or not.

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

Attributes

Definition Classes
override def resolveNameTo(name: String): Option[Definition]

Attributes

Definition Classes

Inherited methods

def asVital[OPT <: OptionValue, DEF <: Definition]: VitalDefinition[OPT, DEF]

Attributes

Inherited from:
Definition

Attributes

Inherited from:
BrieflyDescribedValue
final def contents: Seq[Definition]

Attributes

Inherited from:
LeafDefinition

Attributes

Inherited from:
DescribedValue

Attributes

Inherited from:
Definition

Attributes

Inherited from:
BrieflyDescribedValue
override def hasDefinitions: Boolean

Attributes

Definition Classes
Inherited from:
Definition

Attributes

Inherited from:
DescribedValue

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition
override def isContainer: Boolean

Determine if this node is a container or not

Determine if this node is a container or not

Attributes

Definition Classes
Inherited from:
Container
override def isDefinition: Boolean

Attributes

Definition Classes
Inherited from:
Definition

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Container

Attributes

Inherited from:
Definition
final def nonEmpty: Boolean

Attributes

Inherited from:
RiddlNode

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

final val kind: String