Packages

c

info.kwarc.mmt.api.uom

TermTransformer

class TermTransformer extends StatelessTraverser with Logger

exhaustively applies TermTransformationRules

will not traverse the same term multiple times if called multiple times

preserves structure sharing

Source
TermTransformer.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TermTransformer
  2. Logger
  3. StatelessTraverser
  4. Traverser
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TermTransformer(id: String, controller: Controller, rules: RuleSet, use: (TermTransformationRule) ⇒ Boolean)

Type Members

  1. type State = Unit
    Attributes
    protected
    Definition Classes
    Traverser

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 apply(t: Term, con: Context): Term
    Definition Classes
    StatelessTraverser
  5. def apply(t: Term, init: State, con: Context = Context()): Term

    the main method to call the traverser, context defaults to empty

    the main method to call the traverser, context defaults to empty

    Definition Classes
    Traverser
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def compose(that: Traverser[Unit]): Traverser[Unit]

    diagrammatic composition (first this, then that)

    diagrammatic composition (first this, then that)

    Definition Classes
    Traverser
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def log(e: Error): Unit

    logs an error - always logged

    logs an error - always logged

    Attributes
    protected
    Definition Classes
    Logger
  16. def log(s: ⇒ String, subgroup: Option[String] = None): Unit

    logs a message with this logger's logprefix

    logs a message with this logger's logprefix

    Attributes
    protected
    Definition Classes
    Logger
  17. def logError(s: ⇒ String): Unit

    log as an error message

    log as an error message

    Attributes
    protected
    Definition Classes
    Logger
  18. def logGroup[A](a: ⇒ A): A

    wraps around a group to create nested logging

    wraps around a group to create nested logging

    Attributes
    protected
    Definition Classes
    Logger
  19. val logPrefix: String
    Definition Classes
    TermTransformerLogger
  20. def logTemp(s: ⇒ String): Unit

    temporary logging - always logged

    temporary logging - always logged

    Attributes
    protected
    Definition Classes
    Logger
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val report: Report
    Definition Classes
    TermTransformerLogger
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def toTranslator(): UniformTranslator
    Definition Classes
    StatelessTraverser
  28. def toTranslator(newInit: () ⇒ Unit): UniformTranslator

    this traverser as a translator

    this traverser as a translator

    newInit

    creates a fresh initial state

    Definition Classes
    Traverser
  29. def traverse(t: Term)(implicit con: Context, state: Unit): Term
    Definition Classes
    TermTransformerTraverser
  30. def traverseContext(cont: Context)(implicit con: Context, state: State): Context
    Definition Classes
    Traverser
  31. def traverseObject(obj: Obj)(implicit con: Context, state: State): ThisType

    traverses any object by mapping all the terms in it

    traverses any object by mapping all the terms in it

    Definition Classes
    Traverser
  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 Logger

Inherited from StatelessTraverser

Inherited from Traverser[Unit]

Inherited from AnyRef

Inherited from Any

Ungrouped