MCPcopy Create free account
hub / github.com/dynjs/dynjs / initConfig

Method initConfig

src/main/java/org/dynjs/cli/Arguments.java:75–90  ·  view source on GitHub ↗
(Config config)

Source from the content-addressed store, hash-verified

73 }
74
75 protected Config initConfig(Config config) {
76 if (this.isDebug()) {
77 config.setDebug(true);
78 }
79 config.setArgv(arguments.toArray());
80 if (!classpath.isEmpty()) {
81 for (File file : classpath) {
82 try {
83 config.getClasspath().push(file.getAbsolutePath());
84 } catch (MalformedURLException e) {
85 throw new IllegalArgumentException(e);
86 }
87 }
88 }
89 return config;
90 }
91
92 public boolean isAST() {
93 return ast;

Callers 1

getConfigMethod · 0.95

Calls 7

isDebugMethod · 0.95
setDebugMethod · 0.80
setArgvMethod · 0.80
toArrayMethod · 0.80
pushMethod · 0.80
isEmptyMethod · 0.45
getClasspathMethod · 0.45

Tested by

no test coverage detected