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 syntax highlighting for code that only exists after the compilation phase.
Its capabilities cover the automated production of accessors, constructors, and object identity methods such as equals, hashCode, and toString. It also implements fluent builder APIs for complex objects, manages thread synchronization, simplifies checked exception handling, and injects logging boilerplate and null-check constraints.
Lombok integrates with build tools and compilers including Maven, GWT, and the Eclipse compiler to automate code generation across different environments.