Skip to the content.

Infinite Technology โˆž Carburetor ๐ŸŒ€

Parameterized Groovy AST method Transformer

Carburetor is a device that mixes air and fuel for internal combustion engines in the proper airโ€“fuel ratio for combustion.
@Carburetor-based annotations are mixing the auto-generated โ€œinfrastructuralโ€ code with the user code - thus its name.

References:

Attribute\Release type Latest Stable
Version 4.0.0-SNAPSHOT 3.0.x
Branch master CARBURETOR_3_0_X
CI Build status Build Status Build Status
Test coverage codecov codecov
Library (Maven) oss.jfrog.org snapshot Download

Purpose

โ— Carburetor is not an end-user solution. It is a basis for other end-user solutions (such as Blackbox) providing compile-time code transformation implementation and a runtime API.

Carburetor provides a foundation for other libraries to automatically generate Groovy Semantic handling code based on Carburetor configuration and inject it into User code during the Compilation stage resulting in a possibility to intercept and interact with application run-time events including their corresponding compile-time metadata (class name, method name, line start, line end, column start, column end, ASTNode class name):

In short

Carburetor-based annotations inject a lot of implementation-specific infrastructure code (such as logging, profiling, security, etc) without affecting the user program logic.

Granularity of injected code can be defined by the user (programmer) up to: