public class StructInfo extends Object
| Constructor and Description |
|---|
StructInfo(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) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(AttributeInfo attr) |
static int |
calcHash(String name) |
static int |
calcWeakHash(String name) |
boolean |
checkHashCollision() |
boolean |
createFromEmptyInstance() |
StructInfo |
getDeserializeTarget() |
StructInfo |
getParent() |
boolean |
hasAnnotation() |
boolean |
hasCycles(Map<String,StructInfo> structs) |
boolean |
hasEmptyCtor() |
boolean |
hasKnownConversion() |
Collection<AttributeInfo> |
inheritedAttributes() |
String |
pathDescription() |
String |
propertyName(AttributeInfo attribute) |
ExecutableElement |
selectedConstructor() |
void |
setDeserializeTarget(StructInfo value) |
void |
sortAttributes() |
void |
supertype(StructInfo parent) |
void |
useConstructor(ExecutableElement ctor) |
boolean |
usesCtorWithArguments() |
boolean |
usesEmptyCtor() |
public final TypeElement element
public final DeclaredType discoveredBy
public final String name
public final String binaryName
public final ObjectType type
public final ConverterInfo converter
public final String jsonObjectReaderPath
public final List<ExecutableElement> matchingConstructors
public final ExecutableElement annotatedFactory
public final ExecutableElement annotatedConstructor
public final BuilderInfo builder
public final Set<StructInfo> implementations
public final AnnotationMirror annotation
public final CompiledJson.Behavior onUnknown
public final CompiledJson.TypeSignature typeSignature
public final CompiledJson.ObjectFormatPolicy objectFormatPolicy
public final TypeElement deserializeAs
public final String discriminator
public final String deserializeName
@Nullable public final NamingStrategy namingStrategy
public final EnumSet<CompiledJson.Format> formats
public final boolean isObjectFormatFirst
public final LinkedHashMap<String,AttributeInfo> attributes
public final Element enumConstantNameSource
public final Map<String,TypeMirror> unknowns
public final boolean isParameterized
public final Map<String,TypeMirror> genericSignatures
public final Map<VariableElement,VariableElement> argumentMapping
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)
public StructInfo(ConverterInfo converter, DeclaredType discoveredBy, TypeElement target, String name, String binaryName)
@Nullable public ExecutableElement selectedConstructor()
public void supertype(@Nullable StructInfo parent)
@Nullable public StructInfo getParent()
public Collection<AttributeInfo> inheritedAttributes()
public void useConstructor(ExecutableElement ctor)
public boolean hasKnownConversion()
public boolean usesEmptyCtor()
public boolean usesCtorWithArguments()
public boolean hasEmptyCtor()
public boolean createFromEmptyInstance()
public boolean hasAnnotation()
public boolean hasCycles(Map<String,StructInfo> structs)
public String propertyName(AttributeInfo attribute)
public static int calcHash(String name)
public static int calcWeakHash(String name)
@Nullable public StructInfo getDeserializeTarget()
public void setDeserializeTarget(@Nullable StructInfo value)
public String pathDescription()
public boolean checkHashCollision()
public void sortAttributes()
public void add(AttributeInfo attr)
Copyright © 2023. All rights reserved.