Registry / utility / javaparser

javaparser

JSON →
library1.0.11javamavenunverified

Parses Java source code into an Abstract Syntax Tree (AST) with support for comments and source code manipulation.

<dependency> <groupId>com.google.code.javaparser</groupId> <artifactId>javaparser</artifactId> <version>1.0.11</version> </dependency>
INSTALL
IMPORT
SIG · JAVAPARSER
J
javaparser
utilityjavav1.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JavaParser
com.google.code.javaparser.JavaParser

Parse a Java source string into an AST.

import com.google.code.javaparser.JavaParser; import com.google.code.javaparser.ast.CompilationUnit; public class ParseExample { public static void main(String[] args) throws Exception { CompilationUnit cu = JavaParser.parse("class A { }"); System.out.println(cu); } }
Debug
Known issues
gotchaThis package is outdated and only supports Java 1.7 syntax.
fix
Consider using the newer 'com.github.javaparser:javaparser-core' for modern Java support.
affects: <=1.0.11
Upgrade
Version history
1.0.11latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
javaparser — mvn dependency:get javaparser · libregistry