public class CUnionDescriptor extends net.morimekta.providence.descriptor.PUnionDescriptor<CUnion> implements CMessageDescriptor
| Constructor and Description |
|---|
CUnionDescriptor(String comment,
String packageName,
String name,
List<CField<CUnion>> fields,
Map<String,String> annotations,
net.morimekta.providence.descriptor.PDescriptorProvider implementing) |
| Modifier and Type | Method and Description |
|---|---|
CUnion.Builder |
builder() |
CField<CUnion> |
findFieldById(int id) |
CField<CUnion> |
findFieldByName(String name) |
CField<CUnion> |
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<CUnion>[] |
getFields() |
CInterfaceDescriptor |
getImplementing() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
boolean |
isAutoType() |
boolean |
isInnerType() |
boolean |
isSimple() |
equals, fieldForId, fieldForName, fieldForPojoName, getBuilderSupplier, getType, hashCodegetDefaultValue, getName, getProgramName, getQualifiedName, getTypeName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitfieldForId, fieldForName, getVariantgetAnnotationValue, hasAnnotationpublic boolean isInnerType()
isInnerType in class net.morimekta.providence.descriptor.PDeclaredDescriptor<CUnion>public boolean isAutoType()
isAutoType in class net.morimekta.providence.descriptor.PDeclaredDescriptor<CUnion>public final String getDocumentation()
CAnnotatedDescriptorgetDocumentation in interface CAnnotatedDescriptor@Nonnull public CField<CUnion>[] getFields()
getFields in interface CMessageDescriptorgetFields in class net.morimekta.providence.descriptor.PMessageDescriptor<CUnion>public CField<CUnion> findFieldByName(String name)
findFieldByName in interface CMessageDescriptorfindFieldByName in class net.morimekta.providence.descriptor.PMessageDescriptor<CUnion>public CField<CUnion> findFieldByPojoName(String pojoName)
findFieldByPojoName in class net.morimekta.providence.descriptor.PMessageDescriptor<CUnion>public CField<CUnion> findFieldById(int id)
findFieldById in interface CMessageDescriptorfindFieldById in class net.morimekta.providence.descriptor.PMessageDescriptor<CUnion>@Nullable public CInterfaceDescriptor getImplementing()
getImplementing in interface CMessageDescriptorgetImplementing in class net.morimekta.providence.descriptor.PMessageDescriptor<CUnion>public boolean isSimple()
isSimple in interface CMessageDescriptorisSimple in class net.morimekta.providence.descriptor.PMessageDescriptor<CUnion>@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 net.morimekta.providence.descriptor.PMessageDescriptor<CUnion>Copyright © 2015–2020 morimekta.net. All rights reserved.