public class ServiceDeclaration extends Declaration
service ::= 'service' {name} ('extends' {extending})? '{' {function}* '}' {annotations}?
| Constructor and Description |
|---|
ServiceDeclaration(String documentation,
ThriftToken serviceToken,
ThriftToken name,
ThriftToken extending,
List<MethodDeclaration> methods,
List<AnnotationDeclaration> annotations) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExtending() |
ThriftToken |
getExtendingToken() |
List<MethodDeclaration> |
getMethods() |
ThriftToken |
getServiceToken() |
getAnnotations, getDocumentation, getName, getNameTokenpublic ServiceDeclaration(@Nullable String documentation, @Nonnull ThriftToken serviceToken, @Nonnull ThriftToken name, @Nullable ThriftToken extending, @Nonnull List<MethodDeclaration> methods, @Nullable List<AnnotationDeclaration> annotations)
@Nonnull public ThriftToken getServiceToken()
@Nullable public ThriftToken getExtendingToken()
@Nonnull public List<MethodDeclaration> getMethods()
Copyright © 2015–2020 morimekta.net. All rights reserved.