Package com.dslplatform.json.processor
Class StructInfo
java.lang.Object
com.dslplatform.json.processor.StructInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ExecutableElementfinal ExecutableElementfinal AnnotationMirrorfinal Map<VariableElement, VariableElement> final LinkedHashMap<String, AttributeInfo> final Stringfinal BuilderInfofinal ConverterInfoprivate booleanfinal TypeElementfinal Stringprivate StructInfofinal DeclaredTypefinal Stringfinal TypeElementfinal Elementfinal EnumSet<CompiledJson.Format> final Map<String, TypeMirror> final Set<StructInfo> private StructInfofinal booleanfinal booleanfinal Stringfinal List<ExecutableElement> final Stringfinal NamingStrategyfinal CompiledJson.Behaviorprivate ExecutableElementfinal ObjectTypefinal Map<String, TypeMirror> -
Constructor Summary
ConstructorsConstructorDescriptionStructInfo(ConverterInfo converter, DeclaredType discoveredBy, TypeElement target, String name, String binaryName) StructInfo(TypeElement element, DeclaredType discoveredBy, String name, String binaryName, ObjectType type, String jsonObjectReaderPath, List<ExecutableElement> matchingConstructors, ExecutableElement annotatedConstructor, ExecutableElement annotatedFactory, BuilderInfo builder, AnnotationMirror annotation, CompiledJson.Behavior onUnknown, CompiledJson.TypeSignature typeSignature, CompiledJson.ObjectFormatPolicy objectFormatPolicy, TypeElement deserializeAs, String discriminator, String deserializeName, Element enumConstantNameSource, NamingStrategy namingStrategy, CompiledJson.Format[] formats, Map<String, TypeMirror> genericSignatures) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AttributeInfo attr) static intstatic intcalcWeakHash(String name) booleanbooleanextractParametersNames(List<? extends TypeParameterElement> typeParameters) booleanprivate booleanhasCycles(HashSet<TypeMirror> processed, Map<String, StructInfo> structs) booleanhasCycles(Map<String, StructInfo> structs) booleanbooleanpropertyName(AttributeInfo attribute) voidsetDeserializeTarget(StructInfo value) voidvoidsupertype(StructInfo parent) voidbooleanboolean
-
Field Details
-
element
-
discoveredBy
-
name
-
binaryName
-
type
-
converter
-
jsonObjectReaderPath
-
matchingConstructors
-
annotatedFactory
-
annotatedConstructor
-
builder
-
implementations
-
inheritsFrom
-
serializedNames
-
annotation
-
onUnknown
-
typeSignature
-
objectFormatPolicy
-
deserializeAs
-
discriminator
-
deserializeName
-
namingStrategy
-
formats
-
isObjectFormatFirst
public final boolean isObjectFormatFirst -
attributes
-
propertyNames
-
properties
-
constants
-
enumConstantNameSource
-
path
-
unknowns
-
isParameterized
public final boolean isParameterized -
typeParametersNames
-
genericSignatures
-
argumentMapping
-
selectedConstructor
-
createThroughConstructor
private boolean createThroughConstructor -
deserializeTarget
-
-
Constructor Details
-
StructInfo
public StructInfo(TypeElement element, DeclaredType discoveredBy, String name, String binaryName, ObjectType type, @Nullable String jsonObjectReaderPath, @Nullable List<ExecutableElement> matchingConstructors, @Nullable ExecutableElement annotatedConstructor, @Nullable ExecutableElement annotatedFactory, @Nullable BuilderInfo builder, @Nullable AnnotationMirror annotation, @Nullable CompiledJson.Behavior onUnknown, @Nullable CompiledJson.TypeSignature typeSignature, CompiledJson.ObjectFormatPolicy objectFormatPolicy, @Nullable TypeElement deserializeAs, @Nullable String discriminator, @Nullable String deserializeName, @Nullable Element enumConstantNameSource, @Nullable NamingStrategy namingStrategy, @Nullable CompiledJson.Format[] formats, Map<String, TypeMirror> genericSignatures) -
StructInfo
public StructInfo(ConverterInfo converter, DeclaredType discoveredBy, TypeElement target, String name, String binaryName)
-
-
Method Details
-
extractParametersNames
-
selectedConstructor
-
supertype
-
getParent
-
inheritedAttributes
-
useConstructor
-
hasKnownConversion
public boolean hasKnownConversion() -
usesEmptyCtor
public boolean usesEmptyCtor() -
usesCtorWithArguments
public boolean usesCtorWithArguments() -
hasEmptyCtor
public boolean hasEmptyCtor() -
createFromEmptyInstance
public boolean createFromEmptyInstance() -
hasAnnotation
public boolean hasAnnotation() -
hasCycles
-
hasCycles
-
propertyName
-
calcHash
-
calcWeakHash
-
getDeserializeTarget
-
setDeserializeTarget
-
pathDescription
-
checkHashCollision
public boolean checkHashCollision() -
sortAttributes
public void sortAttributes() -
add
-