Packages

t

io.shiftleft.console.scripting

AmmoniteExecutor

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.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AmmoniteExecutor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def predef: String
    Attributes
    protected

Concrete 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. lazy val ammoniteMain: Main
    Attributes
    protected
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. 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.

  17. 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.

  18. 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.

  19. 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.

  20. 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.

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped