public class MethodDeclaration extends Declaration
function ::= 'oneway'? {type} {name} '(' {field}* ')' ('throws' '(' {field}* ')')? {annotations}?
| Constructor and Description |
|---|
MethodDeclaration(String documentation,
ThriftToken oneway,
List<ThriftToken> returnTypeTokens,
ThriftToken name,
List<FieldDeclaration> params,
ThriftToken requestTypeToken,
List<FieldDeclaration> throwing,
List<AnnotationDeclaration> annotations) |
| Modifier and Type | Method and Description |
|---|---|
ThriftToken |
getOneWayToken() |
List<FieldDeclaration> |
getParams() |
ThriftToken |
getRequestTypeToken() |
String |
getReturnType() |
List<ThriftToken> |
getReturnTypeTokens() |
List<FieldDeclaration> |
getThrowing() |
boolean |
isOneWay() |
getAnnotations, getDocumentation, getName, getNameTokenpublic MethodDeclaration(@Nullable String documentation, @Nullable ThriftToken oneway, @Nonnull List<ThriftToken> returnTypeTokens, @Nonnull ThriftToken name, @Nullable List<FieldDeclaration> params, @Nullable ThriftToken requestTypeToken, @Nullable List<FieldDeclaration> throwing, @Nullable List<AnnotationDeclaration> annotations)
public boolean isOneWay()
@Nullable public ThriftToken getRequestTypeToken()
@Nullable public ThriftToken getOneWayToken()
@Nonnull public List<ThriftToken> getReturnTypeTokens()
@Nonnull public List<FieldDeclaration> getParams()
@Nullable public List<FieldDeclaration> getThrowing()
Copyright © 2015–2020 morimekta.net. All rights reserved.