Class GrpcServiceProcessor

  • All Implemented Interfaces:
    com.google.auto.common.BasicAnnotationProcessor.ProcessingStep, javax.annotation.processing.Processor

    @AutoService(javax.annotation.processing.Processor.class)
    public class GrpcServiceProcessor
    extends com.google.auto.common.BasicAnnotationProcessor
    implements com.google.auto.common.BasicAnnotationProcessor.ProcessingStep
    Generates code from types annotated with @GrpcService.
    See Also:
    https://dagger.dev/dev-guide/grpc
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.auto.common.BasicAnnotationProcessor

        com.google.auto.common.BasicAnnotationProcessor.ProcessingStep, com.google.auto.common.BasicAnnotationProcessor.Step
    • Field Summary

      • Fields inherited from class javax.annotation.processing.AbstractProcessor

        processingEnv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.common.collect.ImmutableSet<java.lang.Class<GrpcService>> annotations()  
      javax.lang.model.SourceVersion getSupportedSourceVersion()  
      protected com.google.common.collect.ImmutableList<GrpcServiceProcessor> initSteps()  
      java.util.Set<javax.lang.model.element.Element> process​(com.google.common.collect.SetMultimap<java.lang.Class<? extends java.lang.annotation.Annotation>,​javax.lang.model.element.Element> elementsByAnnotation)  
      • Methods inherited from class com.google.auto.common.BasicAnnotationProcessor

        asStep, getSupportedAnnotationTypes, init, postProcess, postRound, process, steps
      • Methods inherited from class javax.annotation.processing.AbstractProcessor

        getCompletions, getSupportedOptions, isInitialized
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrpcServiceProcessor

        public GrpcServiceProcessor()
    • Method Detail

      • initSteps

        protected com.google.common.collect.ImmutableList<GrpcServiceProcessor> initSteps()
        Overrides:
        initSteps in class com.google.auto.common.BasicAnnotationProcessor
      • annotations

        public com.google.common.collect.ImmutableSet<java.lang.Class<GrpcService>> annotations()
        Specified by:
        annotations in interface com.google.auto.common.BasicAnnotationProcessor.ProcessingStep
      • getSupportedSourceVersion

        public javax.lang.model.SourceVersion getSupportedSourceVersion()
        Specified by:
        getSupportedSourceVersion in interface javax.annotation.processing.Processor
        Overrides:
        getSupportedSourceVersion in class javax.annotation.processing.AbstractProcessor
      • process

        public java.util.Set<javax.lang.model.element.Element> process​(com.google.common.collect.SetMultimap<java.lang.Class<? extends java.lang.annotation.Annotation>,​javax.lang.model.element.Element> elementsByAnnotation)
        Specified by:
        process in interface com.google.auto.common.BasicAnnotationProcessor.ProcessingStep