Interface CMessageDescriptor
-
- All Superinterfaces:
CAnnotatedDescriptor,net.morimekta.providence.descriptor.PDescriptor
- All Known Implementing Classes:
CExceptionDescriptor,CStructDescriptor,CUnionDescriptor
public interface CMessageDescriptor extends CAnnotatedDescriptor, net.morimekta.providence.descriptor.PDescriptor
See the struct descriptor ofPStructDescriptor. It is avoided in this case in order to be able to have subclasses of PStructDescriptor and PUnionDescriptor to implement an interface that alreadt have thegetFields()methods with theCFieldcontained field implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CFieldfieldForId(int id)CFieldfieldForName(java.lang.String name)CFieldfindFieldById(int id)CFieldfindFieldByName(java.lang.String name)CField[]getFields()net.morimekta.providence.PMessageVariantgetVariant()booleanisSimple()-
Methods inherited from interface net.morimekta.providence.reflect.contained.CAnnotatedDescriptor
getAnnotations, getAnnotationValue, getAnnotationValue, getDocumentation, hasAnnotation, hasAnnotation
-
-
-
-
Method Detail
-
getFields
@Nonnull CField[] getFields()
-
findFieldByName
@Nullable CField findFieldByName(java.lang.String name)
-
findFieldById
@Nullable CField findFieldById(int id)
-
fieldForName
@Nullable CField fieldForName(java.lang.String name)
-
fieldForId
@Nullable CField fieldForId(int id)
-
getVariant
@Nonnull net.morimekta.providence.PMessageVariant getVariant()
-
isSimple
boolean isSimple()
- Returns:
- True if the message is simple. A simple message contains no containers, and no sub-messages.
-
-