com.dslplatform.json.processor
Class AttributeInfo

java.lang.Object
  extended by com.dslplatform.json.processor.AttributeInfo

public class AttributeInfo
extends Object


Field Summary
 String alias
           
 List<String> alternativeNames
           
 AnnotationMirror annotation
           
 boolean containsStructOwnerType
           
 ConverterInfo converter
           
 Element element
           
 VariableElement field
           
 boolean fullMatch
           
 String id
           
 JsonAttribute.IncludePolicy includeToMinimal
           
 int index
           
 boolean isArray
           
 boolean isGeneric
           
 boolean isJsonObject
           
 boolean isList
           
 boolean isMap
           
 boolean isSet
           
 boolean mandatory
           
 String name
           
 boolean notNull
           
 ExecutableElement readMethod
           
 String readProperty
           
 TypeMirror type
           
 String typeName
           
 CompiledJson.TypeSignature typeSignature
           
 Map<String,Integer> typeVariablesIndex
           
 LinkedHashSet<TypeMirror> usedTypes
           
 ExecutableElement writeMethod
           
 
Constructor Summary
AttributeInfo(String name, ExecutableElement readMethod, ExecutableElement writeMethod, VariableElement field, 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, Map<String,Integer> typeVariablesIndex, boolean containsStructOwnerType)
           
 
Method Summary
 List<String> collectionContent(TypeSupport typeSupport, Map<String,StructInfo> structs)
           
 boolean isEnum(Map<String,StructInfo> structs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public final String id

name

public final String name

readMethod

public final ExecutableElement readMethod

writeMethod

public final ExecutableElement writeMethod

field

public final VariableElement field

type

public final TypeMirror type

annotation

public final AnnotationMirror annotation

element

public final Element element

notNull

public final boolean notNull

mandatory

public final boolean mandatory

index

public final int index

alias

public final String alias

fullMatch

public final boolean fullMatch

typeSignature

public final CompiledJson.TypeSignature typeSignature

includeToMinimal

public final JsonAttribute.IncludePolicy includeToMinimal

converter

public final ConverterInfo converter

isJsonObject

public final boolean isJsonObject

alternativeNames

public final List<String> alternativeNames

readProperty

public final String readProperty

typeName

public final String 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

public final LinkedHashSet<TypeMirror> usedTypes

typeVariablesIndex

public final Map<String,Integer> typeVariablesIndex

containsStructOwnerType

public final boolean containsStructOwnerType
Constructor Detail

AttributeInfo

public AttributeInfo(String name,
                     ExecutableElement readMethod,
                     ExecutableElement writeMethod,
                     @Nullable
                     VariableElement field,
                     TypeMirror type,
                     boolean isList,
                     boolean isSet,
                     boolean isMap,
                     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,
                     Map<String,Integer> typeVariablesIndex,
                     boolean containsStructOwnerType)
Method Detail

isEnum

public boolean isEnum(Map<String,StructInfo> structs)

collectionContent

@Nullable
public List<String> collectionContent(TypeSupport typeSupport,
                                               Map<String,StructInfo> structs)


Copyright © 2019. All rights reserved.