Class ImmutableProto.MetaAnnotated
java.lang.Object
org.immutables.value.processor.meta.Proto.MetaAnnotated
org.immutables.value.processor.meta.ImmutableProto.MetaAnnotated
- Enclosing class:
ImmutableProto
Immutable implementation of
Proto.MetaAnnotated.
Use the static factory method to create immutable instances:
ImmutableProto.MetaAnnotated.of().
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.base.Optional<DataMirror> private final com.google.common.base.Optional<String[]> private final Elementprivate final Set<EncodingInfo> private final Proto.Environmentprivate final com.google.common.collect.ImmutableList<AnnotationInjections.InjectionInfo> private final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final Stringprivate final com.google.common.base.Optional<Long> private static final byteprivate static final byteprivate static final byteprivate final com.google.common.base.Optional<StyleInfo> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMetaAnnotated(Element element, String qualifiedName, Proto.Environment environment) privateMetaAnnotated(ImmutableProto.MetaAnnotated original, Element element, String qualifiedName, Proto.Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableProto.MetaAnnotatedcopyOf(Proto.MetaAnnotated instance) Creates an immutable copy of aProto.MetaAnnotatedvalue.com.google.common.base.Optional<DataMirror> com.google.common.base.Optional<String[]> element()booleanThis 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> booleanbooleanbooleanbooleanbooleanbooleanstatic ImmutableProto.MetaAnnotatedof(Element element, String qualifiedName, Proto.Environment environment) Construct a new immutableMetaAnnotatedinstance.com.google.common.base.Optional<Long> com.google.common.base.Optional<StyleInfo> style()toString()Prints the immutable valueMetaAnnotated.withElement(Element 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.withQualifiedName(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 Details
-
element
-
qualifiedName
-
environment
-
encodings
-
datatypeEnabled
-
style
-
depluralize
-
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
-
-
Constructor Details
-
MetaAnnotated
-
MetaAnnotated
private MetaAnnotated(ImmutableProto.MetaAnnotated original, Element element, String qualifiedName, Proto.Environment environment)
-
-
Method Details
-
element
- Specified by:
elementin classProto.MetaAnnotated- Returns:
- The value of the
elementattribute
-
qualifiedName
- Specified by:
qualifiedNamein classProto.MetaAnnotated- Returns:
- The value of the
qualifiedNameattribute
-
environment
- Specified by:
environmentin classProto.MetaAnnotated- Returns:
- The value of the
environmentattribute
-
encodings
- Overrides:
encodingsin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
encodingsattribute
-
datatypeEnabled
- Overrides:
datatypeEnabledin classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
datatypeEnabledattribute
-
style
- Overrides:
stylein classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
styleattribute
-
depluralize
- Overrides:
depluralizein classProto.MetaAnnotated- Returns:
- The computed-at-construction value of the
depluralizeattribute
-
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
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
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
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
This instance is equal to all instances ofMetaAnnotatedthat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueMetaAnnotated. -
of
public static ImmutableProto.MetaAnnotated of(Element element, 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
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
-