MCPcopy Index your code
hub / github.com/extism/java-sdk / PathWasmSource

Class PathWasmSource

src/main/java/org/extism/sdk/wasm/PathWasmSource.java:6–39  ·  view source on GitHub ↗

WASM Source represented by a file referenced by a path.

Source from the content-addressed store, hash-verified

4 * WASM Source represented by a file referenced by a path.
5 */
6public class PathWasmSource implements WasmSource {
7
8 private final String name;
9
10 private final String path;
11
12 private final String hash;
13
14 /**
15 * Constructor
16 * @param name
17 * @param path
18 * @param hash
19 */
20 public PathWasmSource(String name, String path, String hash) {
21 this.name = name;
22 this.path = path;
23 this.hash = hash;
24 }
25
26 @Override
27 public String name() {
28 return name;
29 }
30
31 @Override
32 public String hash() {
33 return hash;
34 }
35
36 public String path() {
37 return path;
38 }
39}
40

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected