Enumeration

com.reactific.riddl.language.AST.Enumeration
case class Enumeration(loc: At, enumerators: Seq[Enumerator]) extends IntegerTypeExpression

A type expression that defines its range of possible values as being one value from a set of enumerated values.

Value parameters

enumerators

The set of enumerators from which the value of this enumeration may be chosen.

loc

The location of the enumeration type expression

Attributes

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

Definition Classes
Inherited from:
NumericType

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