WASM Source represented by a file referenced by a path.
| 4 | * WASM Source represented by a file referenced by a path. |
| 5 | */ |
| 6 | public 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 |
nothing calls this directly
no outgoing calls
no test coverage detected