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

Class NullProgram

src/main/java/org/dynjs/runtime/NullProgram.java:10–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10public class NullProgram implements JSProgram {
11
12 private String filename;
13
14 public NullProgram(String filename) {
15 this.filename = filename;
16 }
17
18 @Override
19 public Completion execute(ExecutionContext context) {
20 return Completion.createNormal();
21 }
22
23 @Override
24 public BlockManager getBlockManager() {
25 return null;
26 }
27
28 @Override
29 public String getFileName() {
30 return this.filename;
31 }
32
33 @Override
34 public boolean isStrict() {
35 return false;
36 }
37
38 @Override
39 public List<FunctionDeclaration> getFunctionDeclarations() {
40 return Collections.emptyList();
41 }
42
43 @Override
44 public List<VariableDeclaration> getVariableDeclarations() {
45 return Collections.emptyList();
46 }
47
48
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected