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 of PStructDescriptor. 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 the getFields() methods with the CField contained field implementation.
    • 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.