class Console[T <: Project] extends ScriptManager
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Console
- ScriptManager
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Console(executor: AmmoniteExecutor, loader: WorkspaceLoader[T])
Type Members
- implicit class ItExtend[X] extends AnyRef
- implicit class CpgScriptRunner extends AnyRef
- Definition Classes
- ScriptManager
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 _runAnalyzer(overlayCreators: LayerCreator*): Cpg
- def applyDefaultOverlays(cpg: Cpg): Cpg
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close: Option[Project]
- def close(name: String): Option[Project]
- Annotations
- @Doc("Close project by name", """|Close project. Resources are freed but the project remains on disk. |The project remains active, that is, calling `cpg` now raises an |exception. A different project can now be activated using `open`. |""".stripMargin, "close(projectName)")
- def config: ConsoleConfig
- def console: Console[T]
- implicit def cpg: Cpg
- def cpgs: Iterator[Cpg]
All cpgs loaded in the workspace
- def defaultProjectNameIfEmpty(name: String): Option[String]
- Attributes
- protected
- def delete: Option[Unit]
Delete the active project
- 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)")
- 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])
- def fixProjectNameAndComplainOnFix(name: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def importCode: ImportCode[T]
- def importCpg(inputPath: String, projectName: String = ""): Option[Cpg]
- Annotations
- @Doc("Create new project from existing CPG", """ |importCpg(<inputPath>, [projectName]) | |Import an existing CPG. The CPG is stored as part |of a new project and blanks are filled in by analyzing the CPG. |If we find that default overlays have not been applied, these |are applied to the CPG after loading it. | |Parameters: | |inputPath: path where the existing CPG (in overflowdb format) |is stored | |projectName: name of the new project. If this parameter |is omitted, the path is derived from `inputPath` |""".stripMargin, """importCpg("cpg.bin.zip")""")
- 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 open: Option[Project]
Open the active project
- def open(name: String): Option[Project]
- Annotations
- @Doc("Open project", """ |open([projectName]) | |Opens the project named `name` and make it the active project. |If `name` is not provided, the active project is opened. If `name` |is a path, the project name is derived from and a deprecation |warning is printed. | |Upon completion of this operation, the CPG stored in this project |can be queried via `cpg`. Returns an optional reference to the |project, which is empty on error. |""".stripMargin, """open("projectName")""")
- def project: T
- Annotations
- @Doc("Currently active project", "", "project")
- 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
- def report(string: String): Unit
- def runCreator(creator: LayerCreator, overlayDirName: Option[String]): Unit
- Attributes
- protected
- def runScript(scriptName: String, parameters: Map[String, String], cpg: Cpg): Any
- Definition Classes
- ScriptManager
- def runScript(scriptName: String, parameters: Map[String, String], cpgFileName: String): Any
- Definition Classes
- ScriptManager
- def save: List[Project]
- Annotations
- @Doc("Write all changes to disk", """ |Close and reopen all loaded CPGs. This ensures |that changes have been flushed to disk. | |Returns list of affected projects |""".stripMargin, "save")
- def scripts(): List[ScriptCollections]
- Definition Classes
- ScriptManager
- def switchWorkspace(pathName: String): Unit
- Annotations
- @Doc("Close current workspace and open a different one", """ | By default, the workspace in $INSTALL_DIR/workspace is used. | This method allows specifying a different workspace directory | via the `pathName` parameter. | Before changing the workspace, the current workspace will be | closed, saving any unsaved changes. | If `pathName` points to a non-existing directory, then a new | workspace is first created. |""".stripMargin, help.this.Doc.<init>$default$3)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def undo: File
- Annotations
- @Doc("undo effects of analyzer", """|Undo the last change, that is, unapply the last |overlay applied to the active project. |""".stripMargin, "undo")
- 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()
- def withScriptFile[T](scriptName: String)(f: (File) => IO[T]): IO[T]
- Attributes
- protected
- Definition Classes
- ScriptManager
- def workspace: WorkspaceManager[T]
- var workspaceManager: WorkspaceManager[T]
- Attributes
- protected
- def workspacePathName: String
- Attributes
- protected
- implicit object ConsoleImageViewer extends ImageViewer