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 Details

    • environment

      private final Proto.Environment environment
    • simpleName

      private final transient String simpleName
    • interner

      private final Proto.Interning interner
    • element

      private final TypeElement element
    • name

      private final transient 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:
    • STAGE_UNINITIALIZED

      private static final byte STAGE_UNINITIALIZED
      See Also:
    • STAGE_INITIALIZED

      private static final byte STAGE_INITIALIZED
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • includedTypes

      private transient List<TypeElement> includedTypes
    • BUILDER_INCLUDED_TYPES_LAZY_INIT_BIT

      private static final long BUILDER_INCLUDED_TYPES_LAZY_INIT_BIT
      See Also:
    • builderIncludedTypes

      private transient List<TypeElement> builderIncludedTypes
    • META_ANNOTATED_LAZY_INIT_BIT

      private static final long META_ANNOTATED_LAZY_INIT_BIT
      See Also:
    • metaAnnotated

      private transient List<Proto.MetaAnnotated> metaAnnotated
    • STYLE_LAZY_INIT_BIT

      private static final long STYLE_LAZY_INIT_BIT
      See Also:
    • 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:
    • 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:
    • serialVersion

      private transient com.google.common.base.Optional<Long> 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

      private transient com.google.common.base.Optional<String[]> 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

      private transient com.google.common.base.Optional<Proto.DeclaringType> enclosingTopLevel
    • CRITERIA_LAZY_INIT_BIT

      private static final long CRITERIA_LAZY_INIT_BIT
      See Also:
    • criteria

      private transient com.google.common.base.Optional<CriteriaMirror> criteria
    • REPOSITORY_LAZY_INIT_BIT

      private static final long REPOSITORY_LAZY_INIT_BIT
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • jacksonSerializeMode

      private transient Proto.JacksonMode 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

      private transient CharSequence sourceCode
    • HEADER_COMMENTS_LAZY_INIT_BIT

      private static final long HEADER_COMMENTS_LAZY_INIT_BIT
      See Also:
    • headerComments

      private transient CharSequence headerComments
    • SOURCE_IMPORTS_LAZY_INIT_BIT

      private static final long SOURCE_IMPORTS_LAZY_INIT_BIT
      See Also:
    • sourceImports

      private transient SourceExtraction.Imports sourceImports
    • TRANSFORM_LAZY_INIT_BIT

      private static final long TRANSFORM_LAZY_INIT_BIT
      See Also:
    • 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:
    • treesInclude

      private transient com.google.common.base.Optional<TreesIncludeMirror> treesInclude
    • VISIT_LAZY_INIT_BIT

      private static final long VISIT_LAZY_INIT_BIT
      See Also:
    • 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:
    • isAst

      private transient boolean isAst
  • Constructor Details

  • Method Details

    • environment

      Proto.Environment environment()
      Specified by:
      environment in class Proto.Diagnosable
      Returns:
      The value of the environment attribute
    • simpleName

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

      Proto.Interning interner()
      used to intern packaged created internally
      Specified by:
      interner in class Proto.AbstractDeclaring
    • element

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

      public Proto.DeclaringPackage packageOf()
      Overrides:
      packageOf in class Proto.DeclaringType
      Returns:
      The computed-at-construction value of the packageOf attribute
    • isTopLevel

      public boolean isTopLevel()
      Overrides:
      isTopLevel in class Proto.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:
      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(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 Object another)
      This instance is equal to all instances of DeclaringType that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • equalTo

      private boolean equalTo(int synthetic, ImmutableProto.DeclaringType another)
    • hashCode

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

      public String toString()
      Prints the immutable value DeclaringType with attribute values.
      Overrides:
      toString in class 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

      List<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

      List<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

      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<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<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 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 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
    • validate

      private static ImmutableProto.DeclaringType validate(ImmutableProto.DeclaringType instance)
    • 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