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 theCField
contained field implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CField
fieldForId(int id)
CField
fieldForName(java.lang.String name)
CField
findFieldById(int id)
CField
findFieldByName(java.lang.String name)
CField[]
getFields()
net.morimekta.providence.PMessageVariant
getVariant()
boolean
isSimple()
-
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.
-
-