public class CStructDescriptor extends PStructDescriptor<CStruct,CField> implements CMessageDescriptor, JsonCompactibleDescriptor
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_COMPACT_FIELDS |
| Constructor and Description |
|---|
CStructDescriptor(String comment,
String packageName,
String name,
List<CField> fields,
Map<String,String> annotations) |
| Modifier and Type | Method and Description |
|---|---|
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 |
getField(int key) |
CField |
getField(String name) |
CField[] |
getFields() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
boolean |
isJsonCompactible() |
boolean |
isSimple() |
getVariantbuilder, equals, getFactoryInternal, getType, hashCodegetName, getProgramName, getQualifiedName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotationValue, hasAnnotationgetName, getProgramName, getQualifiedName, getQualifiedName, getTypepublic static final int MAX_COMPACT_FIELDS
public final String getDocumentation()
CAnnotatedDescriptorgetDocumentation in interface CAnnotatedDescriptor@Nonnull public CField[] getFields()
getFields in interface CMessageDescriptorgetFields in class PMessageDescriptor<CStruct,CField>public CField getField(String name)
getField in interface CMessageDescriptorgetField in class PMessageDescriptor<CStruct,CField>public CField getField(int key)
getField in interface CMessageDescriptorgetField in class PMessageDescriptor<CStruct,CField>@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 class PMessageDescriptor<CStruct,CField>public boolean isJsonCompactible()
isJsonCompactible in interface JsonCompactibleDescriptorCopyright © 2015–2017 morimekta.net. All rights reserved.