I've been looking for a Javascript parser on Java that can capture and list all Javascript functions, for example
function beforeSave('Test', request, response) {
response.body = entity.foo;
if (request.query.isExist('Test', 'foo', entity.foo)) {
response.error();
} else {
response.success();
}
}
function afterSave('Test', request, response) {
response.body = 'done';
response.success();
}
Is there a Javascript parser library for Java that would be able to list all Functions from a given source text as well as get the function bodies as needed.