@UnstableApi public final class MethodInfo extends Object
Service.| Constructor and Description |
|---|
MethodInfo(String name,
TypeSignature returnTypeSignature,
Iterable<FieldInfo> parameters,
Iterable<TypeSignature> exceptionTypeSignatures,
Iterable<EndpointInfo> endpoints)
Creates a new instance.
|
MethodInfo(String name,
TypeSignature returnTypeSignature,
Iterable<FieldInfo> parameters,
Iterable<TypeSignature> exceptionTypeSignatures,
Iterable<EndpointInfo> endpoints,
HttpMethod httpMethod,
String docString)
Creates a new instance.
|
MethodInfo(String name,
TypeSignature returnTypeSignature,
Iterable<FieldInfo> parameters,
Iterable<TypeSignature> exceptionTypeSignatures,
Iterable<EndpointInfo> endpoints,
Iterable<HttpHeaders> exampleHttpHeaders,
Iterable<String> exampleRequests,
HttpMethod httpMethod,
String docString)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
docString()
Returns the documentation string of the function.
|
Set<EndpointInfo> |
endpoints()
Returns the endpoints for accessing this method.
|
boolean |
equals(Object o) |
List<HttpHeaders> |
exampleHttpHeaders()
Returns the example HTTP headers of the method.
|
List<String> |
exampleRequests()
Returns the list of the example request serialized in a string.
|
Set<TypeSignature> |
exceptionTypeSignatures()
Returns the metadata about the exceptions declared by the function.
|
int |
hashCode() |
HttpMethod |
httpMethod()
Returns the HTTP method of this method.
|
String |
name()
Returns the name of the function.
|
List<FieldInfo> |
parameters()
Returns the metadata about the parameters of the function.
|
TypeSignature |
returnTypeSignature()
Returns the signature of the return type of the function.
|
String |
toString() |
public MethodInfo(String name, TypeSignature returnTypeSignature, Iterable<FieldInfo> parameters, Iterable<TypeSignature> exceptionTypeSignatures, Iterable<EndpointInfo> endpoints)
public MethodInfo(String name, TypeSignature returnTypeSignature, Iterable<FieldInfo> parameters, Iterable<TypeSignature> exceptionTypeSignatures, Iterable<EndpointInfo> endpoints, HttpMethod httpMethod, String docString)
public MethodInfo(String name, TypeSignature returnTypeSignature, Iterable<FieldInfo> parameters, Iterable<TypeSignature> exceptionTypeSignatures, Iterable<EndpointInfo> endpoints, Iterable<HttpHeaders> exampleHttpHeaders, Iterable<String> exampleRequests, HttpMethod httpMethod, String docString)
public String name()
public TypeSignature returnTypeSignature()
public Set<EndpointInfo> endpoints()
public List<FieldInfo> parameters()
public Set<TypeSignature> exceptionTypeSignatures()
public List<HttpHeaders> exampleHttpHeaders()
public List<String> exampleRequests()
public HttpMethod httpMethod()
public String docString()
Copyright © 2020 LeanCloud. All rights reserved.