public interface ICallgraphConstructor
Constructs of an application, or all Constructs that have been traced during tests.| Modifier and Type | Method and Description |
|---|---|
void |
buildCallgraph(boolean _policy)
Builds the call graph.
|
com.ibm.wala.util.graph.Graph<com.sap.psr.vulas.shared.json.model.ConstructId> |
getCallgraph()
Returns the call graph.
|
long |
getConstructionTime()
Returns the time required for building the call graph (in nanoseconds), or -1 if the construction did not finish.
|
org.apache.commons.configuration.Configuration |
getConstructorConfiguration()
Returns the constructor's specific configuration settings.
|
Set<com.sap.psr.vulas.shared.json.model.ConstructId> |
getEntrypoints()
Returns the effectively used entry points.
|
String |
getFramework()
The name of the analysis framework, used to register this callgraph constructor
|
void |
setAppClasspath(String _cp)
Sets the class path with directories and/or JAR files for the application.
|
void |
setAppContext(com.sap.psr.vulas.shared.json.model.Application _ctx)
Sets the application for call graph construction.
|
void |
setDepClasspath(String _dependencyClasspath)
Sets the class path with directories and/or JAR files for the dependencies.
|
void |
setEntrypoints(Set<com.sap.psr.vulas.shared.json.model.ConstructId> _constructs)
Sets the entry points for call graph construction.
|
void |
setExcludePackages(String _packages)
Excludes certain packages from the analysis, i.e., potential invocations happening in
Constructs of those packages will
be ignored. |
void |
setVulasConfiguration(com.sap.psr.vulas.shared.util.VulasConfiguration _cfg)
setVulasConfiguration.
|
String getFramework()
void setAppContext(com.sap.psr.vulas.shared.json.model.Application _ctx)
_ctx - a Application object.void setVulasConfiguration(com.sap.psr.vulas.shared.util.VulasConfiguration _cfg)
setVulasConfiguration.
_cfg - a VulasConfiguration object.void setAppClasspath(String _cp)
_cp - a String object.void setDepClasspath(String _dependencyClasspath)
_dependencyClasspath - a String object.void setEntrypoints(Set<com.sap.psr.vulas.shared.json.model.ConstructId> _constructs) throws CallgraphConstructException
_constructs - a Set object.CallgraphConstructExceptionvoid setExcludePackages(String _packages)
Constructs of those packages will
be ignored._packages - a String object.Set<com.sap.psr.vulas.shared.json.model.ConstructId> getEntrypoints()
Constructs of type class or package, for instance, will be filtered.
Also, it may happen that some of the specified entry points cannot be found, e.g., due to an incomplete class path.Set object.void buildCallgraph(boolean _policy)
throws CallgraphConstructException
_policy - a boolean.CallgraphConstructExceptionlong getConstructionTime()
org.apache.commons.configuration.Configuration getConstructorConfiguration()
Configuration object.com.ibm.wala.util.graph.Graph<com.sap.psr.vulas.shared.json.model.ConstructId> getCallgraph()
Graph object.Copyright © 2018–2020. All rights reserved.