Plugin

dotty.tools.dotc.plugins.Plugin
See thePlugin companion trait
object Plugin

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Plugin.type

Members list

Type members

Types

type AnyClass = Class[_]

Value members

Concrete methods

def instantiate(clazz: AnyClass): Plugin

Instantiate a plugin class, given the class and the compiler it is to be used in.

Instantiate a plugin class, given the class and the compiler it is to be used in.

Attributes

def load(classname: String, loader: ClassLoader): Try[AnyClass]

Use a class loader to load the plugin class.

Use a class loader to load the plugin class.

Attributes

def loadAllFrom(paths: List[List[Path]], dirs: List[Path], ignoring: List[String]): List[Try[Plugin]]

Load all plugins specified by the arguments. Each location of paths must be a valid plugin archive or exploded archive. Each of paths must define one plugin. Each of dirs may be a directory containing arbitrary plugin archives. Skips all plugins named in ignoring. A classloader is created to load each plugin.

Load all plugins specified by the arguments. Each location of paths must be a valid plugin archive or exploded archive. Each of paths must define one plugin. Each of dirs may be a directory containing arbitrary plugin archives. Skips all plugins named in ignoring. A classloader is created to load each plugin.

Attributes