MCPcopy Create free account
hub / github.com/LFYSec/MScan / getConfig

Method getConfig

src/main/java/pascal/taie/config/ConfigManager.java:65–72  ·  view source on GitHub ↗

Given an analysis id, returns the corresponding AnalysisConfig. @throws ConfigException when the manager does not contain the AnalysisConfig for the given id.

(String id)

Source from the content-addressed store, hash-verified

63 * the AnalysisConfig for the given id.
64 */
65 AnalysisConfig getConfig(String id) {
66 AnalysisConfig config = configs.get(id);
67 if (config == null) {
68 throw new ConfigException("Analysis \"" + id + "\" is not found in " +
69 Configs.getAnalysisConfigURL());
70 }
71 return config;
72 }
73
74 /**
75 * Overwrites the AnalysisConfig.options by corresponding PlanConfig.options.

Callers 4

overwriteOptionsMethod · 0.95
getRequiredConfigsMethod · 0.95
covertConfigsMethod · 0.80
expandPlanMethod · 0.80

Calls 2

getAnalysisConfigURLMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected