4 repositorios
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 es una herramienta de formateo de código Java y aplicación de estilos. Reformatea el código fuente Java para cumplir con una guía de estilo estandarizada, asegurando un diseño y una sangría consistentes en proyectos completos o archivos individuales. El proyecto funciona como una herramienta de linting en pipelines de compilación para flujos de trabajo de integración continua y como un plugin de formateo para IDEs, reemplazando el formateo nativo del editor. Puede integrarse como una librería de formateo dentro de software de generación de código para garantizar que la salida escrita por máquinas siga siendo legible para los humanos. La herramienta ofrece capacidades para reorganizar la sangría y el espaciado del código fuente, incluyendo la posibilidad de aplicar el formato de forma selectiva a rangos de líneas específicos o diffs modificados. Soporta la integración con editores de desarrollo como Eclipse para automatizar las actualizaciones de diseño durante el proceso de codificación.
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.