class Console[T <: Project] extends ScriptManager

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Console
  2. ScriptManager
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Console(executor: AmmoniteExecutor, loader: WorkspaceLoader[T])

Type Members

  1. implicit class ItExtend[X] extends AnyRef
  2. implicit class CpgScriptRunner extends AnyRef
    Definition Classes
    ScriptManager

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 _runAnalyzer(overlayCreators: LayerCreator*): Cpg
  5. def applyDefaultOverlays(cpg: Cpg): Cpg
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def close: Option[Project]
  9. def close(name: String): Option[Project]
  10. def config: ConsoleConfig
  11. def console: Console[T]
  12. implicit def cpg: Cpg
  13. def cpgs: Iterator[Cpg]

    All cpgs loaded in the workspace

  14. def defaultProjectNameIfEmpty(name: String): Option[String]
    Attributes
    protected
  15. def delete: Option[Unit]

    Delete the active project

  16. def delete(name: String): Option[Unit]

    Delete project from disk and remove it from the workspace manager.

    Delete project from disk and remove it from the workspace manager. Returns the (now invalid) project.

    name

    the name of the project

    Annotations
    @Doc("Close and remove project from disk", "", "delete(projectName)")
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. def fixProjectNameAndComplainOnFix(name: String): String
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def importCode: ImportCode[T]
    Annotations
    @Doc("Create new project from code", """ |importCode(<inputPath>, [projectName], [namespaces], [language]) | |Type `importCode` alone to get a list of all supported languages | |Import code at `inputPath`. Creates a new project, generates a CPG, |and opens the project. Upon success, the CPG can be queried via the `cpg` |object. Default overlays are already applied to the newly created CPG. |Returns new CPG and ensures that `cpg` now refers to this new CPG. | |By default, `importCode` attempts to guess the source language of |the code you provide. You can also specify the source language |manually, by running `importCode.<language>`. For example, `importCode.c` |runs the C/C++ frontend. | |Type `importCode` alone to get an overview of all available language modules. | |Parameters: | |----------- | |inputPath: location on disk of the code to analyze. e.g., a directory |containing source code or a Java archive (JAR). | |projectName: a unique name used for project management. If this parameter |is omitted, the name will be derived from `inputPath` | |namespaces: the whitelist of namespaces to analyse. Specifying this |parameter is only effective if the language frontend supports it. |If the list is omitted or empty, namespace selection is performed |automatically via heuristics. | |language: the programming language which the code at `inputPath` is written in. |If `language` is empty, the language used is guessed by inspecting |the filename found and possibly by looking into the file/directory. | |""".stripMargin, """importCode("example.jar")""")
  24. def importCpg(inputPath: String, projectName: String = ""): Option[Cpg]
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def open: Option[Project]

    Open the active project

  30. def open(name: String): Option[Project]
  31. def project: T
    Annotations
    @Doc("Currently active project", "", "project")
  32. def reload(name: String): Option[Project]

    Close the project and open it again.

    Close the project and open it again.

    name

    the name of the project

  33. def report(string: String): Unit
  34. def runCreator(creator: LayerCreator, overlayDirName: Option[String]): Unit
    Attributes
    protected
  35. def runScript(scriptName: String, parameters: Map[String, String], cpg: Cpg): Any
    Definition Classes
    ScriptManager
  36. def runScript(scriptName: String, parameters: Map[String, String], cpgFileName: String): Any
    Definition Classes
    ScriptManager
  37. def save: List[Project]
  38. def scripts(): List[ScriptCollections]
    Definition Classes
    ScriptManager
  39. def switchWorkspace(pathName: String): Unit
  40. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. def undo: File
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  46. def withScriptFile[T](scriptName: String)(f: (File) => IO[T]): IO[T]
    Attributes
    protected
    Definition Classes
    ScriptManager
  47. def workspace: WorkspaceManager[T]
  48. var workspaceManager: WorkspaceManager[T]
    Attributes
    protected
  49. def workspacePathName: String
    Attributes
    protected
  50. implicit object ConsoleImageViewer extends ImageViewer

Inherited from ScriptManager

Inherited from AnyRef

Inherited from Any

Ungrouped