public class CUnionDescriptor extends PUnionDescriptor<CUnion,CField> implements CMessageDescriptor
| Constructor and Description |
|---|
CUnionDescriptor(String comment,
String packageName,
String name,
List<CField> fields,
Map<String,String> annotations) |
| Modifier and Type | Method and Description |
|---|---|
CUnion.Builder |
builder() |
CField |
findFieldById(int id) |
CField |
findFieldByName(String name) |
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[] |
getFields() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
boolean |
isSimple() |
getVariantequals, fieldForId, fieldForName, getBuilderSupplier, getField, getField, getType, hashCodegetDefaultValue, getName, getProgramName, getQualifiedName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitfieldForId, fieldForName, getVariantgetAnnotationValue, hasAnnotationgetDefaultValue, getName, getProgramName, getQualifiedName, getQualifiedName, getTypepublic final String getDocumentation()
CAnnotatedDescriptorgetDocumentation in interface CAnnotatedDescriptor@Nonnull public CField[] getFields()
getFields in interface CMessageDescriptorgetFields in class PMessageDescriptor<CUnion,CField>public CField findFieldByName(String name)
findFieldByName in interface CMessageDescriptorfindFieldByName in class PMessageDescriptor<CUnion,CField>public CField findFieldById(int id)
findFieldById in interface CMessageDescriptorfindFieldById in class PMessageDescriptor<CUnion,CField>public boolean isSimple()
isSimple in interface CMessageDescriptorisSimple in class PMessageDescriptor<CUnion,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.@Nonnull public CUnion.Builder builder()
builder in class PMessageDescriptor<CUnion,CField>Copyright © 2015–2018 morimekta.net. All rights reserved.