Class ImmutableProto.Environment
- java.lang.Object
-
- org.immutables.value.processor.meta.Proto.Environment
-
- org.immutables.value.processor.meta.ImmutableProto.Environment
-
- Enclosing class:
- ImmutableProto
@Immutable public static final class ImmutableProto.Environment extends Proto.Environment
Immutable implementation ofProto.Environment.Use the builder to create immutable instances:
ImmutableProto.Environment.builder(). Use the static factory method to create immutable instances:ImmutableProto.Environment.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableProto.Environment.BuilderBuilds instances of typeEnvironment.
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateEnvironment(javax.annotation.processing.ProcessingEnvironment processing, Round round)privateEnvironment(ImmutableProto.Environment original, javax.annotation.processing.ProcessingEnvironment processing, Round round)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableProto.Environment.Builderbuilder()Creates a builder forEnvironment.(package private) CheckedExceptionProbecheckedExceptionProbe()static ImmutableProto.EnvironmentcopyOf(Proto.Environment instance)Creates an immutable copy of aProto.Environmentvalue.(package private) StyleInfodefaultStyles()(package private) TypeAdaptersMirrordefaultTypeAdapters()Default type adapters should only be called ifGson.TypeAdaptersannotation is definitely in classpath.booleanequals(java.lang.Object another)This instance is equal to all instances ofEnvironmentthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableProto.Environment another)booleanhasAnnotateModule()booleanhasAstModule()booleanhasBuilderModule()booleanhasCriteriaModule()booleanhasDatatypesModule()booleanhasEncodeModule()booleanhasFuncModule()booleanhasGsonLib()inthashCode()Computes a hash code from attributes:processing,round,defaultStyles.booleanhasJacksonLib()booleanhasJava9Collections()booleanhasMongoModule()booleanhasOkJsonLib()booleanhasOrdinalModule()booleanhasSerialModule()booleanhasTreesModule()static ImmutableProto.Environmentof(javax.annotation.processing.ProcessingEnvironment processing, Round round)Construct a new immutableEnvironmentinstance.(package private) javax.annotation.processing.ProcessingEnvironmentprocessing()(package private) Roundround()java.lang.StringtoString()Prints the immutable valueEnvironmentwith attribute values.(package private) java.lang.StringtypeMoreObjects()Try to find Guava's object util classes if they're available.ImmutableProto.EnvironmentwithProcessing(javax.annotation.processing.ProcessingEnvironment value)Copy the current immutable object by setting a value for theprocessingattribute.ImmutableProto.EnvironmentwithRound(Round value)Copy the current immutable object by setting a value for theroundattribute.-
Methods inherited from class org.immutables.value.processor.meta.Proto.Environment
composeValue, hasGuavaLib, instantiatorFor, isCheckedException, protoclassesFrom
-
-
-
-
Field Detail
-
processing
private final javax.annotation.processing.ProcessingEnvironment processing
-
round
private final Round round
-
defaultStyles
private final transient StyleInfo defaultStyles
-
lazyInitBitmap
private transient volatile long lazyInitBitmap
-
TYPE_MORE_OBJECTS_LAZY_INIT_BIT
private static final long TYPE_MORE_OBJECTS_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
typeMoreObjects
private transient java.lang.String typeMoreObjects
-
HAS_OK_JSON_LIB_LAZY_INIT_BIT
private static final long HAS_OK_JSON_LIB_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasOkJsonLib
private transient boolean hasOkJsonLib
-
HAS_GSON_LIB_LAZY_INIT_BIT
private static final long HAS_GSON_LIB_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasGsonLib
private transient boolean hasGsonLib
-
HAS_DATATYPES_MODULE_LAZY_INIT_BIT
private static final long HAS_DATATYPES_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasDatatypesModule
private transient boolean hasDatatypesModule
-
HAS_JACKSON_LIB_LAZY_INIT_BIT
private static final long HAS_JACKSON_LIB_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasJacksonLib
private transient boolean hasJacksonLib
-
HAS_CRITERIA_MODULE_LAZY_INIT_BIT
private static final long HAS_CRITERIA_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasCriteriaModule
private transient boolean hasCriteriaModule
-
HAS_MONGO_MODULE_LAZY_INIT_BIT
private static final long HAS_MONGO_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasMongoModule
private transient boolean hasMongoModule
-
HAS_SERIAL_MODULE_LAZY_INIT_BIT
private static final long HAS_SERIAL_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasSerialModule
private transient boolean hasSerialModule
-
HAS_TREES_MODULE_LAZY_INIT_BIT
private static final long HAS_TREES_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasTreesModule
private transient boolean hasTreesModule
-
HAS_AST_MODULE_LAZY_INIT_BIT
private static final long HAS_AST_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasAstModule
private transient boolean hasAstModule
-
HAS_ORDINAL_MODULE_LAZY_INIT_BIT
private static final long HAS_ORDINAL_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasOrdinalModule
private transient boolean hasOrdinalModule
-
HAS_BUILDER_MODULE_LAZY_INIT_BIT
private static final long HAS_BUILDER_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasBuilderModule
private transient boolean hasBuilderModule
-
HAS_FUNC_MODULE_LAZY_INIT_BIT
private static final long HAS_FUNC_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasFuncModule
private transient boolean hasFuncModule
-
HAS_ENCODE_MODULE_LAZY_INIT_BIT
private static final long HAS_ENCODE_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasEncodeModule
private transient boolean hasEncodeModule
-
HAS_ANNOTATE_MODULE_LAZY_INIT_BIT
private static final long HAS_ANNOTATE_MODULE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasAnnotateModule
private transient boolean hasAnnotateModule
-
HAS_JAVA9_COLLECTIONS_LAZY_INIT_BIT
private static final long HAS_JAVA9_COLLECTIONS_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
hasJava9Collections
private transient boolean hasJava9Collections
-
DEFAULT_TYPE_ADAPTERS_LAZY_INIT_BIT
private static final long DEFAULT_TYPE_ADAPTERS_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
defaultTypeAdapters
private transient TypeAdaptersMirror defaultTypeAdapters
-
CHECKED_EXCEPTION_PROBE_LAZY_INIT_BIT
private static final long CHECKED_EXCEPTION_PROBE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
checkedExceptionProbe
private transient CheckedExceptionProbe checkedExceptionProbe
-
-
Constructor Detail
-
Environment
private Environment(javax.annotation.processing.ProcessingEnvironment processing, Round round)
-
Environment
private Environment(ImmutableProto.Environment original, javax.annotation.processing.ProcessingEnvironment processing, Round round)
-
-
Method Detail
-
processing
javax.annotation.processing.ProcessingEnvironment processing()
- Specified by:
processingin classProto.Environment- Returns:
- The value of the
processingattribute
-
round
Round round()
- Specified by:
roundin classProto.Environment- Returns:
- The value of the
roundattribute
-
defaultStyles
StyleInfo defaultStyles()
- Overrides:
defaultStylesin classProto.Environment- Returns:
- The computed-at-construction value of the
defaultStylesattribute
-
withProcessing
public final ImmutableProto.Environment withProcessing(javax.annotation.processing.ProcessingEnvironment value)
Copy the current immutable object by setting a value for theprocessingattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for processing- Returns:
- A modified copy of the
thisobject
-
withRound
public final ImmutableProto.Environment withRound(Round value)
Copy the current immutable object by setting a value for theroundattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for round- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofEnvironmentthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableProto.Environment another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:processing,round,defaultStyles.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueEnvironmentwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
typeMoreObjects
java.lang.String typeMoreObjects()
Try to find Guava's object util classes if they're available. First lookup forbase.MoreObjectsthenbase.Objects. Returnnullif not found.Returns a lazily initialized value of the
typeMoreObjectsattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
typeMoreObjectsin classProto.Environment- Returns:
- A lazily initialized value of the
typeMoreObjectsattribute
-
hasOkJsonLib
public boolean hasOkJsonLib()
Returns a lazily initialized value of the
hasOkJsonLibattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasOkJsonLibin classProto.Environment- Returns:
- A lazily initialized value of the
hasOkJsonLibattribute
-
hasGsonLib
public boolean hasGsonLib()
Returns a lazily initialized value of the
hasGsonLibattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasGsonLibin classProto.Environment- Returns:
- A lazily initialized value of the
hasGsonLibattribute
-
hasDatatypesModule
public boolean hasDatatypesModule()
Returns a lazily initialized value of the
hasDatatypesModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasDatatypesModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasDatatypesModuleattribute
-
hasJacksonLib
public boolean hasJacksonLib()
Returns a lazily initialized value of the
hasJacksonLibattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasJacksonLibin classProto.Environment- Returns:
- A lazily initialized value of the
hasJacksonLibattribute
-
hasCriteriaModule
public boolean hasCriteriaModule()
Returns a lazily initialized value of the
hasCriteriaModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasCriteriaModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasCriteriaModuleattribute
-
hasMongoModule
public boolean hasMongoModule()
Returns a lazily initialized value of the
hasMongoModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasMongoModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasMongoModuleattribute
-
hasSerialModule
public boolean hasSerialModule()
Returns a lazily initialized value of the
hasSerialModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasSerialModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasSerialModuleattribute
-
hasTreesModule
public boolean hasTreesModule()
Returns a lazily initialized value of the
hasTreesModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasTreesModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasTreesModuleattribute
-
hasAstModule
public boolean hasAstModule()
Returns a lazily initialized value of the
hasAstModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasAstModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasAstModuleattribute
-
hasOrdinalModule
public boolean hasOrdinalModule()
Returns a lazily initialized value of the
hasOrdinalModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasOrdinalModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasOrdinalModuleattribute
-
hasBuilderModule
public boolean hasBuilderModule()
Returns a lazily initialized value of the
hasBuilderModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasBuilderModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasBuilderModuleattribute
-
hasFuncModule
public boolean hasFuncModule()
Returns a lazily initialized value of the
hasFuncModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasFuncModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasFuncModuleattribute
-
hasEncodeModule
public boolean hasEncodeModule()
Returns a lazily initialized value of the
hasEncodeModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasEncodeModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasEncodeModuleattribute
-
hasAnnotateModule
public boolean hasAnnotateModule()
Returns a lazily initialized value of the
hasAnnotateModuleattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasAnnotateModulein classProto.Environment- Returns:
- A lazily initialized value of the
hasAnnotateModuleattribute
-
hasJava9Collections
public boolean hasJava9Collections()
Returns a lazily initialized value of the
hasJava9Collectionsattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
hasJava9Collectionsin classProto.Environment- Returns:
- A lazily initialized value of the
hasJava9Collectionsattribute
-
defaultTypeAdapters
TypeAdaptersMirror defaultTypeAdapters()
Default type adapters should only be called ifGson.TypeAdaptersannotation is definitely in classpath. Currently, it is called by for mongo repository module, which havegsonmodule as a transitive dependency.Returns a lazily initialized value of the
defaultTypeAdaptersattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
defaultTypeAdaptersin classProto.Environment- Returns:
- A lazily initialized value of the
defaultTypeAdaptersattribute
-
checkedExceptionProbe
CheckedExceptionProbe checkedExceptionProbe()
Returns a lazily initialized value of the
checkedExceptionProbeattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
checkedExceptionProbein classProto.Environment- Returns:
- A lazily initialized value of the
checkedExceptionProbeattribute
-
of
public static ImmutableProto.Environment of(javax.annotation.processing.ProcessingEnvironment processing, Round round)
Construct a new immutableEnvironmentinstance.- Parameters:
processing- The value for theprocessingattributeround- The value for theroundattribute- Returns:
- An immutable Environment instance
-
copyOf
public static ImmutableProto.Environment copyOf(Proto.Environment instance)
Creates an immutable copy of aProto.Environmentvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable Environment instance
-
builder
public static ImmutableProto.Environment.Builder builder()
Creates a builder forEnvironment.ImmutableProto.Environment.builder() .processing(javax.annotation.processing.ProcessingEnvironment) // requiredprocessing.round(org.immutables.value.processor.meta.Round) // requiredround.build();- Returns:
- A new Environment builder
-
-