public class CStructDescriptor extends net.morimekta.providence.descriptor.PStructDescriptor<CStruct> implements CMessageDescriptor, net.morimekta.providence.serializer.json.JsonCompactibleDescriptor
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_COMPACT_FIELDS |
| Constructor and Description |
|---|
CStructDescriptor(String comment,
String programName,
String name,
List<CField<CStruct>> fields,
Map<String,String> annotations,
net.morimekta.providence.descriptor.PDescriptorProvider implementing) |
| Modifier and Type | Method and Description |
|---|---|
CField<CStruct> |
findFieldById(int id) |
CField<CStruct> |
findFieldByName(String name) |
CField<CStruct> |
findFieldByPojoName(String pojoName) |
Set<String> |
getAnnotations()
Get set of available annotations.
|
String |
getAnnotationValue(String name)
Get the given annotation value.
|
String |
getDocumentation()
The type comment is the last block of comment written before the type
declaration.
|
CField<CStruct>[] |
getFields() |
CInterfaceDescriptor |
getImplementing() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
boolean |
isAutoType() |
boolean |
isInnerType() |
boolean |
isJsonCompactible() |
boolean |
isSimple() |
builder, equals, fieldForId, fieldForName, fieldForPojoName, getBuilderSupplier, getType, hashCodegetDefaultValue, getName, getProgramName, getQualifiedName, getTypeName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitfieldForId, fieldForName, getVariantgetAnnotationValue, hasAnnotationpublic static final int MAX_COMPACT_FIELDS
public boolean isInnerType()
isInnerType in class net.morimekta.providence.descriptor.PDeclaredDescriptor<CStruct>public boolean isAutoType()
isAutoType in class net.morimekta.providence.descriptor.PDeclaredDescriptor<CStruct>public final String getDocumentation()
CAnnotatedDescriptorgetDocumentation in interface CAnnotatedDescriptor@Nonnull public CField<CStruct>[] getFields()
getFields in interface CMessageDescriptorgetFields in class net.morimekta.providence.descriptor.PMessageDescriptor<CStruct>public CField<CStruct> findFieldByName(String name)
findFieldByName in interface CMessageDescriptorfindFieldByName in class net.morimekta.providence.descriptor.PMessageDescriptor<CStruct>public CField<CStruct> findFieldByPojoName(String pojoName)
findFieldByPojoName in class net.morimekta.providence.descriptor.PMessageDescriptor<CStruct>public CField<CStruct> findFieldById(int id)
findFieldById in interface CMessageDescriptorfindFieldById in class net.morimekta.providence.descriptor.PMessageDescriptor<CStruct>@Nullable public CInterfaceDescriptor getImplementing()
getImplementing in interface CMessageDescriptorgetImplementing in class net.morimekta.providence.descriptor.PMessageDescriptor<CStruct>@Nonnull public Set<String> getAnnotations()
CAnnotatedDescriptorgetAnnotations in interface CAnnotatedDescriptorpublic boolean hasAnnotation(@Nonnull String name)
CAnnotatedDescriptorhasAnnotation in interface CAnnotatedDescriptorname - Name of annotation.public String getAnnotationValue(@Nonnull String name)
CAnnotatedDescriptorgetAnnotationValue in interface CAnnotatedDescriptorname - Name of annotation.public boolean isSimple()
isSimple in interface CMessageDescriptorisSimple in class net.morimekta.providence.descriptor.PMessageDescriptor<CStruct>public boolean isJsonCompactible()
isJsonCompactible in interface net.morimekta.providence.serializer.json.JsonCompactibleDescriptorCopyright © 2015–2020 morimekta.net. All rights reserved.