Class MessageDeclaration
- java.lang.Object
-
- net.morimekta.providence.reflect.model.Declaration
-
- net.morimekta.providence.reflect.model.MessageDeclaration
-
public class MessageDeclaration extends Declaration
variant ::= 'struct' | 'union' | 'exception' | 'interface' message ::= {variant} {name} (('implements' | 'of') {implementing})? '{' {field}* '}' {annotations}?
-
-
Constructor Summary
Constructors Constructor Description MessageDeclaration(java.lang.String documentation, ThriftToken variant, ThriftToken name, ThriftToken implementing, java.util.List<FieldDeclaration> fields, java.util.List<AnnotationDeclaration> annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<FieldDeclaration>getFields()ThriftTokengetImplementing()net.morimekta.providence.PMessageVariantgetVariant()ThriftTokengetVariantToken()-
Methods inherited from class net.morimekta.providence.reflect.model.Declaration
getAnnotations, getDocumentation, getName, getNameToken
-
-
-
-
Constructor Detail
-
MessageDeclaration
public MessageDeclaration(@Nullable java.lang.String documentation, @Nonnull ThriftToken variant, @Nonnull ThriftToken name, @Nullable ThriftToken implementing, @Nonnull java.util.List<FieldDeclaration> fields, @Nullable java.util.List<AnnotationDeclaration> annotations)
-
-
Method Detail
-
getImplementing
public ThriftToken getImplementing()
-
getFields
@Nonnull public java.util.List<FieldDeclaration> getFields()
-
getVariant
public net.morimekta.providence.PMessageVariant getVariant()
-
getVariantToken
@Nonnull public ThriftToken getVariantToken()
-
-