Cardinality

com.reactific.riddl.language.AST.Cardinality
sealed trait Cardinality extends TypeExpression

Base trait of the cardinality type expressions

Attributes

Graph
Supertypes
trait RiddlValue
trait RiddlNode
class Object
trait Matchable
class Any
Show all
Known subtypes
class OneOrMore
class Optional
class ZeroOrMore

Members list

Value members

Abstract methods

Concrete methods

final override def hasCardinality: Boolean

Attributes

Definition Classes

Inherited methods

def format: String

Format the node to a string

Format the node to a string

Attributes

Inherited from:
RiddlNode

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
def loc: At

The location in the parse at which this RiddlValue occurs

The location in the parse at which this RiddlValue occurs

Attributes

Inherited from:
RiddlValue
final def nonEmpty: Boolean

Attributes

Inherited from:
RiddlNode