Class ImmutableProto.MetaAnnotated

java.lang.Object
org.immutables.value.processor.meta.Proto.MetaAnnotated
org.immutables.value.processor.meta.ImmutableProto.MetaAnnotated
Enclosing class:
ImmutableProto

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

Use the static factory method to create immutable instances: ImmutableProto.MetaAnnotated.of().

  • Field Details

    • element

      private final Element element
    • qualifiedName

      private final String qualifiedName
    • environment

      private final Proto.Environment environment
    • encodings

      private final transient Set<EncodingInfo> encodings
    • datatypeEnabled

      private final transient com.google.common.base.Optional<DataMirror> datatypeEnabled
    • style

      private final transient com.google.common.base.Optional<StyleInfo> style
    • depluralize

      private final transient com.google.common.base.Optional<String[]> depluralize
    • serialVersion

      private final transient com.google.common.base.Optional<Long> serialVersion
    • isSerialStructural

      private final transient boolean isSerialStructural
    • isJacksonSerialized

      private final transient boolean isJacksonSerialized
    • isJacksonDeserialized

      private final transient boolean isJacksonDeserialized
    • isJacksonJsonTypeInfo

      private final transient boolean isJacksonJsonTypeInfo
    • isJsonQualifier

      private final transient boolean isJsonQualifier
    • isEnclosing

      private final transient boolean isEnclosing
    • injectAnnotation

      private final transient com.google.common.collect.ImmutableList<AnnotationInjections.InjectionInfo> injectAnnotation
    • 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.MetaAnnotated.InitShim initShim
  • Constructor Details

  • Method Details

    • element

      public Element element()
      Specified by:
      element in class Proto.MetaAnnotated
      Returns:
      The value of the element attribute
    • qualifiedName

      public String qualifiedName()
      Specified by:
      qualifiedName in class Proto.MetaAnnotated
      Returns:
      The value of the qualifiedName attribute
    • environment

      public Proto.Environment environment()
      Specified by:
      environment in class Proto.MetaAnnotated
      Returns:
      The value of the environment attribute
    • encodings

      public Set<EncodingInfo> encodings()
      Overrides:
      encodings in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the encodings attribute
    • datatypeEnabled

      public com.google.common.base.Optional<DataMirror> datatypeEnabled()
      Overrides:
      datatypeEnabled in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the datatypeEnabled attribute
    • style

      public com.google.common.base.Optional<StyleInfo> style()
      Overrides:
      style in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the style attribute
    • depluralize

      public com.google.common.base.Optional<String[]> depluralize()
      Overrides:
      depluralize in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the depluralize attribute
    • serialVersion

      public com.google.common.base.Optional<Long> serialVersion()
      Overrides:
      serialVersion in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the serialVersion attribute
    • isSerialStructural

      public boolean isSerialStructural()
      Overrides:
      isSerialStructural in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the isSerialStructural attribute
    • isJacksonSerialized

      public boolean isJacksonSerialized()
      Overrides:
      isJacksonSerialized in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the isJacksonSerialized attribute
    • isJacksonDeserialized

      public boolean isJacksonDeserialized()
      Overrides:
      isJacksonDeserialized in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the isJacksonDeserialized attribute
    • isJacksonJsonTypeInfo

      public boolean isJacksonJsonTypeInfo()
      Overrides:
      isJacksonJsonTypeInfo in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the isJacksonJsonTypeInfo attribute
    • isJsonQualifier

      public boolean isJsonQualifier()
      Overrides:
      isJsonQualifier in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the isJsonQualifier attribute
    • isEnclosing

      public boolean isEnclosing()
      Overrides:
      isEnclosing in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the isEnclosing attribute
    • injectAnnotation

      public com.google.common.collect.ImmutableList<AnnotationInjections.InjectionInfo> injectAnnotation()
      Overrides:
      injectAnnotation in class Proto.MetaAnnotated
      Returns:
      The computed-at-construction value of the injectAnnotation attribute
    • withElement

      public final ImmutableProto.MetaAnnotated withElement(Element 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
    • withQualifiedName

      public final ImmutableProto.MetaAnnotated withQualifiedName(String value)
      Copy the current immutable object by setting a value for the qualifiedName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for qualifiedName
      Returns:
      A modified copy of the this object
    • withEnvironment

      public final ImmutableProto.MetaAnnotated 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
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of MetaAnnotated 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.MetaAnnotated another)
    • hashCode

      public int hashCode()
      Returns a constant hash code value.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value MetaAnnotated.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • of

      public static ImmutableProto.MetaAnnotated of(Element element, String qualifiedName, Proto.Environment environment)
      Construct a new immutable MetaAnnotated instance.
      Parameters:
      element - The value for the element attribute
      qualifiedName - The value for the qualifiedName attribute
      environment - The value for the environment attribute
      Returns:
      An immutable MetaAnnotated instance
    • copyOf

      public static ImmutableProto.MetaAnnotated copyOf(Proto.MetaAnnotated instance)
      Creates an immutable copy of a Proto.MetaAnnotated 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 MetaAnnotated instance