Packages

case class Invariant(loc: At, id: Definitions.Identifier, expression: Option[Definitions.Condition] = None, brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None) extends LeafDefinition with EntityDefinition with ProjectionDefinition with StateDefinition with Product with Serializable

An invariant expression that can be used in the definition of an entity. Invariants provide conditional expressions that must be true at all times in the lifecycle of an entity.

loc

The location of the invariant definition

id

The name of the invariant

expression

The conditional expression that must always be true.

brief

A brief description (one sentence) for use in documentation

description

An optional description of the invariant.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Invariant
  2. Serializable
  3. Product
  4. Equals
  5. StateDefinition
  6. ProjectionDefinition
  7. EntityDefinition
  8. LeafDefinition
  9. Definition
  10. Container
  11. BrieflyDescribedValue
  12. DescribedValue
  13. RiddlValue
  14. RiddlNode
  15. AnyRef
  16. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Invariant(loc: At, id: Definitions.Identifier, expression: Option[Definitions.Condition] = None, brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None)

    loc

    The location of the invariant definition

    id

    The name of the invariant

    expression

    The conditional expression that must always be true.

    brief

    A brief description (one sentence) for use in documentation

    description

    An optional description of the invariant.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val brief: Option[Definitions.LiteralString]
    Definition Classes
    InvariantBrieflyDescribedValue
  6. def briefValue: String
    Definition Classes
    BrieflyDescribedValue
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. final def contents: Seq[Definitions.Definition]
    Definition Classes
    LeafDefinitionContainer
  9. val description: Option[Definitions.Description]
    Definition Classes
    InvariantDescribedValue
  10. def descriptionValue: String
    Definition Classes
    DescribedValue
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. val expression: Option[Definitions.Condition]
  13. def find(name: String): Option[Definitions.Definition]
    Definition Classes
    Definition
  14. def format: String

    Format the node to a string

    Format the node to a string

    Definition Classes
    InvariantRiddlNode
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def hasAuthors: Boolean
    Definition Classes
    Definition
  17. def hasOptions: Boolean
    Definition Classes
    Definition
  18. def hasTypes: Boolean
    Definition Classes
    Definition
  19. val id: Definitions.Identifier
    Definition Classes
    InvariantDefinition
  20. def identify: String
    Definition Classes
    Definition
  21. def identifyWithLoc: String
    Definition Classes
    Definition
  22. def isContainer: Boolean

    Determine if this node is a container or not

    Determine if this node is a container or not

    Definition Classes
    ContainerRiddlNode
  23. def isEmpty: Boolean

    determine if this node is empty or not.

    determine if this node is empty or not. Non-containers are always empty

    Definition Classes
    InvariantLeafDefinitionContainerRiddlNode
  24. def isImplicit: Boolean
    Definition Classes
    Definition
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def isRootContainer: Boolean
    Definition Classes
    Container
  27. def isVital: Boolean
    Definition Classes
    Definition
  28. final val kind: String
    Definition Classes
    InvariantDefinition
  29. val loc: At

    The location in the parse at which this RiddlValue occurs

    The location in the parse at which this RiddlValue occurs

    Definition Classes
    InvariantRiddlValue
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def nonEmpty: Boolean
    Definition Classes
    RiddlNode
    Annotations
    @deprecatedOverriding()
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  34. def productElementNames: Iterator[String]
    Definition Classes
    Product
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from EntityDefinition

Inherited from Definitions.Definition

Inherited from Definitions.RiddlValue

Inherited from Definitions.RiddlNode

Inherited from AnyRef

Inherited from Any

Ungrouped