WorkspaceManager: a component, which loads and maintains the list of projects made accessible via Ocular/Joern.
Value parameters
- path
-
path to to workspace.
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Free up resources occupied by this project but do not remove project from disk.
Free up resources occupied by this project but do not remove project from disk.
Attributes
Obtain the cpg that was last loaded. Throws a runtime exception if no CPG has been loaded.
Obtain the cpg that was last loaded. Throws a runtime exception if no CPG has been loaded.
Attributes
Indicates whether a base CPG exists for @inputPath.
Indicates whether a base CPG exists for @inputPath.
Attributes
Create project for code stored at inputPath
with the project name name
. If name
is empty, the project name is derived from inputPath
. If a project for this name
already exists, it is deleted from the workspace first. If no file or directory exists at inputPath
, then no project is created. Returns the path to the project directory as an optional String, and None if there was an error.
Create project for code stored at inputPath
with the project name name
. If name
is empty, the project name is derived from inputPath
. If a project for this name
already exists, it is deleted from the workspace first. If no file or directory exists at inputPath
, then no project is created. Returns the path to the project directory as an optional String, and None if there was an error.
Attributes
Remove currently active project from workspace and delete all associated workspace files from disk.
Remove currently active project from workspace and delete all associated workspace files from disk.
Attributes
Remove project with name name
from workspace and delete all associated workspace files from disk.
Remove project with name name
from workspace and delete all associated workspace files from disk.
Value parameters
- name
-
the name of the project that should be removed
Attributes
Retrieve the currently active project. If no project is active, None is returned.
Retrieve the currently active project. If no project is active, None is returned.
Attributes
A sorted list of all loaded CPGs
A sorted list of all loaded CPGs
Attributes
Return the number of projects currently present in this workspace.
Return the number of projects currently present in this workspace.
Attributes
Open project by name and return it. If a project with this name does not exist, None is returned. If the CPG of this project is loaded, it is unloaded first and then reloaded. Returns project or None on error.
Open project by name and return it. If a project with this name does not exist, None is returned. If the CPG of this project is loaded, it is unloaded first and then reloaded. Returns project or None on error.
Value parameters
- loader
-
function to perform CPG loading. This parameter only exists for testing purposes.
- name
-
of the project to load
Attributes
Overlay directory for CPG with given @inputPath
Overlay directory for CPG with given @inputPath
Attributes
Workspace record for the CPG, or none, if the CPG is not in the workspace
Workspace record for the CPG, or none, if the CPG is not in the workspace
Attributes
Indicates whether a workspace record exists for @inputPath.
Indicates whether a workspace record exists for @inputPath.
Attributes
Remove project named name
from disk
Remove project named name
from disk
Value parameters
- name
-
name of the project
Attributes
Delete the workspace from disk, then initialize it again.
Delete the workspace from disk, then initialize it again.
Attributes
Set active project to project with name name
. If a project with this name does not exist, does nothing.
Set active project to project with name name
. If a project with this name does not exist, does nothing.
Attributes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
Deprecated methods
Attributes
- Deprecated
- true
Attributes
- Deprecated
- true
Inherited methods
Attributes
- Inherited from:
- Reporting