Tag

JavaParser

0 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 13, 2025 · Backend Development

Master Java Code Analysis with JavaParser: Real‑World Examples

This article introduces JavaParser, an open‑source library for parsing Java source code into an AST, and walks through practical cases covering dependency setup, basic parsing, class and method extraction, code modification, class generation, and comprehensive analysis with code snippets and output screenshots.

ASTJavaJavaParser
0 likes · 10 min read
Master Java Code Analysis with JavaParser: Real‑World Examples
JD Tech
JD Tech
Apr 2, 2024 · Backend Development

Automating Java Getter/Setter Replacement with Lombok Using JavaParser

This article explains how to build a tool that scans Java projects, identifies simple getter and setter methods, and automatically replaces them with Lombok's @Data annotation by leveraging JavaParser for AST manipulation, complete with Maven integration and usage guidelines.

JavaParserLombokMaven
0 likes · 13 min read
Automating Java Getter/Setter Replacement with Lombok Using JavaParser
JD Retail Technology
JD Retail Technology
Feb 19, 2024 · Backend Development

Design and Implementation of a Java Code Optimization Tool Using JavaParser and Lombok

This article presents a developer‑centric guide to designing a Java code‑optimization tool that automatically replaces trivial getter/setter methods with Lombok’s @Data annotation, detailing the scanning, filtering, modification steps, JavaParser usage, Maven integration, and practical usage instructions.

JavaJavaParserLombok
0 likes · 12 min read
Design and Implementation of a Java Code Optimization Tool Using JavaParser and Lombok