Optional

com.reactific.riddl.language.AST.Optional
case class Optional(loc: At, typeExp: TypeExpression) extends Cardinality

A cardinality type expression that indicates another type expression as being optional; that is with a cardinality of 0 or 1.

Value parameters

loc

The location of the optional cardinality

typeExp

The type expression that is indicated as optional

Attributes

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

final override def hasCardinality: Boolean

Attributes

Definition Classes
Inherited from:
Cardinality

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