Class BasicAnnotationProcessor.ElementName

  • Enclosing class:
    BasicAnnotationProcessor

    private static final class BasicAnnotationProcessor.ElementName
    extends java.lang.Object
    A package or type name.

    It's unfortunate that we have to track types and packages separately, but since there are two different methods to look them up in Elements, we end up with a lot of parallel logic. :(

    Packages declared (and annotated) in package-info.java are tracked as deferred packages, type elements are tracked directly, and all other elements are tracked via their nearest enclosing type.