Package com.dslplatform.json.processor
Class AttributeInfo
java.lang.Object
com.dslplatform.json.processor.AttributeInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringfinal AnnotationMirrorfinal VariableElementfinal booleanfinal ConverterInfofinal Elementfinal VariableElementfinal booleanfinal Stringfinal intfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal Stringfinal booleanfinal ExecutableElementfinal Stringfinal TypeMirrorfinal Stringfinal LinkedHashSet<TypeMirror> final ExecutableElement -
Constructor Summary
ConstructorsConstructorDescriptionAttributeInfo(String name, ExecutableElement readMethod, ExecutableElement writeMethod, VariableElement field, VariableElement argument, TypeMirror type, boolean isList, boolean isSet, boolean isMap, AnnotationMirror annotation, boolean notNull, boolean mandatory, int index, String alias, boolean fullMatch, CompiledJson.TypeSignature typeSignature, JsonAttribute.IncludePolicy includeToMinimal, ConverterInfo converter, boolean isJsonObject, LinkedHashSet<TypeMirror> usedTypes, String typeName, Map<String, Integer> typeVariablesIndex, Map<String, TypeMirror> genericSignatures, boolean containsStructOwnerType) -
Method Summary
Modifier and TypeMethodDescriptionasConcreteType(Types types, LinkedHashMap<String, TypeMirror> genericSignatures) booleanprivate booleancanResolveCollection(String content, TypeSupport typeSupport, Map<String, StructInfo> structs) booleancollectionContent(TypeSupport typeSupport, Map<String, StructInfo> structs) (package private) StringcreateTypeSignature(Types types, TypeMirror type, Map<String, TypeMirror> genericSignatures) booleanisEnum(Map<String, StructInfo> structs)
-
Field Details
-
id
-
name
-
readMethod
-
writeMethod
-
field
-
argument
-
type
-
annotation
-
element
-
notNull
public final boolean notNull -
mandatory
public final boolean mandatory -
index
public final int index -
alias
-
fullMatch
public final boolean fullMatch -
typeSignature
-
includeToMinimal
-
converter
-
isJsonObject
public final boolean isJsonObject -
alternativeNames
-
readProperty
-
typeName
-
isArray
public final boolean isArray -
isList
public final boolean isList -
isSet
public final boolean isSet -
isMap
public final boolean isMap -
isGeneric
public final boolean isGeneric -
usedTypes
-
typeVariablesIndex
-
containsStructOwnerType
public final boolean containsStructOwnerType
-
-
Constructor Details
-
AttributeInfo
public AttributeInfo(String name, @Nullable ExecutableElement readMethod, @Nullable ExecutableElement writeMethod, @Nullable VariableElement field, @Nullable VariableElement argument, TypeMirror type, boolean isList, boolean isSet, boolean isMap, @Nullable AnnotationMirror annotation, boolean notNull, boolean mandatory, int index, @Nullable String alias, boolean fullMatch, @Nullable CompiledJson.TypeSignature typeSignature, JsonAttribute.IncludePolicy includeToMinimal, @Nullable ConverterInfo converter, boolean isJsonObject, LinkedHashSet<TypeMirror> usedTypes, String typeName, Map<String, Integer> typeVariablesIndex, Map<String, TypeMirror> genericSignatures, boolean containsStructOwnerType)
-
-
Method Details
-
asConcreteType
public AttributeInfo asConcreteType(Types types, LinkedHashMap<String, TypeMirror> genericSignatures) -
isEnum
-
canResolveCollection
private boolean canResolveCollection(String content, TypeSupport typeSupport, Map<String, StructInfo> structs) -
canReadInput
public boolean canReadInput() -
canWriteOutput
public boolean canWriteOutput() -
collectionContent
@Nullable public List<String> collectionContent(TypeSupport typeSupport, Map<String, StructInfo> structs) -
createTypeSignature
-