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

Method get

src/main/java/pascal/taie/config/AnalysisOptions.java:97–103  ·  view source on GitHub ↗

@return value for given option key. @throws ConfigException if this AnalysisOptions do not contain the key.

(String key)

Source from the content-addressed store, hash-verified

95 * @throws ConfigException if this AnalysisOptions do not contain the key.
96 */
97 public Object get(String key) {
98 if (!has(key)) {
99 throw new ConfigException("Cannot find option '" + key + "'," +
100 " please check your configuration and option key");
101 }
102 return options.get(key);
103 }
104
105 public String getString(String key) {
106 return (String) get(key);

Callers 6

testNullOptionMethod · 0.95
testNonExistOptionMethod · 0.95
getStringMethod · 0.95
getBooleanMethod · 0.95
getIntMethod · 0.95
getFloatMethod · 0.95

Calls 2

hasMethod · 0.95
getMethod · 0.65

Tested by 2

testNullOptionMethod · 0.76
testNonExistOptionMethod · 0.76