SpecificRange

com.reactific.riddl.language.AST.SpecificRange
case class SpecificRange(loc: At, typeExp: TypeExpression, min: Long, max: Long) extends Cardinality

A cardinality type expression that indicates another type expression as having a specific range of instances

Value parameters

loc

The location of the one-or-more cardinality

max

The maximum number of items

min

The minimum number of items

typeExp

The type expression that is indicated with a cardinality of one or more.

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