Skip to content

Class IrisSpecProcessor

Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.

java.lang.Object
javax.annotation.processing.AbstractProcessor
dev.gecode.iris.processor.IrisSpecProcessor
All Implemented Interfaces:
Processor
public final class IrisSpecProcessor extends AbstractProcessor
Generates the handles class and the record of each type annotated IrisSpec, as the annotation's documentation describes.

A missing or unreadable file, a reader spec that does not parse or check, a nested type, and a generated class that exists already are errors, reported at the annotation's value or at the annotated type. A spec whose entries would take more than 254 parameter slots, the most that a record's canonical constructor can take, gets no record and no reader, with a note; its handles class is generated all the same. The generated classes are laid out as google-java-format lays them out.

The processor checks the spec with dev.gecode.iris and finds its entries with that library's internal port of the output entries of iris gen, so it must run from the processor path, where the library is not a named module.