4 مستودعات
Tools that programmatically modify Java source code by traversing and editing the AST with lexical preservation.
Distinct from Source Code Transformation Engines: Distinct from Source Code Transformation Engines: focuses on Java-specific AST-based transformation with formatting preservation, not general compatibility patching.
Explore 4 awesome GitHub repositories matching programming languages & runtimes · Java Source Code Transformers. Refine with filters or upvote what's useful.
Lombok is a Java annotation processor and boilerplate reduction library designed to automatically generate repetitive source code. It intercepts the compilation process to inject methods and fields directly into Java classes, acting as a source code generator that eliminates the need to manually write common class patterns. The project distinguishes itself through deep integration with the Java compiler and various integrated development environments. It provides IDE plugins that allow editors to recognize and navigate generated methods, preventing false compilation errors and maintaining syn
Reverts automated source code back to standard syntax for tools that do not support shorthand annotations.
google-java-format هو أداة لتنسيق كود Java وفرض أسلوب كتابة موحد. يقوم بإعادة تنسيق كود المصدر ليتوافق مع دليل أسلوب قياسي، مما يضمن اتساق التخطيط والمسافات البادئة عبر المشاريع بأكملها أو الملفات الفردية. يعمل المشروع كأداة فحص (linting) ضمن خط أنابيب البناء لسير عمل التكامل المستمر (CI)، وكإضافة لتنسيق الكود داخل بيئات التطوير (IDE) لاستبدال التنسيق الأصلي للمحرر. يمكن دمجه كمكتبة تنسيق داخل برمجيات توليد الكود لضمان بقاء المخرجات التي يتم إنشاؤها آلياً قابلة للقراءة من قبل البشر. توفر الأداة إمكانيات لإعادة تنظيم المسافات البادئة والتباعد في الكود، بما في ذلك القدرة على تطبيق التنسيق بشكل انتقائي على نطاقات أسطر محددة أو تغييرات (diffs) معدلة. كما يدعم التكامل مع محررات التطوير مثل Eclipse لأتمتة تحديثات التخطيط أثناء عملية البرمجة.
Provides a comprehensive engine for formatting Java source code to a standardized layout.
JavaParser is a library that parses Java source code up to version 12 into an Abstract Syntax Tree (AST), enabling programmatic analysis, transformation, and generation of Java code. It serves as a parser, code analyzer, code generator, comment parser, and symbol resolver, providing a unified toolkit for working with Java source at the AST level. The library distinguishes itself through several integrated capabilities that go beyond basic parsing. It includes a symbol resolution engine that resolves type and symbol references across files for accurate semantic analysis, and an error-recovery
Programmatically modifies parsed Java source code by traversing and editing the AST with lexical formatting preservation.
OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic tree parser to represent source code as type-aware trees that preserve original whitespace and formatting, enabling precise and deterministic modifications. The project utilizes a declarative refactoring pipeline where sequences of transformations are defined in YAML to resolve breaking changes and technical debt. It features type-aware pattern matching and cross-language model mapping to apply similar refactoring patterns across different programming languages. The framework
Implements a transformation engine that modifies semantic trees while preserving original whitespace and formatting.