Class Proto.Environment

    • Constructor Detail

      • Environment

        public Environment()
    • Method Detail

      • processing

        @Parameter
        abstract javax.annotation.processing.ProcessingEnvironment processing()
      • typeMoreObjects

        @Nullable
        @Lazy
        java.lang.String typeMoreObjects()
        Try to find Guava's object util classes if they're available. First lookup for base.MoreObjects then base.Objects. Return null if not found.
        Returns:
        full class name for Guava's MoreObjects / Objects or null if such class doesn't exists in classpath
      • hasGuavaLib

        public boolean hasGuavaLib()
      • hasOkJsonLib

        @Lazy
        public boolean hasOkJsonLib()
      • hasGsonLib

        @Lazy
        public boolean hasGsonLib()
      • hasDatatypesModule

        @Lazy
        public boolean hasDatatypesModule()
      • hasJacksonLib

        @Lazy
        public boolean hasJacksonLib()
      • hasCriteriaModule

        @Lazy
        public boolean hasCriteriaModule()
      • hasMongoModule

        @Lazy
        public boolean hasMongoModule()
      • hasSerialModule

        @Lazy
        public boolean hasSerialModule()
      • hasTreesModule

        @Lazy
        public boolean hasTreesModule()
      • hasAstModule

        @Lazy
        public boolean hasAstModule()
      • hasOrdinalModule

        @Lazy
        public boolean hasOrdinalModule()
      • hasBuilderModule

        @Lazy
        public boolean hasBuilderModule()
      • hasFuncModule

        @Lazy
        public boolean hasFuncModule()
      • hasEncodeModule

        @Lazy
        public boolean hasEncodeModule()
      • hasAnnotateModule

        @Lazy
        public boolean hasAnnotateModule()
      • hasJava9Collections

        @Lazy
        public boolean hasJava9Collections()
      • defaultTypeAdapters

        @Lazy
        TypeAdaptersMirror defaultTypeAdapters()
        Default type adapters should only be called if Gson.TypeAdapters annotation is definitely in classpath. Currently, it is called by for mongo repository module, which have gson module as a transitive dependency.
        Returns:
        default type adapters
      • protoclassesFrom

        com.google.common.collect.ImmutableList<Proto.Protoclass> protoclassesFrom​(java.lang.Iterable<? extends javax.lang.model.element.Element> elements)
      • hasElement

        private boolean hasElement​(java.lang.String qualifiedName)
        Check if qualifiedName is known to current environment (annotation processor). Retrieve (by canonical name) TypeElement from APT environment.
      • findElement

        @Nullable
        private javax.lang.model.element.TypeElement findElement​(java.lang.String qualifiedName)
      • isCheckedException

        public boolean isCheckedException​(javax.lang.model.type.TypeMirror throwable)