MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / isInterface

Function isInterface

hooks/modify-java-files.js:478–480  ·  view source on GitHub ↗
(filename, content)

Source from the content-addressed store, hash-verified

476 }
477
478 function isInterface(filename, content) {
479 return content.indexOf(`interface ${filename.split('.')[0]}`) > -1;
480 }
481
482 function getConstructorRegex(filename) {
483 return new RegExp(`([^]*?${filename.split('.')[0]}\\s*\\(.*?\\)\\s*{[^}]*})([^]*)`, 'm');

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected