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 ofProto.MetaAnnotated.Use the static factory method to create immutable instances:
ImmutableProto.MetaAnnotated.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classImmutableProto.MetaAnnotated.InitShim
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.base.Optional<DataMirror>datatypeEnabledprivate com.google.common.base.Optional<java.lang.String[]>depluralizeprivate javax.lang.model.element.Elementelementprivate java.util.Set<EncodingInfo>encodingsprivate Proto.Environmentenvironmentprivate ImmutableProto.MetaAnnotated.InitShiminitShimprivate com.google.common.collect.ImmutableList<AnnotationInjections.InjectionInfo>injectAnnotationprivate booleanisEnclosingprivate booleanisJacksonDeserializedprivate booleanisJacksonJsonTypeInfoprivate booleanisJacksonSerializedprivate booleanisJsonQualifierprivate booleanisSerialStructuralprivate java.lang.StringqualifiedNameprivate com.google.common.base.Optional<java.lang.Long>serialVersionprivate static byteSTAGE_INITIALIZEDprivate static byteSTAGE_INITIALIZINGprivate static byteSTAGE_UNINITIALIZEDprivate com.google.common.base.Optional<StyleInfo>style
-
Constructor Summary
Constructors Modifier Constructor Description privateMetaAnnotated(javax.lang.model.element.Element element, java.lang.String qualifiedName, Proto.Environment environment)privateMetaAnnotated(ImmutableProto.MetaAnnotated original, javax.lang.model.element.Element element, java.lang.String qualifiedName, Proto.Environment environment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableProto.MetaAnnotatedcopyOf(Proto.MetaAnnotated instance)Creates an immutable copy of aProto.MetaAnnotatedvalue.com.google.common.base.Optional<DataMirror>datatypeEnabled()com.google.common.base.Optional<java.lang.String[]>depluralize()javax.lang.model.element.Elementelement()java.util.Set<EncodingInfo>encodings()Proto.Environmentenvironment()booleanequals(java.lang.Object another)This instance is equal to all instances ofMetaAnnotatedthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableProto.MetaAnnotated another)inthashCode()Returns a constant hash code value.com.google.common.collect.ImmutableList<AnnotationInjections.InjectionInfo>injectAnnotation()booleanisEnclosing()booleanisJacksonDeserialized()booleanisJacksonJsonTypeInfo()booleanisJacksonSerialized()booleanisJsonQualifier()booleanisSerialStructural()static ImmutableProto.MetaAnnotatedof(javax.lang.model.element.Element element, java.lang.String qualifiedName, Proto.Environment environment)Construct a new immutableMetaAnnotatedinstance.java.lang.StringqualifiedName()com.google.common.base.Optional<java.lang.Long>serialVersion()com.google.common.base.Optional<StyleInfo>style()java.lang.StringtoString()Prints the immutable valueMetaAnnotated.ImmutableProto.MetaAnnotatedwithElement(javax.lang.model.element.Element value)Copy the current immutable object by setting a value for theelementattribute.ImmutableProto.MetaAnnotatedwithEnvironment(Proto.Environment value)Copy the current immutable object by setting a value for theenvironmentattribute.ImmutableProto.MetaAnnotatedwithQualifiedName(java.lang.String value)Copy the current immutable object by setting a value for thequalifiedNameattribute.-
Methods inherited from class org.immutables.value.processor.meta.Proto.MetaAnnotated
from
-
-
-
-
Field Detail
-
element
private final javax.lang.model.element.Element element
-
qualifiedName
private final java.lang.String qualifiedName
-
environment
private final Proto.Environment environment
-
encodings
private final transient java.util.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<java.lang.String[]> depluralize
-
serialVersion
private final transient com.google.common.base.Optional<java.lang.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:
- Constant Field Values
-
STAGE_UNINITIALIZED
private static final byte STAGE_UNINITIALIZED
- See Also:
- Constant Field Values
-
STAGE_INITIALIZED
private static final byte STAGE_INITIALIZED
- See Also:
- Constant Field Values
-
initShim
private transient volatile ImmutableProto.MetaAnnotated.InitShim initShim
-
-
Constructor Detail
-
MetaAnnotated
private MetaAnnotated(javax.lang.model.element.Element element, java.lang.String qualifiedName, Proto.Environment environment)
-
MetaAnnotated
private MetaAnnotated(ImmutableProto.MetaAnnotated original, javax.lang.model.element.Element element, java.lang.String qualifiedName, Proto.Environment environment)
-
-
Method Detail
-
element
public javax.lang.model.element.Element element()
- Specified by:
elementin classProto.MetaAnnotated- Returns:
- The value of the
elementattribute
-
qualifiedName
public java.lang.String qualifiedName()
- Specified by:
qualifiedNamein classProto.MetaAnnotated- Returns:
- The value of the
qualifiedNameattribute
-
environment
public Proto.Environment environment()
- Specified by:
environmentin classProto.MetaAnnotated- Returns:
- The value of the
environmentattribute
-
encodings
public java.util.Set<EncodingInfo> encodings()
- Overrides:
encodingsin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
encodingsattribute
-
datatypeEnabled
public com.google.common.base.Optional<DataMirror> datatypeEnabled()
- Overrides:
datatypeEnabledin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
datatypeEnabledattribute
-
style
public com.google.common.base.Optional<StyleInfo> style()
- Overrides:
stylein classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
styleattribute
-
depluralize
public com.google.common.base.Optional<java.lang.String[]> depluralize()
- Overrides:
depluralizein classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
depluralizeattribute
-
serialVersion
public com.google.common.base.Optional<java.lang.Long> serialVersion()
- Overrides:
serialVersionin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
serialVersionattribute
-
isSerialStructural
public boolean isSerialStructural()
- Overrides:
isSerialStructuralin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
isSerialStructuralattribute
-
isJacksonSerialized
public boolean isJacksonSerialized()
- Overrides:
isJacksonSerializedin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
isJacksonSerializedattribute
-
isJacksonDeserialized
public boolean isJacksonDeserialized()
- Overrides:
isJacksonDeserializedin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
isJacksonDeserializedattribute
-
isJacksonJsonTypeInfo
public boolean isJacksonJsonTypeInfo()
- Overrides:
isJacksonJsonTypeInfoin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
isJacksonJsonTypeInfoattribute
-
isJsonQualifier
public boolean isJsonQualifier()
- Overrides:
isJsonQualifierin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
isJsonQualifierattribute
-
isEnclosing
public boolean isEnclosing()
- Overrides:
isEnclosingin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
isEnclosingattribute
-
injectAnnotation
public com.google.common.collect.ImmutableList<AnnotationInjections.InjectionInfo> injectAnnotation()
- Overrides:
injectAnnotationin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
injectAnnotationattribute
-
withElement
public final ImmutableProto.MetaAnnotated withElement(javax.lang.model.element.Element value)
Copy the current immutable object by setting a value for theelementattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for element- Returns:
- A modified copy of the
thisobject
-
withQualifiedName
public final ImmutableProto.MetaAnnotated withQualifiedName(java.lang.String value)
Copy the current immutable object by setting a value for thequalifiedNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for qualifiedName- Returns:
- A modified copy of the
thisobject
-
withEnvironment
public final ImmutableProto.MetaAnnotated withEnvironment(Proto.Environment value)
Copy the current immutable object by setting a value for theenvironmentattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for environment- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofMetaAnnotatedthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableProto.MetaAnnotated another)
-
hashCode
public int hashCode()
Returns a constant hash code value.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueMetaAnnotated.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
public static ImmutableProto.MetaAnnotated of(javax.lang.model.element.Element element, java.lang.String qualifiedName, Proto.Environment environment)
Construct a new immutableMetaAnnotatedinstance.- Parameters:
element- The value for theelementattributequalifiedName- The value for thequalifiedNameattributeenvironment- The value for theenvironmentattribute- Returns:
- An immutable MetaAnnotated instance
-
copyOf
public static ImmutableProto.MetaAnnotated copyOf(Proto.MetaAnnotated instance)
Creates an immutable copy of aProto.MetaAnnotatedvalue. 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
-
-