Interface CMessageDescriptor
-
- All Superinterfaces:
CAnnotatedDescriptor
,net.morimekta.providence.descriptor.PDescriptor
- All Known Implementing Classes:
CExceptionDescriptor
,CInterfaceDescriptor
,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 already have thegetFields()
methods with theCField
contained field implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description net.morimekta.providence.descriptor.PField
fieldForId(int id)
net.morimekta.providence.descriptor.PField
fieldForName(java.lang.String name)
net.morimekta.providence.descriptor.PField
findFieldById(int id)
net.morimekta.providence.descriptor.PField
findFieldByName(java.lang.String name)
net.morimekta.providence.descriptor.PField[]
getFields()
CInterfaceDescriptor
getImplementing()
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 net.morimekta.providence.descriptor.PField[] getFields()
-
findFieldByName
@Nullable net.morimekta.providence.descriptor.PField findFieldByName(java.lang.String name)
-
findFieldById
@Nullable net.morimekta.providence.descriptor.PField findFieldById(int id)
-
fieldForName
@Nullable net.morimekta.providence.descriptor.PField fieldForName(java.lang.String name)
-
fieldForId
@Nullable net.morimekta.providence.descriptor.PField fieldForId(int id)
-
getVariant
@Nonnull net.morimekta.providence.PMessageVariant getVariant()
-
getImplementing
@Nullable CInterfaceDescriptor getImplementing()
-
isSimple
boolean isSimple()
- Returns:
- True if the message is simple. A simple message contains no containers, and no sub-messages.
-
-