class ExtensionManager extends Logger
An ExtensionManager maintains all language-specific extensions of MMT. This includes Compilers, QueryTransformers, and Foundations. They are provided as plugins and registered via their qualified class name, which is instantiated by reflection.
- Source
- ExtensionManager.scala
- Alphabetic
- By Inheritance
- ExtensionManager
- Logger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ExtensionManager(controller: Controller)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addDefaultExtensions: Unit
-
def
addExtension(ext: Extension, args: List[String] = Nil): Unit
initializes and adds an extension
-
def
addExtension(cls: String, args: List[String]): Extension
instantiates an extension, initializes it, and adds it
instantiates an extension, initializes it, and adds it
- cls
qualified class name (e.g., org.my.Extension), must be on the class path at run time
- args
arguments that will be passed when initializing the extension
-
def
addExtensionO(cls: String, args: List[String]): Option[Extension]
like addExtension but throws no errors
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cleanup: Unit
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get[E <: FormatBasedExtension](cls: Class[E], format: String): Option[E]
some extension of type E
-
def
get[E <: Extension](cls: Class[E]): List[E]
all extensions of type E
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOrAddExtension[E <: FormatBasedExtension](cls: Class[E], format: String, args: List[String] = Nil): Option[E]
like get, but if necessary looks up the key in the current MMTConfig
like get, but if necessary looks up the key in the current MMTConfig
- args
additional arguments for the extension (appended to those in configuration); ignored if extension has already been created
-
def
getOrAddExtensionOrExporter[E <: FormatBasedExtension](cls: Class[E], format: String): Option[E]
like getOrAddExtension, but also checks for a possible exporter key
-
def
getParserExtension(se: StructuralElement, keyword: String): Option[ParserExtension]
retrieves an applicable parser extension
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
log(e: Error): Unit
logs an error - always logged
logs an error - always logged
- Attributes
- protected
- Definition Classes
- Logger
-
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
-
def
logError(s: ⇒ String): Unit
log as an error message
log as an error message
- Attributes
- protected
- Definition Classes
- Logger
-
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
-
val
logPrefix: String
- Definition Classes
- ExtensionManager → Logger
-
def
logTemp(s: ⇒ String): Unit
temporary logging - always logged
temporary logging - always logged
- Attributes
- protected
- Definition Classes
- Logger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
removeExtension(ext: Extension): Unit
remove an extension (must have been stopped already)
-
val
report: Report
- Definition Classes
- ExtensionManager → Logger
- def stringDescription: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()