{"library":"java-parser","type":"library","category":null,"description":"java-parser is a JavaScript-based parser for Java source code, designed to operate without a JVM. It takes Java code as input and produces a Concrete Syntax Tree (CST) using the Chevrotain parsing toolkit. The current stable version is 3.0.1. While it is a foundational, internal component of the `prettier-plugin-java` project for formatting, it can be used independently to programmatically analyze Java code. The library offers functionality to parse raw code into a CST and then transform that CST into a more abstract AST representation. This capability makes it suitable for static analysis, code transformations, or custom tooling within JavaScript environments where JVM-based parsers are not practical or desired. Releases often align with its parent `prettier-java` monorepo updates, typically focusing on parser correctness and AST generation improvements.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install java-parser","imports":["import { parse } from 'java-parser';","import { toAST } from 'java-parser';","import { LexingError } from 'java-parser';"]},{"cmd":"yarn add java-parser","imports":[]},{"cmd":"pnpm add java-parser","imports":[]}],"homepage":null,"github":"https://github.com/jhipster/prettier-java","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/java-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/java-parser/compatibility"}}