public final class ServiceMethod extends DocumentableAstNode implements ScopeSymbol
| Constructor and Description |
|---|
ServiceMethod(AstLocation location,
java.lang.String name,
TypeReference responseTypeReference,
TypeReference requestTypeReference,
java.util.List<DocComment> docComments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
java.lang.String |
getName()
Gets the name of the symbol stored in the lexical scope.
|
TypeReference |
getRequestTypeReference()
Gets the reference to request method type.
|
TypeReference |
getResponseTypeReference()
Gets the reference to response method type.
|
void |
visitChildren(ZserioAstVisitor visitor)
Visit children of the current AST node using given visitor.
|
getDocCommentsgetLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocationpublic ServiceMethod(AstLocation location, java.lang.String name, TypeReference responseTypeReference, TypeReference requestTypeReference, java.util.List<DocComment> docComments)
location - AST node location.name - Name of the service method.responseTypeReference - Reference to the response type.requestTypeReference - Reference to the request type.docComments - List of documentation comments belonging to this node.public void accept(ZserioAstVisitor visitor)
AstNodepublic void visitChildren(ZserioAstVisitor visitor)
AstNodevisitChildren in interface AstNodevisitChildren in class DocumentableAstNodevisitor - Visitor to use.public java.lang.String getName()
ScopeSymbolgetName in interface ScopeSymbolpublic TypeReference getRequestTypeReference()
public TypeReference getResponseTypeReference()
Last updated 2024-07-18 11:31:32