public class CServiceMethod extends Object implements PServiceMethod, CAnnotatedDescriptor
| Constructor and Description |
|---|
CServiceMethod(String comment,
String name,
boolean oneway,
CStructDescriptor requestType,
CUnionDescriptor responseType,
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.
|
String |
getName() |
CStructDescriptor |
getRequestType() |
CUnionDescriptor |
getResponseType() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
boolean |
isOneway() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationValue, hasAnnotationpublic CServiceMethod(String comment, String name, boolean oneway, CStructDescriptor requestType, CUnionDescriptor responseType, Map<String,String> annotations)
@Nonnull public String getName()
getName in interface PServiceMethodpublic boolean isOneway()
isOneway in interface PServiceMethod@Nonnull public CStructDescriptor getRequestType()
getRequestType in interface PServiceMethodpublic CUnionDescriptor getResponseType()
getResponseType in interface PServiceMethod@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–2017 morimekta.net. All rights reserved.