Packages

c

info.kwarc.mmt.api

MutableRuleSet

class MutableRuleSet extends RuleSet

standard implementation of using set of rules hashed by their head

Source
Rule.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MutableRuleSet
  2. RuleSet
  3. Rule
  4. SemanticObject
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MutableRuleSet()

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. def add(r: Rule*): Unit
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def declares(rs: Rule*): Unit
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def filter(include: (Rule) ⇒ Boolean): RuleSet

    filters this set by a predicate

    filters this set by a predicate

    Definition Classes
    RuleSet
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def get[R <: Rule](cls: Class[R]): Iterable[R]

    get all rules of a certain type

    get all rules of a certain type

    Definition Classes
    RuleSet
  13. def getAll: HashSet[Rule]

    the underlying set of rules

    the underlying set of rules

    Definition Classes
    MutableRuleSetRuleSet
  14. def getByHead[R <: CheckingRule](cls: Class[R], head: ContentPath): Iterable[R]

    get all rules a certain type with a certain head

    get all rules a certain type with a certain head

    Definition Classes
    RuleSet
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getFirst[R <: CheckingRule](cls: Class[R], head: ContentPath): Option[R]

    get the first rule of a certain type with a certain head

    get the first rule of a certain type with a certain head

    Definition Classes
    RuleSet
  17. def getOrdered[R <: Rule](cls: Class[R]): List[R]

    like get but ordered by descending priority

    like get but ordered by descending priority

    Definition Classes
    RuleSet
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def imports(rss: RuleSet*): Unit
  20. def init: Unit

    errors in Java initializers are hard to debug; therefore, objects should put initialization code here, which will be called by MMT empty by default, may throw errors

    errors in Java initializers are hard to debug; therefore, objects should put initialization code here, which will be called by MMT empty by default, may throw errors

    Definition Classes
    SemanticObject
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. lazy val mpath: MPath

    the MMT URI of this object, derived from its Scala name: scala://package?name

    the MMT URI of this object, derived from its Scala name: scala://package?name

    Definition Classes
    SemanticObject
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def priority: Int

    when multiple rules are applicable, rules with higher priorities are preferred

    when multiple rules are applicable, rules with higher priorities are preferred

    creating a new rule with higher priority can be used to effectively drop imported rules

    Definition Classes
    Rule
  27. def providedRules: List[Rule]

    by making this a rule, MMT theories can add entire rule sets at once

    by making this a rule, MMT theories can add entire rule sets at once

    Definition Classes
    RuleSetRule
  28. def shadow(rs: Rule*): Unit
  29. def shadowedRules: List[Rule]

    normally the empty list; but rules may list rules here that should be removed from the context this can be used to override imported rules

    normally the empty list; but rules may list rules here that should be removed from the context this can be used to override imported rules

    Definition Classes
    Rule
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    RuleSetRule → AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from RuleSet

Inherited from Rule

Inherited from SemanticObject

Inherited from AnyRef

Inherited from Any

Ungrouped