| Crates.io | cadi-atomizer-java |
| lib.rs | cadi-atomizer-java |
| version | 1.0.0 |
| created_at | 2026-01-12 06:42:44.730009+00 |
| updated_at | 2026-01-12 06:42:44.730009+00 |
| description | Java language atomizer for CADI |
| homepage | |
| repository | |
| max_upload_size | |
| id | 2037114 |
| size | 50,696 |
Example extension that demonstrates how to create a language atomizer for CADI.
This extension provides Java language support for CADI by:
cargo build --release
This will create a dynamic library that can be loaded by CADI.
Copy the built library to your CADI extensions directory:
cp target/release/libextension.so ~/.cadi/extensions/java-atomizer/
cp extension.toml ~/.cadi/extensions/java-atomizer/
CADI will automatically load the extension on startup.
java-atomizer/
├── extension.toml # Extension manifest
├── libextension.so # Compiled extension library
└── src/
└── lib.rs # Extension implementation
The Java atomizer uses regex patterns to:
Each extracted atom includes:
text/java)public class Example {
private String name;
public Example(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
This would be atomized into:
Example class definitiongetName() method