trait AmmoniteExecutor extends AnyRef
Provides an interface for the execution of scripts using the Ammonite interpreter.
All scripts are compiled in-memory and no caching is performed.
- Alphabetic
- By Inheritance
- AmmoniteExecutor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def predef: String
- Attributes
- protected
Concrete 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
- lazy val ammoniteMain: Main
- Attributes
- protected
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 runQuery(query: String, cpg: Cpg): IO[Any]
Runs a query against the provided CPG.
Runs a query against the provided CPG.
- query
The query to run against the CPG.
- cpg
The CPG made implicitly available in the query
- returns
The result of running the query.
- def runScript(scriptPath: Path, parameters: Map[String, String], cpg: Cpg): IO[Any]
Runs the given script, passing any defined parameters in addition to bringing a cpg into scope.
Runs the given script, passing any defined parameters in addition to bringing a cpg into scope.
- scriptPath
A path pointing to the Ammonite script to be executed.
- parameters
A map of parameters to be passed to the script, useful if you have a @main method in the script.
- cpg
A CPG that is made implicitly available in the script.
- returns
The result of running the script.
- def runScript(scriptPath: Path, parameters: Map[String, String], bindings: IndexedSeq[Bind[_]]): IO[Any]
Runs the given script, passing any defined parameters in addition to bringing the provided variable bindings into scope.
Runs the given script, passing any defined parameters in addition to bringing the provided variable bindings into scope.
- scriptPath
A path pointing to the Ammonite script to be executed.
- parameters
A map of parameters to be passed to the script, useful if you have a @main method in the script.
- bindings
A list of variable bindings made implicitly available to scripts.
- returns
The result of running the script.
- def runScripts(scriptPaths: List[Path], parameters: Map[Path, Map[String, String]], cpg: Cpg): IO[Any]
Runs multiple scripts in the order they are specified in
scriptPaths
.Runs multiple scripts in the order they are specified in
scriptPaths
.- scriptPaths
A list of paths pointing to Ammonite scripts to be executed.
- parameters
A map from script path to a set of parameter key/values. If no entry is found for a script, an empty set of params will be passed to the interpreter.
- cpg
A CPG that is made implicitly available in the scripts.
- returns
A list containing the results of running each script, in order.
- def runScripts(scriptPaths: List[Path], parameters: Map[Path, Map[String, String]], bindings: IndexedSeq[Bind[_]]): IO[List[Any]]
Runs multiple scripts in the order they are specified in
scriptPaths
.Runs multiple scripts in the order they are specified in
scriptPaths
.- scriptPaths
A list of paths pointing to Ammonite scripts to be executed.
- parameters
A map from script path to a set of parameter key/values. If no entry is found for a script, an empty set of params will be passed to the interpreter.
- bindings
A list of variable bindings made implicitly available to scripts.
- returns
A list containing the results of running each script, in order.
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()