Class ServiceDeclaration
- java.lang.Object
-
- net.morimekta.providence.reflect.model.Declaration
-
- net.morimekta.providence.reflect.model.ServiceDeclaration
-
public class ServiceDeclaration extends Declaration
service ::= 'service' {name} ('extends' {extending})? '{' {function}* '}' {annotations}?
-
-
Constructor Summary
Constructors Constructor Description ServiceDeclaration(java.lang.String documentation, ThriftToken serviceToken, ThriftToken name, ThriftToken extending, java.util.List<MethodDeclaration> methods, java.util.List<AnnotationDeclaration> annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExtending()
ThriftToken
getExtendingToken()
java.util.List<MethodDeclaration>
getMethods()
ThriftToken
getServiceToken()
-
Methods inherited from class net.morimekta.providence.reflect.model.Declaration
getAnnotations, getDocumentation, getName, getNameToken
-
-
-
-
Constructor Detail
-
ServiceDeclaration
public ServiceDeclaration(@Nullable java.lang.String documentation, @Nonnull ThriftToken serviceToken, @Nonnull ThriftToken name, @Nullable ThriftToken extending, @Nonnull java.util.List<MethodDeclaration> methods, @Nullable java.util.List<AnnotationDeclaration> annotations)
-
-
Method Detail
-
getServiceToken
@Nonnull public ThriftToken getServiceToken()
-
getExtending
@Nullable public java.lang.String getExtending()
-
getExtendingToken
@Nullable public ThriftToken getExtendingToken()
-
getMethods
@Nonnull public java.util.List<MethodDeclaration> getMethods()
-
-