Interface CMessageDescriptor
-
- All Superinterfaces:
CAnnotatedDescriptor
,PDescriptor
- All Known Implementing Classes:
CExceptionDescriptor
,CInterfaceDescriptor
,CStructDescriptor
,CUnionDescriptor
public interface CMessageDescriptor extends CAnnotatedDescriptor, 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 PField<?>
fieldForId(int id)
PField<?>
fieldForName(java.lang.String name)
PField<?>
findFieldById(int id)
PField<?>
findFieldByName(java.lang.String name)
PField<?>[]
getFields()
CInterfaceDescriptor
getImplementing()
PMessageVariant
getVariant()
boolean
isSimple()
-
Methods inherited from interface net.morimekta.providence.reflect.contained.CAnnotatedDescriptor
getAnnotations, getAnnotationValue, getAnnotationValue, getDocumentation, hasAnnotation, hasAnnotation
-
Methods inherited from interface net.morimekta.providence.descriptor.PDescriptor
getDefaultValue, getName, getProgramName, getQualifiedName, getQualifiedName, getType
-
-
-
-
Method Detail
-
getFields
@Nonnull PField<?>[] getFields()
-
findFieldByName
@Nullable PField<?> findFieldByName(java.lang.String name)
-
findFieldById
@Nullable PField<?> findFieldById(int id)
-
fieldForName
@Nullable PField<?> fieldForName(java.lang.String name)
-
fieldForId
@Nullable PField<?> fieldForId(int id)
-
getVariant
@Nonnull 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.
-
-