Class Proto.Environment

java.lang.Object
org.immutables.value.processor.meta.Proto.Environment
Direct Known Subclasses:
ImmutableProto.Environment
Enclosing class:
Proto

@Immutable public abstract static class Proto.Environment extends Object
  • Field Details

  • Constructor Details

    • Environment

      public Environment()
  • Method Details

    • processing

      @Parameter abstract ProcessingEnvironment processing()
    • round

      @Parameter abstract Round round()
    • defaultStyles

      @Derived StyleInfo defaultStyles()
    • typeMoreObjects

      @Nullable @Lazy 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
    • composeValue

      ValueType composeValue(Proto.Protoclass protoclass)
    • protoclassesFrom

      com.google.common.collect.ImmutableList<Proto.Protoclass> protoclassesFrom(Iterable<? extends Element> elements)
    • hasElement

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

      @Nullable private TypeElement findElement(String qualifiedName)
    • instantiatorFor

      Instantiator instantiatorFor(Set<EncodingInfo> encodings)
    • isCheckedException

      public boolean isCheckedException(TypeMirror throwable)
    • checkedExceptionProbe

      @Lazy CheckedExceptionProbe checkedExceptionProbe()