Class CodegenConstants

java.lang.Object
org.elasticsearch.compute.ann.CodegenConstants

public final class CodegenConstants extends Object
Fully-qualified type names that the annotation processor needs to reference as strings. Annotation processors run during compilation and operate on javax.lang.model.TypeMirror (not java.lang.Class), so they cannot use Foo.class.getName() for types they're processing — only the FQN string. To keep this from drifting silently when types are renamed/moved, each entry here is backed by a runtime-checked test (CodegenConstantsContractTests) that asserts Foo.class.getName().equals(FOO_FQN).

This lives in the compute/ann module so both the annotation processor (compute/gen) and runtime tests (compute/src/test) can see it.

  • Field Details