| Constructor and Description |
|---|
ReachabilityAnalyzer(com.sap.psr.vulas.goals.GoalContext _ctx)
Constructor for ReachabilityAnalyzer.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAppClasspath()
getAppClasspath.
|
Callgraph |
getCallgraph()
Getter for the field
callgraph. |
org.apache.commons.configuration.Configuration |
getConfiguration()
Returns a human-readable description of the constructor's specific configuration.
|
long |
getConstructionTime()
Returns the time required for building the call graph (in nanoseconds), or -1 if the construction did not finish.
|
String |
getDependencyClasspath()
getDependencyClasspath.
|
int |
getEdgeCount()
Returns the number of edges in constructed call graph (or -1 if the call graph has not been constructed).
|
int |
getNodeCount()
Returns the number of nodes in the constructed call graph (or -1 if the call graph has not been constructed).
|
Map<String,Long> |
getStatistics()
getStatistics.
|
void |
run()
Given the bugid and callgraph constructor framework, do the reachability analysis from callgraph construction to callgraph computation
|
void |
setAppClasspaths(Set<Path> _paths)
Sets the directories where to find compiled application classes.
|
void |
setAppConstructs(Set<com.sap.psr.vulas.shared.json.model.ConstructId> _constructs)
Sets the application constructs.
|
void |
setCallgraphConstructor(String analysisFramework,
boolean _is_cli)
setCallgraphConstructor.
|
void |
setDependencyClasspaths(Set<Path> _paths)
Sets the directories where to find the classes of application dependencies.
|
void |
setEntryPoints(Set<com.sap.psr.vulas.shared.json.model.ConstructId> _constructs,
com.sap.psr.vulas.shared.enums.PathSource _source,
boolean _throw_exception)
Sets the entry points that will be used as a starting point for the call graph construction.
|
void |
setExcludePackages(String _packages)
setExcludePackages.
|
void |
setTargetConstructs(Map<String,Set<com.sap.psr.vulas.shared.json.model.ConstructId>> _target_constructs)
Setter for the field
targetConstructs. |
void |
setTargetConstructs(String _filter)
Sets the change list elements of the given bug(s) as target constructs.
|
static boolean |
startAnalysis(ReachabilityAnalyzer _ra,
long _timeout_ms)
startAnalysis.
|
void |
upload()
Uploads reachable constructs and touch points to the backend.
|
void |
uploadBug(String _bugid,
List<List<com.sap.psr.vulas.shared.json.model.ConstructId>> _paths)
Uploads paths for the given bug to the backend.
|
public ReachabilityAnalyzer(com.sap.psr.vulas.goals.GoalContext _ctx)
Constructor for ReachabilityAnalyzer.
_ctx - a GoalContext object.public Callgraph getCallgraph()
Getter for the field callgraph.
Callgraph object.public void setAppClasspaths(Set<Path> _paths)
_paths - a Set object.public void setDependencyClasspaths(Set<Path> _paths)
_paths - a Set object.public String getDependencyClasspath()
getDependencyClasspath.
String object.public void setAppConstructs(Set<com.sap.psr.vulas.shared.json.model.ConstructId> _constructs)
_constructs - a Set object.public void setEntryPoints(Set<com.sap.psr.vulas.shared.json.model.ConstructId> _constructs, com.sap.psr.vulas.shared.enums.PathSource _source, boolean _throw_exception)
GoalType._constructs - a Set object._source - a PathSource object._throw_exception - a boolean.public void setExcludePackages(String _packages)
setExcludePackages.
_packages - a String object.public void setTargetConstructs(String _filter)
BackendConnector.getAppBugs(GoalContext, Application))._filter - Comma-separated list of bug identifierspublic void setTargetConstructs(Map<String,Set<com.sap.psr.vulas.shared.json.model.ConstructId>> _target_constructs)
Setter for the field targetConstructs.
_target_constructs - a Map object.public void setCallgraphConstructor(String analysisFramework, boolean _is_cli)
setCallgraphConstructor.
analysisFramework - a String object._is_cli - a boolean.public void run()
public long getConstructionTime()
public org.apache.commons.configuration.Configuration getConfiguration()
Configuration object.public int getNodeCount()
getEdgeCount()public int getEdgeCount()
getNodeCount()public static boolean startAnalysis(ReachabilityAnalyzer _ra, long _timeout_ms) throws InterruptedException
startAnalysis.
_ra - a ReachabilityAnalyzer object._timeout_ms - timeout in milliseconds (no timeout if negative or 0)InterruptedExceptionpublic void uploadBug(String _bugid, List<List<com.sap.psr.vulas.shared.json.model.ConstructId>> _paths)
public void upload()
Copyright © 2018–2020. All rights reserved.