Trait

scroll.internal.support

RoleConstraints

Related Doc: package support

Permalink

trait RoleConstraints extends AnyRef

Allows to add and check role constraints (Riehle constraints) to a compartment instance.

Self Type
Compartment
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RoleConstraints
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def RoleConstraintsChecked(func: ⇒ Unit): Unit

    Permalink

    Wrapping function that checks all available role constraints for all core objects and its roles after the given function was executed.

    Wrapping function that checks all available role constraints for all core objects and its roles after the given function was executed. Throws a RuntimeException if a role constraint is violated!

    func

    the function to execute and check role constraints afterwards

  5. def RoleEquivalence[A, B]()(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[A], arg1: scala.reflect.api.JavaUniverse.WeakTypeTag[B]): Unit

    Permalink

    Adds an role equivalent constraint between the given role types.

    Adds an role equivalent constraint between the given role types. Interpretation: if a core object plays an instance of role type A it also has to play an instance of role type B and visa versa.

    A

    type of role A that should be played implicitly if B is played

    B

    type of role B that should be played implicitly if A is played

  6. def RoleImplication[A, B]()(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[A], arg1: scala.reflect.api.JavaUniverse.WeakTypeTag[B]): Unit

    Permalink

    Adds an role implication constraint between the given role types.

    Adds an role implication constraint between the given role types. Interpretation: if a core object plays an instance of role type A it also has to play an instance of role type B.

    A

    type of role A

    B

    type of role B that should be played implicitly if A is played

  7. def RoleProhibition[A, B]()(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[A], arg1: scala.reflect.api.JavaUniverse.WeakTypeTag[B]): Unit

    Permalink

    Adds an role prohibition constraint between the given role types.

    Adds an role prohibition constraint between the given role types. Interpretation: if a core object plays an instance of role type A it is not allowed to play B as well.

    A

    type of role A

    B

    type of role B that is not allowed to be played if A is played already

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped