Class ImmutableProto.DeclaringType

  • Enclosing class:
    ImmutableProto

    @Immutable
    public static final class ImmutableProto.DeclaringType
    extends Proto.DeclaringType
    Immutable implementation of Proto.DeclaringType.

    Use the builder to create immutable instances: ImmutableProto.DeclaringType.builder().

    • Field Detail

      • simpleName

        private final transient java.lang.String simpleName
      • element

        private final javax.lang.model.element.TypeElement element
      • name

        private final transient java.lang.String name
      • isTopLevel

        private final transient boolean isTopLevel
      • isJavaBean

        private final transient boolean isJavaBean
      • lazyInitBitmap

        private transient volatile long lazyInitBitmap
      • 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
      • 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
      • 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
      • 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
      • 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

        private transient com.google.common.base.Optional<VisitMirror> visit
      • isAst

        private transient boolean isAst
    • Method Detail

      • simpleName

        public java.lang.String simpleName()
        Overrides:
        simpleName in class Proto.Diagnosable
        Returns:
        The computed-at-construction value of the simpleName attribute
      • element

        public javax.lang.model.element.TypeElement element()
        Description copied from class: Proto.Diagnosable
        Element suitable for reporting as a source of declaration which might causing problems.
        Specified by:
        element in class Proto.DeclaringType
        Returns:
        The value of the element attribute
      • name

        public java.lang.String name()
        Overrides:
        name in class Proto.DeclaringType
        Returns:
        The computed-at-construction value of the name attribute
      • 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:
        isJavaBean in class Proto.DeclaringType
      • withEnvironment

        public final ImmutableProto.DeclaringType withEnvironment​(Proto.Environment value)
        Copy the current immutable object by setting a value for the environment attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for environment
        Returns:
        A modified copy of the this object
      • withInterner

        public final ImmutableProto.DeclaringType withInterner​(Proto.Interning value)
        Copy the current immutable object by setting a value for the interner attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for interner
        Returns:
        A modified copy of the this object
      • withElement

        public final ImmutableProto.DeclaringType withElement​(javax.lang.model.element.TypeElement value)
        Copy the current immutable object by setting a value for the element attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for element
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of DeclaringType that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: name.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value DeclaringType with attribute values.
        Overrides:
        toString in class java.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 include attribute. 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:
        include in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the include attribute
      • builderInclude

        protected com.google.common.base.Optional<FIncludeMirror> builderInclude()

        Returns a lazily initialized value of the builderInclude attribute. 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:
        builderInclude in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the builderInclude attribute
      • typeAdapters

        public com.google.common.base.Optional<TypeAdaptersMirror> typeAdapters()

        Returns a lazily initialized value of the typeAdapters attribute. 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:
        typeAdapters in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the typeAdapters attribute
      • okTypeAdapters

        public com.google.common.base.Optional<OkTypeAdaptersMirror> okTypeAdapters()

        Returns a lazily initialized value of the okTypeAdapters attribute. 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:
        okTypeAdapters in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the okTypeAdapters attribute
      • includedTypes

        java.util.List<javax.lang.model.element.TypeElement> includedTypes()

        Returns a lazily initialized value of the includedTypes attribute. 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:
        includedTypes in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the includedTypes attribute
      • builderIncludedTypes

        java.util.List<javax.lang.model.element.TypeElement> builderIncludedTypes()

        Returns a lazily initialized value of the builderIncludedTypes attribute. 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:
        builderIncludedTypes in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the builderIncludedTypes attribute
      • metaAnnotated

        java.util.List<Proto.MetaAnnotated> metaAnnotated()

        Returns a lazily initialized value of the metaAnnotated attribute. 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:
        metaAnnotated in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the metaAnnotated attribute
      • style

        public com.google.common.base.Optional<StyleInfo> style()

        Returns a lazily initialized value of the style attribute. 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:
        style in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the style attribute
      • datatypeEnabled

        public com.google.common.base.Optional<DataMirror> datatypeEnabled()

        Returns a lazily initialized value of the datatypeEnabled attribute. 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:
        datatypeEnabled in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the datatypeEnabled attribute
      • serialVersion

        public com.google.common.base.Optional<java.lang.Long> serialVersion()

        Returns a lazily initialized value of the serialVersion attribute. 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:
        serialVersion in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the serialVersion attribute
      • isSerialStructural

        public boolean isSerialStructural()

        Returns a lazily initialized value of the isSerialStructural attribute. 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:
        isSerialStructural in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the isSerialStructural attribute
      • isJacksonSerialized

        public boolean isJacksonSerialized()

        Returns a lazily initialized value of the isJacksonSerialized attribute. 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:
        isJacksonSerialized in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the isJacksonSerialized attribute
      • isJacksonDeserialized

        public boolean isJacksonDeserialized()

        Returns a lazily initialized value of the isJacksonDeserialized attribute. 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:
        isJacksonDeserialized in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the isJacksonDeserialized attribute
      • depluralize

        public com.google.common.base.Optional<java.lang.String[]> depluralize()

        Returns a lazily initialized value of the depluralize attribute. 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:
        depluralize in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the depluralize attribute
      • isJacksonDeserializedAnnotated

        public boolean isJacksonDeserializedAnnotated()

        Returns a lazily initialized value of the isJacksonDeserializedAnnotated attribute. 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:
        isJacksonDeserializedAnnotated in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the isJacksonDeserializedAnnotated attribute
      • isJacksonJsonTypeInfo

        public boolean isJacksonJsonTypeInfo()

        Returns a lazily initialized value of the isJacksonJsonTypeInfo attribute. 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:
        isJacksonJsonTypeInfo in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the isJacksonJsonTypeInfo attribute
      • enclosingTopLevel

        public com.google.common.base.Optional<Proto.DeclaringType> enclosingTopLevel()

        Returns a lazily initialized value of the enclosingTopLevel attribute. 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:
        enclosingTopLevel in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the enclosingTopLevel attribute
      • criteria

        public com.google.common.base.Optional<CriteriaMirror> criteria()

        Returns a lazily initialized value of the criteria attribute. 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:
        criteria in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the criteria attribute
      • repository

        public com.google.common.base.Optional<RepositoryMirror> repository()

        Returns a lazily initialized value of the repository attribute. 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:
        repository in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the repository attribute
      • criteriaRepository

        public com.google.common.base.Optional<CriteriaRepositoryMirror> criteriaRepository()

        Returns a lazily initialized value of the criteriaRepository attribute. 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:
        criteriaRepository in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the criteriaRepository attribute
      • enclosingOf

        public com.google.common.base.Optional<Proto.DeclaringType> enclosingOf()

        Returns a lazily initialized value of the enclosingOf attribute. 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:
        enclosingOf in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the enclosingOf attribute
      • features

        public com.google.common.base.Optional<ValueImmutableInfo> features()

        Returns a lazily initialized value of the features attribute. 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:
        features in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the features attribute
      • jacksonSerializeMode

        public Proto.JacksonMode jacksonSerializeMode()

        Returns a lazily initialized value of the jacksonSerializeMode attribute. 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:
        jacksonSerializeMode in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the jacksonSerializeMode attribute
      • useImmutableDefaults

        public boolean useImmutableDefaults()

        Returns a lazily initialized value of the useImmutableDefaults attribute. 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:
        useImmutableDefaults in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the useImmutableDefaults attribute
      • isEnclosing

        public boolean isEnclosing()

        Returns a lazily initialized value of the isEnclosing attribute. 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:
        isEnclosing in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the isEnclosing attribute
      • isModifiable

        public boolean isModifiable()

        Returns a lazily initialized value of the isModifiable attribute. 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:
        isModifiable in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the isModifiable attribute
      • sourceCode

        public java.lang.CharSequence sourceCode()

        Returns a lazily initialized value of the sourceCode attribute. 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:
        sourceCode in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the sourceCode attribute
      • headerComments

        public java.lang.CharSequence headerComments()

        Returns a lazily initialized value of the headerComments attribute. 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:
        headerComments in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the headerComments attribute
      • sourceImports

        public SourceExtraction.Imports sourceImports()

        Returns a lazily initialized value of the sourceImports attribute. 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:
        sourceImports in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the sourceImports attribute
      • getTransform

        public com.google.common.base.Optional<TransformMirror> getTransform()

        Returns a lazily initialized value of the transform attribute. 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:
        getTransform in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the transform attribute
      • getTreesInclude

        public com.google.common.base.Optional<TreesIncludeMirror> getTreesInclude()

        Returns a lazily initialized value of the treesInclude attribute. 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:
        getTreesInclude in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the treesInclude attribute
      • getVisit

        public com.google.common.base.Optional<VisitMirror> getVisit()

        Returns a lazily initialized value of the visit attribute. 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:
        getVisit in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the visit attribute
      • isAst

        public boolean isAst()

        Returns a lazily initialized value of the isAst attribute. 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:
        isAst in class Proto.DeclaringType
        Returns:
        A lazily initialized value of the isAst attribute
      • copyOf

        public static ImmutableProto.DeclaringType copyOf​(Proto.DeclaringType instance)
        Creates an immutable copy of a Proto.DeclaringType value. 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 for DeclaringType.
         ImmutableProto.DeclaringType.builder()
            .environment(org.immutables.value.processor.meta.Proto.Environment) // required environment
            .interner(org.immutables.value.processor.meta.Proto.Interning) // required interner
            .element(javax.lang.model.element.TypeElement) // required element
            .build();
         
        Returns:
        A new DeclaringType builder