public class MessageDeclaration extends Declaration
variant ::= 'struct' | 'union' | 'exception' | 'interface'
message ::= {variant} {name} (('implements' | 'of') {implementing})? '{' {field}* '}' {annotations}?
| Constructor and Description |
|---|
MessageDeclaration(String documentation,
ThriftToken variant,
ThriftToken name,
ThriftToken implementing,
List<FieldDeclaration> fields,
List<AnnotationDeclaration> annotations) |
| Modifier and Type | Method and Description |
|---|---|
List<FieldDeclaration> |
getFields() |
ThriftToken |
getImplementing() |
net.morimekta.providence.PMessageVariant |
getVariant() |
ThriftToken |
getVariantToken() |
getAnnotations, getDocumentation, getName, getNameTokenpublic MessageDeclaration(@Nullable String documentation, @Nonnull ThriftToken variant, @Nonnull ThriftToken name, @Nullable ThriftToken implementing, @Nonnull List<FieldDeclaration> fields, @Nullable List<AnnotationDeclaration> annotations)
public ThriftToken getImplementing()
@Nonnull public List<FieldDeclaration> getFields()
public net.morimekta.providence.PMessageVariant getVariant()
@Nonnull public ThriftToken getVariantToken()
Copyright © 2015–2020 morimekta.net. All rights reserved.