Class AnnotationProcessorCache


  • public class AnnotationProcessorCache
    extends java.lang.Object
    Keeps a cache of the annotation processor dependencies and its scope.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finalizeProcessors()  
      java.util.List<Scope> getAnnotationProcessorScopes​(org.gradle.api.Project project, java.lang.String configurationString)
      Get all the scopes for the specified configuration.
      java.util.List<Scope> getAnnotationProcessorScopes​(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration)
      Get all the scopes for the specified configuration.
      java.util.Map<java.nio.file.Path,​java.util.List<Scope>> getBasePathToExternalDependencyScopeMap()
      Write the buck file for the java_annotation_processor rules.
      boolean hasEmptyAnnotationProcessors​(org.gradle.api.Project project, java.lang.String configurationString)
      Checks if the configuration has any empty annotation processors.
      boolean hasEmptyAnnotationProcessors​(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration)
      Checks if the configuration has any empty annotation processors.
      • Methods inherited from class java.lang.Object

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

      • AnnotationProcessorCache

        public AnnotationProcessorCache​(org.gradle.api.Project project,
                                        BuckFileManager buckFileManager,
                                        java.lang.String processorBuckFile)
    • Method Detail

      • getAnnotationProcessorScopes

        public java.util.List<Scope> getAnnotationProcessorScopes​(org.gradle.api.Project project,
                                                                  java.lang.String configurationString)
        Get all the scopes for the specified configuration. Returns one configuration per dependency. Will group auto value and its extensions together into one scope as well.
        Parameters:
        project - project on which the configuration is defined.
        configurationString - Configuration string which is used to query the deps.
        Returns:
        A list of scopes generated by the configuration.
      • getAnnotationProcessorScopes

        public java.util.List<Scope> getAnnotationProcessorScopes​(org.gradle.api.Project project,
                                                                  org.gradle.api.artifacts.Configuration configuration)
        Get all the scopes for the specified configuration. Returns one configuration per dependency. Will group auto value and its extensions together into one scope as well.
        Parameters:
        project - project on which the configuration is defined.
        configuration - Configuration which is used to query the deps.
        Returns:
        A list of scopes generated by the configuration.
      • hasEmptyAnnotationProcessors

        public boolean hasEmptyAnnotationProcessors​(org.gradle.api.Project project,
                                                    java.lang.String configurationString)
        Checks if the configuration has any empty annotation processors.
        Parameters:
        project - project on which the configuration is defined.
        configurationString - ConfigurationString which is used to query the deps.
        Returns:
        A boolean whether the configuration has any empty annotation processors.
      • hasEmptyAnnotationProcessors

        public boolean hasEmptyAnnotationProcessors​(org.gradle.api.Project project,
                                                    org.gradle.api.artifacts.Configuration configuration)
        Checks if the configuration has any empty annotation processors.
        Parameters:
        project - project on which the configuration is defined.
        configuration - Configuration which is used to query the deps.
        Returns:
        A boolean whether the configuration has any empty annotation processors.
      • getBasePathToExternalDependencyScopeMap

        public java.util.Map<java.nio.file.Path,​java.util.List<Scope>> getBasePathToExternalDependencyScopeMap()
        Write the buck file for the java_annotation_processor rules.
      • finalizeProcessors

        public void finalizeProcessors()