{"id":16057938,"url":"https://github.com/pascalgn/java-model","last_synced_at":"2025-03-18T04:31:16.700Z","repository":{"id":120605580,"uuid":"463944976","full_name":"pascalgn/java-model","owner":"pascalgn","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-16T11:11:56.000Z","size":200,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T07:12:00.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/pascalgn.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-02-26T19:18:00.000Z","updated_at":"2024-11-12T15:55:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"3136ef02-9500-45fe-a388-b7cd42332970","html_url":"https://github.com/pascalgn/java-model","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalgn%2Fjava-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalgn%2Fjava-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalgn%2Fjava-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalgn%2Fjava-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pascalgn","download_url":"https://codeload.github.com/pascalgn/java-model/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902293,"owners_count":20366260,"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":[],"created_at":"2024-10-09T03:05:30.673Z","updated_at":"2025-03-18T04:31:16.270Z","avatar_url":"https://github.com/pascalgn.png","language":"TypeScript","readme":"# java-model\n\n[![npm version](https://img.shields.io/npm/v/java-model.svg?style=flat-square)](https://www.npmjs.com/package/java-model)\n\nProvides high-level access to the Java type model, based on [java-ast](https://github.com/pascalgn/java-ast).\n\n## Usage\n\n```java\nclass A {\n    private int i;\n}\n\nrecord B(String s) {\n}\n\nenum C { C1, C2 }\n```\n\n```typescript\nimport { readFileSync } from \"node:fs\";\nimport { parse } from \"java-model\";\n\nconst project = parse({\n    files: [\"input.java\"],\n    read: (file) =\u003e readFileSync(file, \"utf8\")\n});\n\nproject.visitTypes((type) =\u003e {\n   console.log(type.name);\n   console.log(type.qualifiedName);\n   console.log(type.properties());\n});\n```\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalgn%2Fjava-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpascalgn%2Fjava-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalgn%2Fjava-model/lists"}