Class ValueAttribute
- java.lang.Object
-
- org.immutables.value.processor.meta.TypeIntrospectionBase
-
- org.immutables.value.processor.meta.ValueAttribute
-
- All Implemented Interfaces:
HasStyleInfo
public final class ValueAttribute extends TypeIntrospectionBase implements HasStyleInfo
It's pointless to refactor this mess until 1) Some sort of type calculus toolkit used/created 2) Facets/Implicits in Generator toolkit with auto-memoising implemented
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValueAttribute.NullElementsprivate static classValueAttribute.OrderKind(package private) static classValueAttribute.ToNamestatic classValueAttribute.WholeTypeVariable
-
Field Summary
-
Fields inherited from class org.immutables.value.processor.meta.TypeIntrospectionBase
BOXED_TO_PRIMITIVE_TYPES, extendedClassesNames, implementedInterfacesNames, unresolvedYetArguments
-
-
Constructor Summary
Constructors Constructor Description ValueAttribute()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>accessorInjectedAnnotations()java.lang.StringatNullability()java.lang.StringatNullabilityLocal()java.lang.StringatNullabilityOriginal()java.lang.StringatNullableInSupertypeLocal()booleanattributeValueKindIsCollectionOfModifiable()private booleancanAccessImplementation(Proto.Protoclass p)booleancanUseNullAsUndefined()booleancharType()private voidcheckOrderAnnotations()private java.util.Collection<java.lang.String>collectInjections(AnnotationInjections.InjectAnnotation.Where target)private com.google.common.collect.ImmutableSet<java.lang.String>collectThrownCheckedExceptions()private intcomputeConstructorParameterOrder()private voidconfigureOrdering(ValueAttribute.OrderKind orderKind, java.lang.String annotationName)java.util.Collection<java.lang.String>constructorParameterInjectedAnnotations()CriteriaModelcriteria()Expose criteria metadata like list of matchers for current attribute.java.lang.StringdefaultInterface()java.util.Collection<java.lang.String>elementInitializerInjectedAnnotations()private java.util.List<java.lang.CharSequence>extractAnnotationsForElement(java.lang.annotation.ElementType elementType, java.util.Set<java.lang.String> additionalAnnotations)private java.lang.StringextractRawType(java.lang.String className)java.util.Collection<java.lang.String>fieldInjectedAnnotations()java.lang.StringfirstTypeParameter()java.lang.StringgetAccess()java.lang.String[]getAlternateSerializedNames()java.util.List<java.lang.CharSequence>getAnnotations()AttributeBuilderDescriptorgetAttributeBuilderDescriptor()java.util.List<java.lang.CharSequence>getBuilderAttributeAnnotation()java.lang.CharSequencegetConstructorParameterAnnotations()(package private) intgetConstructorParameterOrder()java.util.Set<ValueAttribute>getConstructorParameters()java.lang.StringgetConsumedElementType()(package private) Proto.DeclaringTypegetDeclaringType()java.lang.StringgetElementType()java.util.Collection<javax.lang.model.element.TypeElement>getEnumElements()java.util.List<java.lang.String>getExpectedSubtypes()java.util.List<java.lang.CharSequence>getFieldAnnotations()java.lang.StringgetGenericArgs()java.lang.StringgetIntializerAccess()java.util.List<java.lang.CharSequence>getJacksonFieldsAnnotations()java.util.List<java.lang.CharSequence>getJsonQualiferAnnotations()java.lang.StringgetMarshaledName()Marshaled name for compatibility with repository.java.lang.StringgetRawCollectionType()Suitable for JavaDocs, intemediate name mangling and for Guava intergration.java.lang.StringgetRawMapType()java.lang.StringgetRawType()java.lang.StringgetRedactedMask()java.lang.StringgetSecondaryElementType()ValueAttribute.WholeTypeVariablegetSecondaryWholeTypeVariable()java.lang.StringgetSerializedName()Serialized name, actully specified via annotationjava.util.Set<java.lang.String>getThrownCheckedExceptions()java.lang.StringgetType()java.lang.CharSequencegetTypeTokenOfElement()java.lang.CharSequencegetTypeTokenOfSecondaryElement()java.lang.StringgetUnwrappedElementType()java.lang.StringgetUnwrappedSecondaryElementType()java.lang.StringgetUnwrappedValueElementType()java.lang.StringgetUnwrapperOrRawElementType()java.lang.StringgetUnwrapperOrRawSecondaryElementType()ValueAttribute.WholeTypeVariablegetWholeTypeVariable()private ValueAttribute.WholeTypeVariablegetWholeTypeVariable(boolean secondary)java.lang.StringgetWrappedElementType()java.lang.StringgetWrappedFirstElementType()java.lang.StringgetWrappedSecondaryElementType()java.lang.StringgetWrapperType()booleanhasAttributeValue()booleanhasBuilderSwitcherDefault()(package private) booleanhasConstructorParameterCustomOrder()private booleanhasContainedElementType()booleanhasCriteria()Checks if type defined by this attribute has associated criteria (see@Criteria)private booleanhasEnumContainedElementType()booleanhasEnumFirstTypeParameter()private booleanhasNakedWildcardArguments()booleanhasNaturalOrder()booleanhasReverseOrder()booleanhasSimpleScalarElementType()booleanhasTypeAnnotations()booleanhasVirtualImpl()java.lang.StringimplementationModifiableType()java.lang.StringimplementationType()private java.lang.StringinferDefaultInterface()(package private) voidinitAndValidate(Instantiator.InstantiationCreator instantiationCreator)Initialized Validates things that were not validated otherwiseprivate voidinitAttributeBuilder()private voidinitAttributeValueType()private voidinitBuilderParamsIfApplicable()java.util.Collection<java.lang.String>initializerInjectedAnnotations()private voidinitImmutableCopyOf()private voidinitMiscellaneous()(package private) voidinitNullabilitySupertype(javax.lang.model.element.ExecutableElement accessor)private voidinitOrderKind()private voidinitSpecialAnnotations()private voidinitTypeKind()private voidinitTypeName()protected javax.lang.model.type.TypeMirrorinternalTypeMirror()protected voidintrospectType()private NullabilityAnnotationInfoisAccessorNullableAccessor(javax.lang.model.element.Element element)private booleanisAnnotationValueAttribute()booleanisArrayType()booleanisAttributeBuilder()booleanisAttributeValueKindCopy()booleanisAttributeValueKindModifyFrom()booleanisAuxiliary()booleanisBeanFriendlyModifiable()booleanisBoolean()booleanisBuilderSwitcher()booleanisByte()booleanisChar()booleanisCollectionType()booleanisComparable()booleanisContainerType()booleanisCustomCollectionType()booleanisDataIgnore()booleanisDeferCollectionAllocation()booleanisDouble()booleanisEncoding()booleanisFloat()booleanisFloatType()booleanisForcedEmpty()booleanisFugueOptional()booleanisGenerateEnumMap()booleanisGenerateEnumSet()booleanisGenerateJdk9()booleanisGenerateJdkOnly()booleanisGenerateOrdinalValueSet()booleanisGenerateSortedMap()booleanisGenerateSortedMultiset()booleanisGenerateSortedSet()booleanisGenerateTransientDerived()booleanisGettable()booleanisGsonOther()booleanisGuavaImmutableDeclared()booleanisGuavaOptional()(package private) booleanisIdAttribute()booleanisIgnorable()booleanisInt()booleanisInterfaceDefaultMethod()booleanisJavaslangOptional()booleanisJdkOptional()booleanisJdkSpecializedOptional()booleanisJsonIgnore()booleanisListType()booleanisLong()booleanisMandatory()booleanisMapType()private booleanisMarkedAsCriteriaId()Is it marked asCriteria.Id?private booleanisMarkedAsMongoId()booleanisMaybeComparableKey()booleanisMultimapType()booleanisMultisetType()booleanisNonRawElementType()booleanisNonRawSecondaryElementType()booleanisNullabilitySynthetic()booleanisNullable()private booleanisNullableAnnotation(javax.lang.model.element.Name simpleName, javax.lang.model.element.Name qualifiedName)booleanisNullableCollector()booleanisNullableInSupertype()booleanisNumberType()booleanisOmittable()booleanisOptionalAcceptNullable()booleanisOptionalType()booleanisPrimitive()booleanisPrimitiveArrayType()booleanisPrimitiveElement()booleanisPrimitiveWrapperType()private booleanisRedacted()booleanisRedactedCompletely()booleanisReferenceArrayType()private static booleanisRegularMarshalableType(java.lang.String name)booleanisRequiresMarshalingAdapter()booleanisRequiresMarshalingSecondaryAdapter()booleanisSafeUncheckedCovariantCast()booleanisSettable()booleanisSetType()booleanisShort()booleanisSimpleLiteralType()booleanisSortedMapType()booleanisSortedSetType()booleanisStringType()booleanisUnwrappedElementPrimitiveType()booleanisUnwrappedSecondaryElementPrimitiveType()booleanisValidationCustomized()private java.lang.CharSequencejacksonPropertyAnnotation()intlimitLengthInToString()private voidmaybeInitJavaBean()Init (or override) internal attributes specific to JavaBeansjava.lang.Stringname()private java.lang.StringoptionalSpecializedType()javax.lang.model.element.ElementoriginalElement()javax.lang.model.element.ElementoriginalTypeElement()private Proto.Protoclassprotoclass()(package private) Reporterreport()private voidreportOrderingError(java.lang.String annotationName, java.lang.String msg)booleanrequiresAlternativeStrictConstructor()booleanrequiresTrackIsSet()java.lang.StringsecondTypeParameter()booleanshouldLimitLengthInToString()StyleInfostyle()private booleansupportBuiltinContainerTypes()booleansupportsInternalImplConstructor()java.util.Collection<java.lang.String>syntheticFieldsInjectedAnnotations()(package private) booleanthereAreNoOtherMandatoryAttributes()java.lang.StringtoSignature()java.lang.StringtoString()private com.google.common.collect.ImmutableList<java.lang.String>tryFindSubtypes(javax.lang.model.element.TypeElement supertypeElement)AttributeTypeKindtypeKind()java.util.List<java.lang.String>typeParameters()private voidvalidateThrowsClause()private voidvalidateTypeAndAnnotations()private ValueMirrors.Style.ValidationMethodvalidation()booleanwrapArrayToIterable()-
Methods inherited from class org.immutables.value.processor.meta.TypeIntrospectionBase
collectTypeHierarchy, ensureTypeIntrospected, getDirectSupertype, getExtendedClassesNames, getImplementedInterfacesNames, introspectSupertypes, introspectTypeMirror, isEnumType, isOrdinalValue, isParcelable, isPrimitiveOrWrapped, isPrimitiveType, isPrimitiveWrappedType, isSerializable, unwrapType, wrapType
-
-
-
-
Field Detail
-
NON_WHOLE_TYPE_VARIABLE
private static final ValueAttribute.WholeTypeVariable NON_WHOLE_TYPE_VARIABLE
-
CONSTRUCTOR_PARAMETER_DEFAULT_ORDER
private static final int CONSTRUCTOR_PARAMETER_DEFAULT_ORDER
- See Also:
- Constant Field Values
-
CONSTRUCTOR_NOT_A_PARAMETER
private static final int CONSTRUCTOR_NOT_A_PARAMETER
- See Also:
- Constant Field Values
-
GUAVA_IMMUTABLE_PREFIX
private static final java.lang.String GUAVA_IMMUTABLE_PREFIX
-
VALUE_ATTRIBUTE_NAME
private static final java.lang.String VALUE_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
ID_ATTRIBUTE_NAME
private static final java.lang.String ID_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
EMPTY_SERIALIZED_NAMES
private static final java.lang.String[] EMPTY_SERIALIZED_NAMES
-
names
public Styles.UsingName.AttributeNames names
-
isGenerateDefault
public boolean isGenerateDefault
-
isGenerateDerived
public boolean isGenerateDerived
-
isGenerateAbstract
public boolean isGenerateAbstract
-
isGenerateLazy
public boolean isGenerateLazy
-
isAttributeBuilder
public boolean isAttributeBuilder
-
typeParameters
public com.google.common.collect.ImmutableList<java.lang.String> typeParameters
-
annotationInjections
public com.google.common.collect.ImmutableList<AnnotationInjections.AnnotationInjection> annotationInjections
-
reporter
public Reporter reporter
-
containingType
public ValueType containingType
-
attributeValueType
@Nullable public ValueType attributeValueType
-
returnType
javax.lang.model.type.TypeMirror returnType
-
element
javax.lang.model.element.Element element
-
returnTypeName
java.lang.String returnTypeName
-
attributeBuilderDescriptor
@Nullable private AttributeBuilderDescriptor attributeBuilderDescriptor
-
hasEnumFirstTypeParameter
public boolean hasEnumFirstTypeParameter
-
containedTypeElement
@Nullable javax.lang.model.element.TypeElement containedTypeElement
-
containedSecondaryTypeElement
@Nullable private javax.lang.model.element.TypeElement containedSecondaryTypeElement
-
generateOrdinalValueSet
private boolean generateOrdinalValueSet
-
arrayComponent
private javax.lang.model.type.TypeMirror arrayComponent
-
nullability
@Nullable private NullabilityAnnotationInfo nullability
-
nullabilityInSupertype
@Nullable private NullabilityAnnotationInfo nullabilityInSupertype
-
rawTypeName
@Nullable private java.lang.String rawTypeName
-
criteriaModel
@Nullable private CriteriaModel criteriaModel
-
docComment
public com.google.common.collect.ImmutableList<java.lang.String> docComment
-
deprecated
public boolean deprecated
-
jsonQualifierAnnotations
private java.util.List<java.lang.CharSequence> jsonQualifierAnnotations
-
serializedName
@Nullable private java.lang.String serializedName
-
alternateSerializedNames
private java.lang.String[] alternateSerializedNames
-
isGsonOther
@Nullable private java.lang.Boolean isGsonOther
-
orderKind
private ValueAttribute.OrderKind orderKind
-
defaultInterface
@Nullable private java.lang.String defaultInterface
-
expectedSubtypes
@Nullable private java.util.List<java.lang.String> expectedSubtypes
-
parameterOrder
private int parameterOrder
-
typeKind
private AttributeTypeKind typeKind
-
jacksonAnyGetter
public boolean jacksonAnyGetter
-
jacksonValue
public boolean jacksonValue
-
hasTypeVariables
public boolean hasTypeVariables
-
importsResolver
private ImportsTypeStringResolver importsResolver
-
instantiation
@Nullable public Instantiation instantiation
-
thrownCheckedExceptions
private java.util.Set<java.lang.String> thrownCheckedExceptions
-
nullElements
public ValueAttribute.NullElements nullElements
-
isSuppressedOptional
public boolean isSuppressedOptional
-
builderSwitcherModel
@Nullable public SwitcherModel builderSwitcherModel
-
isBuilderParameter
public boolean isBuilderParameter
-
hasSomeUnresolvedTypes
boolean hasSomeUnresolvedTypes
-
isGenerateImmutableCopyOf
public boolean isGenerateImmutableCopyOf
-
-
Method Detail
-
name
public java.lang.String name()
-
criteria
public CriteriaModel criteria()
Expose criteria metadata like list of matchers for current attribute.
-
isBoolean
public boolean isBoolean()
-
isInt
public boolean isInt()
-
isShort
public boolean isShort()
-
isChar
public boolean isChar()
-
isByte
public boolean isByte()
-
isLong
public boolean isLong()
-
isStringType
public boolean isStringType()
-
charType
public boolean charType()
-
atNullability
public java.lang.String atNullability()
-
atNullabilityOriginal
public java.lang.String atNullabilityOriginal()
-
atNullabilityLocal
public java.lang.String atNullabilityLocal()
-
isSimpleLiteralType
public boolean isSimpleLiteralType()
-
hasSimpleScalarElementType
public boolean hasSimpleScalarElementType()
-
requiresAlternativeStrictConstructor
public boolean requiresAlternativeStrictConstructor()
-
isSettable
public boolean isSettable()
-
isGettable
public boolean isGettable()
-
isIgnorable
public boolean isIgnorable()
-
isOmittable
public boolean isOmittable()
-
isMandatory
public boolean isMandatory()
-
validation
private ValueMirrors.Style.ValidationMethod validation()
-
hasCriteria
public boolean hasCriteria()
Checks if type defined by this attribute has associated criteria (see@Criteria)
-
isNullable
public boolean isNullable()
-
isNullabilitySynthetic
public boolean isNullabilitySynthetic()
-
isMaybeComparableKey
public boolean isMaybeComparableKey()
-
isComparable
public boolean isComparable()
- Overrides:
isComparablein classTypeIntrospectionBase
-
getJsonQualiferAnnotations
public java.util.List<java.lang.CharSequence> getJsonQualiferAnnotations()
-
getAlternateSerializedNames
public java.lang.String[] getAlternateSerializedNames()
-
getSerializedName
public java.lang.String getSerializedName()
Serialized name, actully specified via annotation- Returns:
- name for JSON as overriden.
-
getMarshaledName
public java.lang.String getMarshaledName()
Marshaled name for compatibility with repository.- Returns:
- get JSON name either specified or default.
-
isGsonOther
public boolean isGsonOther()
-
isForcedEmpty
public boolean isForcedEmpty()
-
internalTypeMirror
protected javax.lang.model.type.TypeMirror internalTypeMirror()
- Specified by:
internalTypeMirrorin classTypeIntrospectionBase
-
getType
public java.lang.String getType()
-
getAnnotations
public java.util.List<java.lang.CharSequence> getAnnotations()
-
getFieldAnnotations
public java.util.List<java.lang.CharSequence> getFieldAnnotations()
-
getConstructorParameterAnnotations
public java.lang.CharSequence getConstructorParameterAnnotations()
-
getJacksonFieldsAnnotations
public java.util.List<java.lang.CharSequence> getJacksonFieldsAnnotations()
-
jacksonPropertyAnnotation
private java.lang.CharSequence jacksonPropertyAnnotation()
-
getBuilderAttributeAnnotation
public java.util.List<java.lang.CharSequence> getBuilderAttributeAnnotation()
-
extractAnnotationsForElement
private java.util.List<java.lang.CharSequence> extractAnnotationsForElement(java.lang.annotation.ElementType elementType, java.util.Set<java.lang.String> additionalAnnotations)
-
isJsonIgnore
public boolean isJsonIgnore()
-
isDataIgnore
public boolean isDataIgnore()
-
typeParameters
public java.util.List<java.lang.String> typeParameters()
-
isMapType
public boolean isMapType()
-
isMultimapType
public boolean isMultimapType()
-
isListType
public boolean isListType()
-
isSetType
public boolean isSetType()
-
hasNaturalOrder
public boolean hasNaturalOrder()
-
hasReverseOrder
public boolean hasReverseOrder()
-
isSortedSetType
public boolean isSortedSetType()
-
isSortedMapType
public boolean isSortedMapType()
-
isGenerateSortedSet
public boolean isGenerateSortedSet()
-
isGenerateSortedMap
public boolean isGenerateSortedMap()
-
isGenerateSortedMultiset
public boolean isGenerateSortedMultiset()
-
checkOrderAnnotations
private void checkOrderAnnotations()
-
configureOrdering
private void configureOrdering(ValueAttribute.OrderKind orderKind, java.lang.String annotationName)
-
reportOrderingError
private void reportOrderingError(java.lang.String annotationName, java.lang.String msg)
-
isJdkOptional
public boolean isJdkOptional()
-
isFugueOptional
public boolean isFugueOptional()
-
isGuavaOptional
public boolean isGuavaOptional()
-
isJavaslangOptional
public boolean isJavaslangOptional()
-
isJdkSpecializedOptional
public boolean isJdkSpecializedOptional()
-
isOptionalType
public boolean isOptionalType()
-
isCollectionType
public boolean isCollectionType()
-
isGenerateEnumSet
public boolean isGenerateEnumSet()
-
isGuavaImmutableDeclared
public boolean isGuavaImmutableDeclared()
-
defaultInterface
public java.lang.String defaultInterface()
-
inferDefaultInterface
private java.lang.String inferDefaultInterface()
-
isInterfaceDefaultMethod
public boolean isInterfaceDefaultMethod()
-
isGenerateTransientDerived
public boolean isGenerateTransientDerived()
-
isGenerateEnumMap
public boolean isGenerateEnumMap()
-
hasVirtualImpl
public boolean hasVirtualImpl()
-
getUnwrappedElementType
public java.lang.String getUnwrappedElementType()
-
getUnwrappedValueElementType
public java.lang.String getUnwrappedValueElementType()
-
getWrappedElementType
public java.lang.String getWrappedElementType()
-
hasContainedElementType
private boolean hasContainedElementType()
-
getRawType
public java.lang.String getRawType()
-
getConsumedElementType
public java.lang.String getConsumedElementType()
-
hasEnumFirstTypeParameter
public boolean hasEnumFirstTypeParameter()
-
extractRawType
private java.lang.String extractRawType(java.lang.String className)
-
isUnwrappedElementPrimitiveType
public boolean isUnwrappedElementPrimitiveType()
-
isUnwrappedSecondaryElementPrimitiveType
public boolean isUnwrappedSecondaryElementPrimitiveType()
-
firstTypeParameter
public java.lang.String firstTypeParameter()
-
secondTypeParameter
public java.lang.String secondTypeParameter()
-
getElementType
public java.lang.String getElementType()
-
getExpectedSubtypes
public java.util.List<java.lang.String> getExpectedSubtypes()
-
tryFindSubtypes
private com.google.common.collect.ImmutableList<java.lang.String> tryFindSubtypes(javax.lang.model.element.TypeElement supertypeElement)
-
isGenerateJdkOnly
public boolean isGenerateJdkOnly()
-
isGenerateJdk9
public boolean isGenerateJdk9()
-
isGenerateOrdinalValueSet
public boolean isGenerateOrdinalValueSet()
-
isArrayType
public boolean isArrayType()
-
isReferenceArrayType
public boolean isReferenceArrayType()
-
isPrimitiveArrayType
public boolean isPrimitiveArrayType()
-
isOptionalAcceptNullable
public boolean isOptionalAcceptNullable()
-
introspectType
protected void introspectType()
- Overrides:
introspectTypein classTypeIntrospectionBase
-
optionalSpecializedType
private java.lang.String optionalSpecializedType()
-
typeKind
public AttributeTypeKind typeKind()
-
isPrimitiveWrapperType
public boolean isPrimitiveWrapperType()
-
isRegularMarshalableType
private static boolean isRegularMarshalableType(java.lang.String name)
-
isRequiresMarshalingAdapter
public boolean isRequiresMarshalingAdapter()
-
isRequiresMarshalingSecondaryAdapter
public boolean isRequiresMarshalingSecondaryAdapter()
-
wrapArrayToIterable
public boolean wrapArrayToIterable()
-
getRawCollectionType
public java.lang.String getRawCollectionType()
Suitable for JavaDocs, intemediate name mangling and for Guava intergration.- Returns:
- the raw collection type
-
isMultisetType
public boolean isMultisetType()
-
isCustomCollectionType
public boolean isCustomCollectionType()
-
getRawMapType
public java.lang.String getRawMapType()
-
getSecondaryElementType
public java.lang.String getSecondaryElementType()
-
getUnwrappedSecondaryElementType
public java.lang.String getUnwrappedSecondaryElementType()
-
getWrappedFirstElementType
public java.lang.String getWrappedFirstElementType()
-
getWrappedSecondaryElementType
public java.lang.String getWrappedSecondaryElementType()
-
getUnwrapperOrRawSecondaryElementType
public java.lang.String getUnwrapperOrRawSecondaryElementType()
-
getUnwrapperOrRawElementType
public java.lang.String getUnwrapperOrRawElementType()
-
isNumberType
public boolean isNumberType()
-
isFloatType
public boolean isFloatType()
-
isFloat
public boolean isFloat()
-
isDouble
public boolean isDouble()
-
hasTypeAnnotations
public boolean hasTypeAnnotations()
-
isNonRawElementType
public boolean isNonRawElementType()
-
isNonRawSecondaryElementType
public boolean isNonRawSecondaryElementType()
-
isContainerType
public boolean isContainerType()
-
getWrapperType
public java.lang.String getWrapperType()
-
isPrimitive
public boolean isPrimitive()
-
isAttributeBuilder
public boolean isAttributeBuilder()
-
getConstructorParameterOrder
int getConstructorParameterOrder()
-
computeConstructorParameterOrder
private int computeConstructorParameterOrder()
-
isAnnotationValueAttribute
private boolean isAnnotationValueAttribute()
-
thereAreNoOtherMandatoryAttributes
boolean thereAreNoOtherMandatoryAttributes()
-
toSignature
public java.lang.String toSignature()
-
getAccess
public java.lang.String getAccess()
-
getIntializerAccess
public java.lang.String getIntializerAccess()
-
isPrimitiveElement
public boolean isPrimitiveElement()
-
isSafeUncheckedCovariantCast
public boolean isSafeUncheckedCovariantCast()
-
isAuxiliary
public boolean isAuxiliary()
-
isEncoding
public boolean isEncoding()
-
isMarkedAsMongoId
private boolean isMarkedAsMongoId()
-
isMarkedAsCriteriaId
private boolean isMarkedAsCriteriaId()
Is it marked asCriteria.Id?
-
isIdAttribute
boolean isIdAttribute()
-
isRedacted
private boolean isRedacted()
-
isRedactedCompletely
public boolean isRedactedCompletely()
-
getRedactedMask
public java.lang.String getRedactedMask()
-
initAndValidate
void initAndValidate(@Nullable Instantiator.InstantiationCreator instantiationCreator)Initialized Validates things that were not validated otherwise- Parameters:
instantiationCreator- can instantiate encodings
-
validateThrowsClause
private void validateThrowsClause()
-
collectThrownCheckedExceptions
private com.google.common.collect.ImmutableSet<java.lang.String> collectThrownCheckedExceptions()
-
getThrownCheckedExceptions
public java.util.Set<java.lang.String> getThrownCheckedExceptions()
-
initAttributeBuilder
private void initAttributeBuilder()
-
initImmutableCopyOf
private void initImmutableCopyOf()
-
initOrderKind
private void initOrderKind()
-
initTypeName
private void initTypeName()
-
initAttributeValueType
private void initAttributeValueType()
-
canAccessImplementation
private boolean canAccessImplementation(Proto.Protoclass p)
-
implementationModifiableType
public java.lang.String implementationModifiableType()
-
implementationType
public java.lang.String implementationType()
-
hasAttributeValue
public boolean hasAttributeValue()
-
attributeValueKindIsCollectionOfModifiable
public boolean attributeValueKindIsCollectionOfModifiable()
-
isAttributeValueKindCopy
public boolean isAttributeValueKindCopy()
-
isAttributeValueKindModifyFrom
public boolean isAttributeValueKindModifyFrom()
-
getConstructorParameters
public java.util.Set<ValueAttribute> getConstructorParameters()
-
initTypeKind
private void initTypeKind()
-
supportBuiltinContainerTypes
private boolean supportBuiltinContainerTypes()
-
getWholeTypeVariable
public ValueAttribute.WholeTypeVariable getWholeTypeVariable()
-
getSecondaryWholeTypeVariable
public ValueAttribute.WholeTypeVariable getSecondaryWholeTypeVariable()
-
getWholeTypeVariable
private ValueAttribute.WholeTypeVariable getWholeTypeVariable(boolean secondary)
-
hasEnumContainedElementType
private boolean hasEnumContainedElementType()
-
getDeclaringType
Proto.DeclaringType getDeclaringType()
-
validateTypeAndAnnotations
private void validateTypeAndAnnotations()
-
hasNakedWildcardArguments
private boolean hasNakedWildcardArguments()
-
isAccessorNullableAccessor
@Nullable private NullabilityAnnotationInfo isAccessorNullableAccessor(javax.lang.model.element.Element element)
-
initSpecialAnnotations
private void initSpecialAnnotations()
-
isNullableAnnotation
private boolean isNullableAnnotation(javax.lang.model.element.Name simpleName, javax.lang.model.element.Name qualifiedName)
-
isNullableCollector
public boolean isNullableCollector()
-
isDeferCollectionAllocation
public boolean isDeferCollectionAllocation()
-
initMiscellaneous
private void initMiscellaneous()
-
isValidationCustomized
public boolean isValidationCustomized()
-
initBuilderParamsIfApplicable
private void initBuilderParamsIfApplicable()
-
maybeInitJavaBean
private void maybeInitJavaBean()
Init (or override) internal attributes specific to JavaBeans
-
hasBuilderSwitcherDefault
public boolean hasBuilderSwitcherDefault()
-
isBuilderSwitcher
public boolean isBuilderSwitcher()
-
canUseNullAsUndefined
public boolean canUseNullAsUndefined()
-
requiresTrackIsSet
public boolean requiresTrackIsSet()
-
getEnumElements
public java.util.Collection<javax.lang.model.element.TypeElement> getEnumElements()
-
hasConstructorParameterCustomOrder
boolean hasConstructorParameterCustomOrder()
-
protoclass
private Proto.Protoclass protoclass()
-
getGenericArgs
public java.lang.String getGenericArgs()
-
getAttributeBuilderDescriptor
public AttributeBuilderDescriptor getAttributeBuilderDescriptor()
-
report
Reporter report()
-
getTypeTokenOfElement
public java.lang.CharSequence getTypeTokenOfElement()
-
getTypeTokenOfSecondaryElement
public java.lang.CharSequence getTypeTokenOfSecondaryElement()
-
originalElement
public javax.lang.model.element.Element originalElement()
-
originalTypeElement
public javax.lang.model.element.Element originalTypeElement()
-
style
public StyleInfo style()
- Specified by:
stylein interfaceHasStyleInfo
-
supportsInternalImplConstructor
public boolean supportsInternalImplConstructor()
-
fieldInjectedAnnotations
public java.util.Collection<java.lang.String> fieldInjectedAnnotations()
-
accessorInjectedAnnotations
public java.util.Collection<java.lang.String> accessorInjectedAnnotations()
-
syntheticFieldsInjectedAnnotations
public java.util.Collection<java.lang.String> syntheticFieldsInjectedAnnotations()
-
initializerInjectedAnnotations
public java.util.Collection<java.lang.String> initializerInjectedAnnotations()
-
constructorParameterInjectedAnnotations
public java.util.Collection<java.lang.String> constructorParameterInjectedAnnotations()
-
elementInitializerInjectedAnnotations
public java.util.Collection<java.lang.String> elementInitializerInjectedAnnotations()
-
collectInjections
private java.util.Collection<java.lang.String> collectInjections(AnnotationInjections.InjectAnnotation.Where target)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
initNullabilitySupertype
void initNullabilitySupertype(javax.lang.model.element.ExecutableElement accessor)
-
isNullableInSupertype
public boolean isNullableInSupertype()
-
atNullableInSupertypeLocal
public java.lang.String atNullableInSupertypeLocal()
-
limitLengthInToString
public int limitLengthInToString()
-
shouldLimitLengthInToString
public boolean shouldLimitLengthInToString()
-
isBeanFriendlyModifiable
public boolean isBeanFriendlyModifiable()
-
-