Class ImmutableProto.DeclaringType
- Enclosing class:
ImmutableProto
Proto.DeclaringType.
Use the builder to create immutable instances:
ImmutableProto.DeclaringType.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeDeclaringType.private final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate static final longprivate com.google.common.base.Optional<FIncludeMirror> private List<TypeElement> private com.google.common.base.Optional<CriteriaMirror> private static final longprivate static final longprivate com.google.common.base.Optional<CriteriaRepositoryMirror> private static final longprivate com.google.common.base.Optional<DataMirror> private com.google.common.base.Optional<String[]> private static final longprivate final TypeElementprivate static final longprivate static final longprivate com.google.common.base.Optional<Proto.DeclaringType> private com.google.common.base.Optional<Proto.DeclaringType> private final Proto.Environmentprivate com.google.common.base.Optional<ValueImmutableInfo> private static final longprivate static final longprivate CharSequenceprivate com.google.common.base.Optional<IncludeMirror> private static final longprivate static final longprivate List<TypeElement> private final Proto.Interningprivate static final longprivate static final longprivate static final longprivate static final longprivate static final longprivate static final longprivate static final longprivate static final longprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate final booleanprivate booleanprivate booleanprivate final booleanprivate static final longprivate Proto.JacksonModeprivate longprivate static final longprivate List<Proto.MetaAnnotated> private final Stringprivate static final longprivate com.google.common.base.Optional<OkTypeAdaptersMirror> private final Proto.DeclaringPackageprivate com.google.common.base.Optional<RepositoryMirror> private static final longprivate static final longprivate com.google.common.base.Optional<Long> private final Stringprivate static final longprivate static final longprivate CharSequenceprivate SourceExtraction.Importsprivate static final byteprivate static final byteprivate static final byteprivate com.google.common.base.Optional<StyleInfo> private static final longprivate com.google.common.base.Optional<TransformMirror> private static final longprivate static final longprivate com.google.common.base.Optional<TreesIncludeMirror> private static final longprivate com.google.common.base.Optional<TypeAdaptersMirror> private static final longprivate booleanprivate com.google.common.base.Optional<VisitMirror> private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDeclaringType(Proto.Environment environment, Proto.Interning interner, TypeElement element) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forDeclaringType.protected com.google.common.base.Optional<FIncludeMirror> (package private) List<TypeElement> 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> com.google.common.base.Optional<DataMirror> com.google.common.base.Optional<String[]> element()Element suitable for reporting as a source of declaration which might causing problems.com.google.common.base.Optional<Proto.DeclaringType> com.google.common.base.Optional<Proto.DeclaringType> (package private) Proto.EnvironmentbooleanThis 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> com.google.common.base.Optional<TreesIncludeMirror> com.google.common.base.Optional<VisitMirror> getVisit()inthashCode()Computes a hash code from attributes:name.protected com.google.common.base.Optional<IncludeMirror> include()(package private) List<TypeElement> (package private) Proto.Interninginterner()used to intern packaged created internallybooleanisAst()booleanbooleanbooleanbooleanbooleanbooleanChecks if this element is a regular POJO (not an interface or abstract class) simple class with getters and settersbooleanbooleanboolean(package private) List<Proto.MetaAnnotated> name()com.google.common.base.Optional<OkTypeAdaptersMirror> com.google.common.base.Optional<RepositoryMirror> com.google.common.base.Optional<Long> com.google.common.base.Optional<StyleInfo> style()toString()Prints the immutable valueDeclaringTypewith attribute values.com.google.common.base.Optional<TypeAdaptersMirror> booleanprivate static ImmutableProto.DeclaringTypevalidate(ImmutableProto.DeclaringType instance) withElement(TypeElement value) Copy the current immutable object by setting a value for theelementattribute.withEnvironment(Proto.Environment value) Copy the current immutable object by setting a value for theenvironmentattribute.withInterner(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, verifiedFactoryMethods inherited from class org.immutables.value.processor.meta.Proto.AbstractDeclaring
asPrefix, asType, getAnnotationInjectionsMethods inherited from class org.immutables.value.processor.meta.Proto.Diagnosable
processing, report
-
Field Details
-
environment
-
simpleName
-
interner
-
element
-
name
-
packageOf
-
isTopLevel
private final transient boolean isTopLevel -
isJavaBean
private final transient boolean isJavaBean -
STAGE_INITIALIZING
private static final byte STAGE_INITIALIZING- See Also:
-
STAGE_UNINITIALIZED
private static final byte STAGE_UNINITIALIZED- See Also:
-
STAGE_INITIALIZED
private static final byte STAGE_INITIALIZED- See Also:
-
initShim
-
lazyInitBitmap
private transient volatile long lazyInitBitmap -
INCLUDE_LAZY_INIT_BIT
private static final long INCLUDE_LAZY_INIT_BIT- See Also:
-
include
-
BUILDER_INCLUDE_LAZY_INIT_BIT
private static final long BUILDER_INCLUDE_LAZY_INIT_BIT- See Also:
-
builderInclude
-
TYPE_ADAPTERS_LAZY_INIT_BIT
private static final long TYPE_ADAPTERS_LAZY_INIT_BIT- See Also:
-
typeAdapters
-
OK_TYPE_ADAPTERS_LAZY_INIT_BIT
private static final long OK_TYPE_ADAPTERS_LAZY_INIT_BIT- See Also:
-
okTypeAdapters
-
INCLUDED_TYPES_LAZY_INIT_BIT
private static final long INCLUDED_TYPES_LAZY_INIT_BIT- See Also:
-
includedTypes
-
BUILDER_INCLUDED_TYPES_LAZY_INIT_BIT
private static final long BUILDER_INCLUDED_TYPES_LAZY_INIT_BIT- See Also:
-
builderIncludedTypes
-
META_ANNOTATED_LAZY_INIT_BIT
private static final long META_ANNOTATED_LAZY_INIT_BIT- See Also:
-
metaAnnotated
-
STYLE_LAZY_INIT_BIT
private static final long STYLE_LAZY_INIT_BIT- See Also:
-
style
-
DATATYPE_ENABLED_LAZY_INIT_BIT
private static final long DATATYPE_ENABLED_LAZY_INIT_BIT- See Also:
-
datatypeEnabled
-
SERIAL_VERSION_LAZY_INIT_BIT
private static final long SERIAL_VERSION_LAZY_INIT_BIT- See Also:
-
serialVersion
-
IS_SERIAL_STRUCTURAL_LAZY_INIT_BIT
private static final long IS_SERIAL_STRUCTURAL_LAZY_INIT_BIT- See Also:
-
isSerialStructural
private transient boolean isSerialStructural -
IS_JACKSON_SERIALIZED_LAZY_INIT_BIT
private static final long IS_JACKSON_SERIALIZED_LAZY_INIT_BIT- See Also:
-
isJacksonSerialized
private transient boolean isJacksonSerialized -
IS_JACKSON_DESERIALIZED_LAZY_INIT_BIT
private static final long IS_JACKSON_DESERIALIZED_LAZY_INIT_BIT- See Also:
-
isJacksonDeserialized
private transient boolean isJacksonDeserialized -
DEPLURALIZE_LAZY_INIT_BIT
private static final long DEPLURALIZE_LAZY_INIT_BIT- See Also:
-
depluralize
-
IS_JACKSON_DESERIALIZED_ANNOTATED_LAZY_INIT_BIT
private static final long IS_JACKSON_DESERIALIZED_ANNOTATED_LAZY_INIT_BIT- See Also:
-
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:
-
isJacksonJsonTypeInfo
private transient boolean isJacksonJsonTypeInfo -
ENCLOSING_TOP_LEVEL_LAZY_INIT_BIT
private static final long ENCLOSING_TOP_LEVEL_LAZY_INIT_BIT- See Also:
-
enclosingTopLevel
-
CRITERIA_LAZY_INIT_BIT
private static final long CRITERIA_LAZY_INIT_BIT- See Also:
-
criteria
-
REPOSITORY_LAZY_INIT_BIT
private static final long REPOSITORY_LAZY_INIT_BIT- See Also:
-
repository
-
CRITERIA_REPOSITORY_LAZY_INIT_BIT
private static final long CRITERIA_REPOSITORY_LAZY_INIT_BIT- See Also:
-
criteriaRepository
-
ENCLOSING_OF_LAZY_INIT_BIT
private static final long ENCLOSING_OF_LAZY_INIT_BIT- See Also:
-
enclosingOf
-
FEATURES_LAZY_INIT_BIT
private static final long FEATURES_LAZY_INIT_BIT- See Also:
-
features
-
JACKSON_SERIALIZE_MODE_LAZY_INIT_BIT
private static final long JACKSON_SERIALIZE_MODE_LAZY_INIT_BIT- See Also:
-
jacksonSerializeMode
-
USE_IMMUTABLE_DEFAULTS_LAZY_INIT_BIT
private static final long USE_IMMUTABLE_DEFAULTS_LAZY_INIT_BIT- See Also:
-
useImmutableDefaults
private transient boolean useImmutableDefaults -
IS_ENCLOSING_LAZY_INIT_BIT
private static final long IS_ENCLOSING_LAZY_INIT_BIT- See Also:
-
isEnclosing
private transient boolean isEnclosing -
IS_MODIFIABLE_LAZY_INIT_BIT
private static final long IS_MODIFIABLE_LAZY_INIT_BIT- See Also:
-
isModifiable
private transient boolean isModifiable -
SOURCE_CODE_LAZY_INIT_BIT
private static final long SOURCE_CODE_LAZY_INIT_BIT- See Also:
-
sourceCode
-
HEADER_COMMENTS_LAZY_INIT_BIT
private static final long HEADER_COMMENTS_LAZY_INIT_BIT- See Also:
-
headerComments
-
SOURCE_IMPORTS_LAZY_INIT_BIT
private static final long SOURCE_IMPORTS_LAZY_INIT_BIT- See Also:
-
sourceImports
-
TRANSFORM_LAZY_INIT_BIT
private static final long TRANSFORM_LAZY_INIT_BIT- See Also:
-
transform
-
TREES_INCLUDE_LAZY_INIT_BIT
private static final long TREES_INCLUDE_LAZY_INIT_BIT- See Also:
-
treesInclude
-
VISIT_LAZY_INIT_BIT
private static final long VISIT_LAZY_INIT_BIT- See Also:
-
visit
-
IS_AST_LAZY_INIT_BIT
private static final long IS_AST_LAZY_INIT_BIT- See Also:
-
isAst
private transient boolean isAst
-
-
Constructor Details
-
DeclaringType
-
-
Method Details
-
environment
Proto.Environment environment()- Specified by:
environmentin classProto.Diagnosable- Returns:
- The value of the
environmentattribute
-
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
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
- Overrides:
namein classProto.DeclaringType- Returns:
- The computed-at-construction value of the
nameattribute
-
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
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
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
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
This instance is equal to all instances ofDeclaringTypethat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:name. -
toString
Prints the immutable valueDeclaringTypewith attribute values. -
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
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
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
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
List<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
List<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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
copyOf
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
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
-