Alternation

com.reactific.riddl.language.AST.Alternation
case class Alternation(loc: At, of: Seq[AliasedTypeExpression]) extends TypeExpression

A type expression that that defines its range of possible values as being any one of the possible values from a set of other type expressions.

Value parameters

loc

The location of the alternation type expression

of

The set of type expressions from which the value for this alternation may be chosen

Attributes

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

Members list

Value members

Concrete methods

override def format: String

Format the node to a string

Format the node to a string

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
TypeExpression

Attributes

Inherited from:
RiddlNode

Attributes

Inherited from:
TypeExpression

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