public class CService extends net.morimekta.providence.descriptor.PService implements CAnnotatedDescriptor
| Constructor and Description |
|---|
CService(String documentation,
String programName,
String name,
net.morimekta.providence.descriptor.PServiceProvider extendsService,
Collection<CServiceMethod> methods,
Map<String,String> annotations) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAnnotations()
Get set of available annotations.
|
String |
getAnnotationValue(String name)
Get the given annotation value.
|
String |
getDocumentation()
The type comment is the last block of comment written before the type
declaration.
|
CService |
getExtendsService() |
CServiceMethod |
getMethod(String name) |
Collection<CServiceMethod> |
getMethods() |
Collection<CServiceMethod> |
getMethodsIncludingExtended()
Get all methods including methods declared in extended services.
|
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
getDefaultValue, getType, isAutoType, isInnerTypegetName, getProgramName, getQualifiedName, getTypeName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotationValue, hasAnnotationpublic CService(String documentation, String programName, String name, net.morimekta.providence.descriptor.PServiceProvider extendsService, Collection<CServiceMethod> methods, Map<String,String> annotations)
@Nonnull public Collection<CServiceMethod> getMethods()
getMethods in class net.morimekta.providence.descriptor.PServicepublic CServiceMethod getMethod(String name)
getMethod in class net.morimekta.providence.descriptor.PServicepublic CService getExtendsService()
getExtendsService in class net.morimekta.providence.descriptor.PServicepublic Collection<CServiceMethod> getMethodsIncludingExtended()
@Nonnull public Set<String> getAnnotations()
CAnnotatedDescriptorgetAnnotations in interface CAnnotatedDescriptorpublic boolean hasAnnotation(@Nonnull String name)
CAnnotatedDescriptorhasAnnotation in interface CAnnotatedDescriptorname - Name of annotation.public String getAnnotationValue(@Nonnull String name)
CAnnotatedDescriptorgetAnnotationValue in interface CAnnotatedDescriptorname - Name of annotation.public String getDocumentation()
CAnnotatedDescriptorgetDocumentation in interface CAnnotatedDescriptorCopyright © 2015–2020 morimekta.net. All rights reserved.