Class AliasOfProcessor

  • All Implemented Interfaces:
    javax.annotation.processing.Processor

    @IncrementalAnnotationProcessor(ISOLATING)
    @AutoService(javax.annotation.processing.Processor.class)
    public final class AliasOfProcessor
    extends BaseProcessor
    Processes the annotations annotated with dagger.hilt.migration.AliasOf
    • Constructor Detail

      • AliasOfProcessor

        public AliasOfProcessor()
    • Method Detail

      • getSupportedAnnotationTypes

        public java.util.Set<java.lang.String> getSupportedAnnotationTypes()
        Specified by:
        getSupportedAnnotationTypes in interface javax.annotation.processing.Processor
        Overrides:
        getSupportedAnnotationTypes in class javax.annotation.processing.AbstractProcessor
      • processEach

        public void processEach​(javax.lang.model.element.TypeElement annotation,
                                javax.lang.model.element.Element element)
                         throws java.lang.Exception
        Description copied from class: BaseProcessor
        Called for each element in a round that uses a supported annotation. Note that an exception can be thrown for each element in the round. This is usually preferred over throwing only the first exception in a round. Only throwing the first exception in the round can lead to flaky errors that are dependent on the non-deterministic ordering that the elements are processed in.
        Overrides:
        processEach in class BaseProcessor
        Throws:
        java.lang.Exception