{"id":21193640,"url":"https://github.com/danielmschmidt/java-method-parser","last_synced_at":"2025-07-10T03:32:44.476Z","repository":{"id":25701347,"uuid":"105793780","full_name":"DanielMSchmidt/java-method-parser","owner":"DanielMSchmidt","description":"A node utility to get the methods out of java files","archived":false,"fork":false,"pushed_at":"2024-09-19T03:14:28.000Z","size":2624,"stargazers_count":1,"open_issues_count":7,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-12T21:51:28.906Z","etag":null,"topics":["java","parser"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielMSchmidt.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-04T16:54:29.000Z","updated_at":"2024-06-12T23:05:13.000Z","dependencies_parsed_at":"2023-10-15T21:57:39.145Z","dependency_job_id":"5726f060-86f8-4157-9515-fae14435f065","html_url":"https://github.com/DanielMSchmidt/java-method-parser","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMSchmidt%2Fjava-method-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMSchmidt%2Fjava-method-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMSchmidt%2Fjava-method-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMSchmidt%2Fjava-method-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielMSchmidt","download_url":"https://codeload.github.com/DanielMSchmidt/java-method-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225615164,"owners_count":17496946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","parser"],"created_at":"2024-11-20T19:15:06.669Z","updated_at":"2024-11-20T19:15:07.291Z","avatar_url":"https://github.com/DanielMSchmidt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# java-method-parser [![Build Status](https://travis-ci.org/DanielMSchmidt/java-method-parser.svg?branch=master)](https://travis-ci.org/DanielMSchmidt/java-method-parser) [![Coverage Status](https://coveralls.io/repos/github/DanielMSchmidt/java-method-parser/badge.svg?branch=master)](https://coveralls.io/github/DanielMSchmidt/java-method-parser?branch=master) [![BCH compliance](https://bettercodehub.com/edge/badge/DanielMSchmidt/java-method-parser?branch=master)](https://bettercodehub.com/)\n\n\u003e Get an objective-c header file and translate it to equivalent javascript calls\n\n## Install\n\n```\n$ npm install java-method-parser\n```\n\n## Usage\n\n```js\nconst fs = require(\"fs\");\nconst javaMethodParser = require(\"java-method-parser\");\nconst content = fs.readFileSync(\"/path/to/java/Ponies.java\");\n\nconst output = javaMethodParser(content);\n\nfs.writeFileSync(\"/path/to/project/ponies.json\", output);\n```\n\n## Example\n\n```java\npackage com.foo.bar.baz;\n\npublic class BasicName {\n    private BasicName() {}\n\n    /**\n     *   asserting a matcher\n     */\n    public static ViewInteraction assertMatcher(ViewInteraction i, Matcher\u003cView\u003e m) {}\n\n    // This is for asserting invisibility\n    public static ViewInteraction assertNotVisible(ViewInteraction i) {}\n}\n```\n\n```json\n{\n\t\"name\": \"BasicName\",\n\t\"pcakage\": \"com.foo.bar\",\n\t\"methods\": [\n\t\t{\n\t\t\t\"args\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"ViewInteraction\",\n\t\t\t\t\t\"name\": \"i\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"Matcher\u003cView\u003e\",\n\t\t\t\t\t\"name\": \"m\"\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"comment\": \"asserting a matcher\",\n\t\t\t\"name\": \"assertMatcher\",\n\t\t\t\"returnType\": \"ViewInteraction\"\n\t\t},\n\t\t{\n\t\t\t\"args\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"ViewInteraction\",\n\t\t\t\t\t\"name\": \"i\"\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"comment\": \"This is for asserting invisibility\",\n\t\t\t\"name\": \"assertNotVisible\",\n\t\t\t\"returnType\": \"ViewInteraction\"\n\t\t}\n\t]\n}\n```\n\n## License\n\nMIT © [Daniel Schmidt](http://danielmschmidt.de)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmschmidt%2Fjava-method-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielmschmidt%2Fjava-method-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmschmidt%2Fjava-method-parser/lists"}