Class ImmutableProto.DeclaringType
- java.lang.Object
-
- org.immutables.value.processor.meta.Proto.Diagnosable
-
- org.immutables.value.processor.meta.Proto.AbstractDeclaring
-
- org.immutables.value.processor.meta.Proto.DeclaringType
-
- org.immutables.value.processor.meta.ImmutableProto.DeclaringType
-
- Enclosing class:
- ImmutableProto
@Immutable public static final class ImmutableProto.DeclaringType extends Proto.DeclaringType
Immutable implementation ofProto.DeclaringType.Use the builder to create immutable instances:
ImmutableProto.DeclaringType.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableProto.DeclaringType.BuilderBuilds instances of typeDeclaringType.private classImmutableProto.DeclaringType.InitShim
-
Field Summary
Fields Modifier and Type Field Description private static longBUILDER_INCLUDE_LAZY_INIT_BITprivate static longBUILDER_INCLUDED_TYPES_LAZY_INIT_BITprivate com.google.common.base.Optional<FIncludeMirror>builderIncludeprivate java.util.List<javax.lang.model.element.TypeElement>builderIncludedTypesprivate com.google.common.base.Optional<CriteriaMirror>criteriaprivate static longCRITERIA_LAZY_INIT_BITprivate static longCRITERIA_REPOSITORY_LAZY_INIT_BITprivate com.google.common.base.Optional<CriteriaRepositoryMirror>criteriaRepositoryprivate static longDATATYPE_ENABLED_LAZY_INIT_BITprivate com.google.common.base.Optional<DataMirror>datatypeEnabledprivate com.google.common.base.Optional<java.lang.String[]>depluralizeprivate static longDEPLURALIZE_LAZY_INIT_BITprivate javax.lang.model.element.TypeElementelementprivate static longENCLOSING_OF_LAZY_INIT_BITprivate static longENCLOSING_TOP_LEVEL_LAZY_INIT_BITprivate com.google.common.base.Optional<Proto.DeclaringType>enclosingOfprivate com.google.common.base.Optional<Proto.DeclaringType>enclosingTopLevelprivate Proto.Environmentenvironmentprivate com.google.common.base.Optional<ValueImmutableInfo>featuresprivate static longFEATURES_LAZY_INIT_BITprivate static longHEADER_COMMENTS_LAZY_INIT_BITprivate java.lang.CharSequenceheaderCommentsprivate com.google.common.base.Optional<IncludeMirror>includeprivate static longINCLUDE_LAZY_INIT_BITprivate static longINCLUDED_TYPES_LAZY_INIT_BITprivate java.util.List<javax.lang.model.element.TypeElement>includedTypesprivate ImmutableProto.DeclaringType.InitShiminitShimprivate Proto.Interninginternerprivate static longIS_AST_LAZY_INIT_BITprivate static longIS_ENCLOSING_LAZY_INIT_BITprivate static longIS_JACKSON_DESERIALIZED_ANNOTATED_LAZY_INIT_BITprivate static longIS_JACKSON_DESERIALIZED_LAZY_INIT_BITprivate static longIS_JACKSON_JSON_TYPE_INFO_LAZY_INIT_BITprivate static longIS_JACKSON_SERIALIZED_LAZY_INIT_BITprivate static longIS_MODIFIABLE_LAZY_INIT_BITprivate static longIS_SERIAL_STRUCTURAL_LAZY_INIT_BITprivate booleanisAstprivate booleanisEnclosingprivate booleanisJacksonDeserializedprivate booleanisJacksonDeserializedAnnotatedprivate booleanisJacksonJsonTypeInfoprivate booleanisJacksonSerializedprivate booleanisJavaBeanprivate booleanisModifiableprivate booleanisSerialStructuralprivate booleanisTopLevelprivate static longJACKSON_SERIALIZE_MODE_LAZY_INIT_BITprivate Proto.JacksonModejacksonSerializeModeprivate longlazyInitBitmapprivate static longMETA_ANNOTATED_LAZY_INIT_BITprivate java.util.List<Proto.MetaAnnotated>metaAnnotatedprivate java.lang.Stringnameprivate static longOK_TYPE_ADAPTERS_LAZY_INIT_BITprivate com.google.common.base.Optional<OkTypeAdaptersMirror>okTypeAdaptersprivate Proto.DeclaringPackagepackageOfprivate com.google.common.base.Optional<RepositoryMirror>repositoryprivate static longREPOSITORY_LAZY_INIT_BITprivate static longSERIAL_VERSION_LAZY_INIT_BITprivate com.google.common.base.Optional<java.lang.Long>serialVersionprivate java.lang.StringsimpleNameprivate static longSOURCE_CODE_LAZY_INIT_BITprivate static longSOURCE_IMPORTS_LAZY_INIT_BITprivate java.lang.CharSequencesourceCodeprivate SourceExtraction.ImportssourceImportsprivate static byteSTAGE_INITIALIZEDprivate static byteSTAGE_INITIALIZINGprivate static byteSTAGE_UNINITIALIZEDprivate com.google.common.base.Optional<StyleInfo>styleprivate static longSTYLE_LAZY_INIT_BITprivate com.google.common.base.Optional<TransformMirror>transformprivate static longTRANSFORM_LAZY_INIT_BITprivate static longTREES_INCLUDE_LAZY_INIT_BITprivate com.google.common.base.Optional<TreesIncludeMirror>treesIncludeprivate static longTYPE_ADAPTERS_LAZY_INIT_BITprivate com.google.common.base.Optional<TypeAdaptersMirror>typeAdaptersprivate static longUSE_IMMUTABLE_DEFAULTS_LAZY_INIT_BITprivate booleanuseImmutableDefaultsprivate com.google.common.base.Optional<VisitMirror>visitprivate static longVISIT_LAZY_INIT_BIT
-
Constructor Summary
Constructors Modifier Constructor Description privateDeclaringType(Proto.Environment environment, Proto.Interning interner, javax.lang.model.element.TypeElement element)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableProto.DeclaringType.Builderbuilder()Creates a builder forDeclaringType.protected com.google.common.base.Optional<FIncludeMirror>builderInclude()(package private) java.util.List<javax.lang.model.element.TypeElement>builderIncludedTypes()static ImmutableProto.DeclaringTypecopyOf(Proto.DeclaringType instance)Creates an immutable copy of aProto.DeclaringTypevalue.com.google.common.base.Optional<CriteriaMirror>criteria()com.google.common.base.Optional<CriteriaRepositoryMirror>criteriaRepository()com.google.common.base.Optional<DataMirror>datatypeEnabled()com.google.common.base.Optional<java.lang.String[]>depluralize()javax.lang.model.element.TypeElementelement()Element suitable for reporting as a source of declaration which might causing problems.com.google.common.base.Optional<Proto.DeclaringType>enclosingOf()com.google.common.base.Optional<Proto.DeclaringType>enclosingTopLevel()(package private) Proto.Environmentenvironment()booleanequals(java.lang.Object another)This instance is equal to all instances ofDeclaringTypethat have equal attribute values.private booleanequalTo(int synthetic, ImmutableProto.DeclaringType another)com.google.common.base.Optional<ValueImmutableInfo>features()com.google.common.base.Optional<TransformMirror>getTransform()com.google.common.base.Optional<TreesIncludeMirror>getTreesInclude()com.google.common.base.Optional<VisitMirror>getVisit()inthashCode()Computes a hash code from attributes:name.java.lang.CharSequenceheaderComments()protected com.google.common.base.Optional<IncludeMirror>include()(package private) java.util.List<javax.lang.model.element.TypeElement>includedTypes()(package private) Proto.Interninginterner()used to intern packaged created internallybooleanisAst()booleanisEnclosing()booleanisJacksonDeserialized()booleanisJacksonDeserializedAnnotated()booleanisJacksonJsonTypeInfo()booleanisJacksonSerialized()booleanisJavaBean()Checks if this element is a regular POJO (not an interface or abstract class) simple class with getters and settersbooleanisModifiable()booleanisSerialStructural()booleanisTopLevel()Proto.JacksonModejacksonSerializeMode()(package private) java.util.List<Proto.MetaAnnotated>metaAnnotated()java.lang.Stringname()com.google.common.base.Optional<OkTypeAdaptersMirror>okTypeAdapters()Proto.DeclaringPackagepackageOf()com.google.common.base.Optional<RepositoryMirror>repository()com.google.common.base.Optional<java.lang.Long>serialVersion()java.lang.StringsimpleName()java.lang.CharSequencesourceCode()SourceExtraction.ImportssourceImports()com.google.common.base.Optional<StyleInfo>style()java.lang.StringtoString()Prints the immutable valueDeclaringTypewith attribute values.com.google.common.base.Optional<TypeAdaptersMirror>typeAdapters()booleanuseImmutableDefaults()private static ImmutableProto.DeclaringTypevalidate(ImmutableProto.DeclaringType instance)ImmutableProto.DeclaringTypewithElement(javax.lang.model.element.TypeElement value)Copy the current immutable object by setting a value for theelementattribute.ImmutableProto.DeclaringTypewithEnvironment(Proto.Environment value)Copy the current immutable object by setting a value for theenvironmentattribute.ImmutableProto.DeclaringTypewithInterner(Proto.Interning value)Copy the current immutable object by setting a value for theinternerattribute.-
Methods inherited from class org.immutables.value.processor.meta.Proto.DeclaringType
associatedTopLevel, collectEncodings, isEnclosed, isImmutable, isTransformer, isVisitor, suitableForBuilderConstructor, suitableForBuilderFactory, validate, verifiedConstructor, verifiedFactory
-
Methods inherited from class org.immutables.value.processor.meta.Proto.AbstractDeclaring
asPrefix, asType, getAnnotationInjections
-
Methods inherited from class org.immutables.value.processor.meta.Proto.Diagnosable
processing, report
-
-
-
-
Field Detail
-
environment
private final Proto.Environment environment
-
simpleName
private final transient java.lang.String simpleName
-
interner
private final Proto.Interning interner
-
element
private final javax.lang.model.element.TypeElement element
-
name
private final transient java.lang.String name
-
packageOf
private final transient Proto.DeclaringPackage packageOf
-
isTopLevel
private final transient boolean isTopLevel
-
isJavaBean
private final transient boolean isJavaBean
-
STAGE_INITIALIZING
private static final byte STAGE_INITIALIZING
- See Also:
- Constant Field Values
-
STAGE_UNINITIALIZED
private static final byte STAGE_UNINITIALIZED
- See Also:
- Constant Field Values
-
STAGE_INITIALIZED
private static final byte STAGE_INITIALIZED
- See Also:
- Constant Field Values
-
initShim
private transient volatile ImmutableProto.DeclaringType.InitShim initShim
-
lazyInitBitmap
private transient volatile long lazyInitBitmap
-
INCLUDE_LAZY_INIT_BIT
private static final long INCLUDE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
include
private transient com.google.common.base.Optional<IncludeMirror> include
-
BUILDER_INCLUDE_LAZY_INIT_BIT
private static final long BUILDER_INCLUDE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
builderInclude
private transient com.google.common.base.Optional<FIncludeMirror> builderInclude
-
TYPE_ADAPTERS_LAZY_INIT_BIT
private static final long TYPE_ADAPTERS_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
typeAdapters
private transient com.google.common.base.Optional<TypeAdaptersMirror> typeAdapters
-
OK_TYPE_ADAPTERS_LAZY_INIT_BIT
private static final long OK_TYPE_ADAPTERS_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
okTypeAdapters
private transient com.google.common.base.Optional<OkTypeAdaptersMirror> okTypeAdapters
-
INCLUDED_TYPES_LAZY_INIT_BIT
private static final long INCLUDED_TYPES_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
includedTypes
private transient java.util.List<javax.lang.model.element.TypeElement> includedTypes
-
BUILDER_INCLUDED_TYPES_LAZY_INIT_BIT
private static final long BUILDER_INCLUDED_TYPES_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
builderIncludedTypes
private transient java.util.List<javax.lang.model.element.TypeElement> builderIncludedTypes
-
META_ANNOTATED_LAZY_INIT_BIT
private static final long META_ANNOTATED_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
metaAnnotated
private transient java.util.List<Proto.MetaAnnotated> metaAnnotated
-
STYLE_LAZY_INIT_BIT
private static final long STYLE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
style
private transient com.google.common.base.Optional<StyleInfo> style
-
DATATYPE_ENABLED_LAZY_INIT_BIT
private static final long DATATYPE_ENABLED_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
datatypeEnabled
private transient com.google.common.base.Optional<DataMirror> datatypeEnabled
-
SERIAL_VERSION_LAZY_INIT_BIT
private static final long SERIAL_VERSION_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
serialVersion
private transient com.google.common.base.Optional<java.lang.Long> serialVersion
-
IS_SERIAL_STRUCTURAL_LAZY_INIT_BIT
private static final long IS_SERIAL_STRUCTURAL_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
isSerialStructural
private transient boolean isSerialStructural
-
IS_JACKSON_SERIALIZED_LAZY_INIT_BIT
private static final long IS_JACKSON_SERIALIZED_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
isJacksonSerialized
private transient boolean isJacksonSerialized
-
IS_JACKSON_DESERIALIZED_LAZY_INIT_BIT
private static final long IS_JACKSON_DESERIALIZED_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
isJacksonDeserialized
private transient boolean isJacksonDeserialized
-
DEPLURALIZE_LAZY_INIT_BIT
private static final long DEPLURALIZE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
depluralize
private transient com.google.common.base.Optional<java.lang.String[]> depluralize
-
IS_JACKSON_DESERIALIZED_ANNOTATED_LAZY_INIT_BIT
private static final long IS_JACKSON_DESERIALIZED_ANNOTATED_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
isJacksonDeserializedAnnotated
private transient boolean isJacksonDeserializedAnnotated
-
IS_JACKSON_JSON_TYPE_INFO_LAZY_INIT_BIT
private static final long IS_JACKSON_JSON_TYPE_INFO_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
isJacksonJsonTypeInfo
private transient boolean isJacksonJsonTypeInfo
-
ENCLOSING_TOP_LEVEL_LAZY_INIT_BIT
private static final long ENCLOSING_TOP_LEVEL_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
enclosingTopLevel
private transient com.google.common.base.Optional<Proto.DeclaringType> enclosingTopLevel
-
CRITERIA_LAZY_INIT_BIT
private static final long CRITERIA_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
criteria
private transient com.google.common.base.Optional<CriteriaMirror> criteria
-
REPOSITORY_LAZY_INIT_BIT
private static final long REPOSITORY_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
repository
private transient com.google.common.base.Optional<RepositoryMirror> repository
-
CRITERIA_REPOSITORY_LAZY_INIT_BIT
private static final long CRITERIA_REPOSITORY_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
criteriaRepository
private transient com.google.common.base.Optional<CriteriaRepositoryMirror> criteriaRepository
-
ENCLOSING_OF_LAZY_INIT_BIT
private static final long ENCLOSING_OF_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
enclosingOf
private transient com.google.common.base.Optional<Proto.DeclaringType> enclosingOf
-
FEATURES_LAZY_INIT_BIT
private static final long FEATURES_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
features
private transient com.google.common.base.Optional<ValueImmutableInfo> features
-
JACKSON_SERIALIZE_MODE_LAZY_INIT_BIT
private static final long JACKSON_SERIALIZE_MODE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
jacksonSerializeMode
private transient Proto.JacksonMode jacksonSerializeMode
-
USE_IMMUTABLE_DEFAULTS_LAZY_INIT_BIT
private static final long USE_IMMUTABLE_DEFAULTS_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
useImmutableDefaults
private transient boolean useImmutableDefaults
-
IS_ENCLOSING_LAZY_INIT_BIT
private static final long IS_ENCLOSING_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
isEnclosing
private transient boolean isEnclosing
-
IS_MODIFIABLE_LAZY_INIT_BIT
private static final long IS_MODIFIABLE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
isModifiable
private transient boolean isModifiable
-
SOURCE_CODE_LAZY_INIT_BIT
private static final long SOURCE_CODE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
sourceCode
private transient java.lang.CharSequence sourceCode
-
HEADER_COMMENTS_LAZY_INIT_BIT
private static final long HEADER_COMMENTS_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
headerComments
private transient java.lang.CharSequence headerComments
-
SOURCE_IMPORTS_LAZY_INIT_BIT
private static final long SOURCE_IMPORTS_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
sourceImports
private transient SourceExtraction.Imports sourceImports
-
TRANSFORM_LAZY_INIT_BIT
private static final long TRANSFORM_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
transform
private transient com.google.common.base.Optional<TransformMirror> transform
-
TREES_INCLUDE_LAZY_INIT_BIT
private static final long TREES_INCLUDE_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
treesInclude
private transient com.google.common.base.Optional<TreesIncludeMirror> treesInclude
-
VISIT_LAZY_INIT_BIT
private static final long VISIT_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
visit
private transient com.google.common.base.Optional<VisitMirror> visit
-
IS_AST_LAZY_INIT_BIT
private static final long IS_AST_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
isAst
private transient boolean isAst
-
-
Constructor Detail
-
DeclaringType
private DeclaringType(Proto.Environment environment, Proto.Interning interner, javax.lang.model.element.TypeElement element)
-
-
Method Detail
-
environment
Proto.Environment environment()
- Specified by:
environmentin classProto.Diagnosable- Returns:
- The value of the
environmentattribute
-
simpleName
public java.lang.String simpleName()
- Overrides:
simpleNamein classProto.Diagnosable- Returns:
- The computed-at-construction value of the
simpleNameattribute
-
interner
Proto.Interning interner()
used to intern packaged created internally- Specified by:
internerin classProto.AbstractDeclaring
-
element
public javax.lang.model.element.TypeElement element()
Description copied from class:Proto.DiagnosableElement suitable for reporting as a source of declaration which might causing problems.- Specified by:
elementin classProto.DeclaringType- Returns:
- The value of the
elementattribute
-
name
public java.lang.String name()
- Overrides:
namein classProto.DeclaringType- Returns:
- The computed-at-construction value of the
nameattribute
-
packageOf
public Proto.DeclaringPackage packageOf()
- Overrides:
packageOfin classProto.DeclaringType- Returns:
- The computed-at-construction value of the
packageOfattribute
-
isTopLevel
public boolean isTopLevel()
- Overrides:
isTopLevelin classProto.DeclaringType- Returns:
- true, if is top level
-
isJavaBean
public boolean isJavaBean()
Checks if this element is a regular POJO (not an interface or abstract class) simple class with getters and setters- Overrides:
isJavaBeanin classProto.DeclaringType
-
withEnvironment
public final ImmutableProto.DeclaringType withEnvironment(Proto.Environment value)
Copy the current immutable object by setting a value for theenvironmentattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for environment- Returns:
- A modified copy of the
thisobject
-
withInterner
public final ImmutableProto.DeclaringType withInterner(Proto.Interning value)
Copy the current immutable object by setting a value for theinternerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for interner- Returns:
- A modified copy of the
thisobject
-
withElement
public final ImmutableProto.DeclaringType withElement(javax.lang.model.element.TypeElement value)
Copy the current immutable object by setting a value for theelementattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for element- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofDeclaringTypethat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableProto.DeclaringType another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:name.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueDeclaringTypewith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
include
protected com.google.common.base.Optional<IncludeMirror> include()
Returns a lazily initialized value of the
includeattribute. 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:
includein classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
includeattribute
-
builderInclude
protected com.google.common.base.Optional<FIncludeMirror> builderInclude()
Returns a lazily initialized value of the
builderIncludeattribute. 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:
builderIncludein classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
builderIncludeattribute
-
typeAdapters
public com.google.common.base.Optional<TypeAdaptersMirror> typeAdapters()
Returns a lazily initialized value of the
typeAdaptersattribute. 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:
typeAdaptersin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
typeAdaptersattribute
-
okTypeAdapters
public com.google.common.base.Optional<OkTypeAdaptersMirror> okTypeAdapters()
Returns a lazily initialized value of the
okTypeAdaptersattribute. 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:
okTypeAdaptersin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
okTypeAdaptersattribute
-
includedTypes
java.util.List<javax.lang.model.element.TypeElement> includedTypes()
Returns a lazily initialized value of the
includedTypesattribute. 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:
includedTypesin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
includedTypesattribute
-
builderIncludedTypes
java.util.List<javax.lang.model.element.TypeElement> builderIncludedTypes()
Returns a lazily initialized value of the
builderIncludedTypesattribute. 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:
builderIncludedTypesin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
builderIncludedTypesattribute
-
metaAnnotated
java.util.List<Proto.MetaAnnotated> metaAnnotated()
Returns a lazily initialized value of the
metaAnnotatedattribute. 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:
metaAnnotatedin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
metaAnnotatedattribute
-
style
public com.google.common.base.Optional<StyleInfo> style()
Returns a lazily initialized value of the
styleattribute. 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:
stylein classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
styleattribute
-
datatypeEnabled
public com.google.common.base.Optional<DataMirror> datatypeEnabled()
Returns a lazily initialized value of the
datatypeEnabledattribute. 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:
datatypeEnabledin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
datatypeEnabledattribute
-
serialVersion
public com.google.common.base.Optional<java.lang.Long> serialVersion()
Returns a lazily initialized value of the
serialVersionattribute. 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:
serialVersionin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
serialVersionattribute
-
isSerialStructural
public boolean isSerialStructural()
Returns a lazily initialized value of the
isSerialStructuralattribute. 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:
isSerialStructuralin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
isSerialStructuralattribute
-
isJacksonSerialized
public boolean isJacksonSerialized()
Returns a lazily initialized value of the
isJacksonSerializedattribute. 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:
isJacksonSerializedin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
isJacksonSerializedattribute
-
isJacksonDeserialized
public boolean isJacksonDeserialized()
Returns a lazily initialized value of the
isJacksonDeserializedattribute. 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:
isJacksonDeserializedin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
isJacksonDeserializedattribute
-
depluralize
public com.google.common.base.Optional<java.lang.String[]> depluralize()
Returns a lazily initialized value of the
depluralizeattribute. 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:
depluralizein classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
depluralizeattribute
-
isJacksonDeserializedAnnotated
public boolean isJacksonDeserializedAnnotated()
Returns a lazily initialized value of the
isJacksonDeserializedAnnotatedattribute. 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:
isJacksonDeserializedAnnotatedin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
isJacksonDeserializedAnnotatedattribute
-
isJacksonJsonTypeInfo
public boolean isJacksonJsonTypeInfo()
Returns a lazily initialized value of the
isJacksonJsonTypeInfoattribute. 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:
isJacksonJsonTypeInfoin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
isJacksonJsonTypeInfoattribute
-
enclosingTopLevel
public com.google.common.base.Optional<Proto.DeclaringType> enclosingTopLevel()
Returns a lazily initialized value of the
enclosingTopLevelattribute. 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:
enclosingTopLevelin classProto.DeclaringType- Returns:
- A lazily initialized value of the
enclosingTopLevelattribute
-
criteria
public com.google.common.base.Optional<CriteriaMirror> criteria()
Returns a lazily initialized value of the
criteriaattribute. 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:
criteriain classProto.DeclaringType- Returns:
- A lazily initialized value of the
criteriaattribute
-
repository
public com.google.common.base.Optional<RepositoryMirror> repository()
Returns a lazily initialized value of the
repositoryattribute. 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:
repositoryin classProto.DeclaringType- Returns:
- A lazily initialized value of the
repositoryattribute
-
criteriaRepository
public com.google.common.base.Optional<CriteriaRepositoryMirror> criteriaRepository()
Returns a lazily initialized value of the
criteriaRepositoryattribute. 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:
criteriaRepositoryin classProto.DeclaringType- Returns:
- A lazily initialized value of the
criteriaRepositoryattribute
-
enclosingOf
public com.google.common.base.Optional<Proto.DeclaringType> enclosingOf()
Returns a lazily initialized value of the
enclosingOfattribute. 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:
enclosingOfin classProto.DeclaringType- Returns:
- A lazily initialized value of the
enclosingOfattribute
-
features
public com.google.common.base.Optional<ValueImmutableInfo> features()
Returns a lazily initialized value of the
featuresattribute. 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:
featuresin classProto.DeclaringType- Returns:
- A lazily initialized value of the
featuresattribute
-
jacksonSerializeMode
public Proto.JacksonMode jacksonSerializeMode()
Returns a lazily initialized value of the
jacksonSerializeModeattribute. 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:
jacksonSerializeModein classProto.DeclaringType- Returns:
- A lazily initialized value of the
jacksonSerializeModeattribute
-
useImmutableDefaults
public boolean useImmutableDefaults()
Returns a lazily initialized value of the
useImmutableDefaultsattribute. 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:
useImmutableDefaultsin classProto.DeclaringType- Returns:
- A lazily initialized value of the
useImmutableDefaultsattribute
-
isEnclosing
public boolean isEnclosing()
Returns a lazily initialized value of the
isEnclosingattribute. 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:
isEnclosingin classProto.DeclaringType- Returns:
- A lazily initialized value of the
isEnclosingattribute
-
isModifiable
public boolean isModifiable()
Returns a lazily initialized value of the
isModifiableattribute. 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:
isModifiablein classProto.DeclaringType- Returns:
- A lazily initialized value of the
isModifiableattribute
-
sourceCode
public java.lang.CharSequence sourceCode()
Returns a lazily initialized value of the
sourceCodeattribute. 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:
sourceCodein classProto.DeclaringType- Returns:
- A lazily initialized value of the
sourceCodeattribute
-
headerComments
public java.lang.CharSequence headerComments()
Returns a lazily initialized value of the
headerCommentsattribute. 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:
headerCommentsin classProto.DeclaringType- Returns:
- A lazily initialized value of the
headerCommentsattribute
-
sourceImports
public SourceExtraction.Imports sourceImports()
Returns a lazily initialized value of the
sourceImportsattribute. 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:
sourceImportsin classProto.DeclaringType- Returns:
- A lazily initialized value of the
sourceImportsattribute
-
getTransform
public com.google.common.base.Optional<TransformMirror> getTransform()
Returns a lazily initialized value of the
transformattribute. 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:
getTransformin classProto.DeclaringType- Returns:
- A lazily initialized value of the
transformattribute
-
getTreesInclude
public com.google.common.base.Optional<TreesIncludeMirror> getTreesInclude()
Returns a lazily initialized value of the
treesIncludeattribute. 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:
getTreesIncludein classProto.DeclaringType- Returns:
- A lazily initialized value of the
treesIncludeattribute
-
getVisit
public com.google.common.base.Optional<VisitMirror> getVisit()
Returns a lazily initialized value of the
visitattribute. 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:
getVisitin classProto.DeclaringType- Returns:
- A lazily initialized value of the
visitattribute
-
isAst
public boolean isAst()
Returns a lazily initialized value of the
isAstattribute. 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:
isAstin classProto.DeclaringType- Returns:
- A lazily initialized value of the
isAstattribute
-
validate
private static ImmutableProto.DeclaringType validate(ImmutableProto.DeclaringType instance)
-
copyOf
public static ImmutableProto.DeclaringType copyOf(Proto.DeclaringType instance)
Creates an immutable copy of aProto.DeclaringTypevalue. 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 DeclaringType instance
-
builder
public static ImmutableProto.DeclaringType.Builder builder()
Creates a builder forDeclaringType.ImmutableProto.DeclaringType.builder() .environment(org.immutables.value.processor.meta.Proto.Environment) // requiredenvironment.interner(org.immutables.value.processor.meta.Proto.Interning) // requiredinterner.element(javax.lang.model.element.TypeElement) // requiredelement.build();- Returns:
- A new DeclaringType builder
-
-