public class SameTokenSyncResponseClassSpec extends SyncResponseClassSpec
ITERATOR_METHODc2jOperationName, CLIENT_MEMBER, HAS_NEXT_PAGE_METHOD, LAST_SUCCESSFUL_PAGE_LITERAL, model, NEXT_PAGE_FETCHER_MEMBER, NEXT_PAGE_METHOD, operationModel, paginationDocs, paginatorDefinition, poetExtensions, PREVIOUS_PAGE_METHOD_ARGUMENT, REQUEST_MEMBER, RESPONSE_LITERAL, RESUME_METHOD, typeProvider| Constructor and Description |
|---|
SameTokenSyncResponseClassSpec(IntermediateModel model,
String c2jOperationName,
PaginatorDefinition paginatorDefinition) |
| Modifier and Type | Method and Description |
|---|---|
protected com.squareup.javapoet.MethodSpec |
constructor() |
protected Stream<com.squareup.javapoet.FieldSpec> |
fields() |
protected com.squareup.javapoet.CodeBlock |
hasNextPageMethodBody() |
protected String |
nextPageFetcherArgument() |
protected com.squareup.javapoet.TypeSpec.Builder |
nextPageFetcherClass()
Generates a inner class that implements
SyncPageFetcher. |
protected com.squareup.javapoet.CodeBlock |
nextPageMethodBody() |
className, getClientInterfaceName, iteratorMethod, poetSpec, syncClientInterfaceFieldcodeToGetNextPageIfOldResponseIsNotNull, constructRequestFromLastPage, fluentGetterMethodForResponseMember, fluentGetterMethodsForOutputToken, getIteratorLambdaBlock, getTypeForResultKey, memberModelForResponseMember, nextPageFetcherClassName, requestClassField, requestType, responseType, resumeMethodBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstaticImportspublic SameTokenSyncResponseClassSpec(IntermediateModel model, String c2jOperationName, PaginatorDefinition paginatorDefinition)
protected Stream<com.squareup.javapoet.FieldSpec> fields()
fields in class SyncResponseClassSpecprotected com.squareup.javapoet.MethodSpec constructor()
constructor in class SyncResponseClassSpecprotected String nextPageFetcherArgument()
nextPageFetcherArgument in class SyncResponseClassSpecprotected com.squareup.javapoet.TypeSpec.Builder nextPageFetcherClass()
SyncResponseClassSpecSyncPageFetcher. An instance of this class
is passed to PaginatedResponsesIterator to be used while iterating through pages.nextPageFetcherClass in class SyncResponseClassSpecprotected com.squareup.javapoet.CodeBlock hasNextPageMethodBody()
hasNextPageMethodBody in class PaginatorsClassSpecprotected com.squareup.javapoet.CodeBlock nextPageMethodBody()
nextPageMethodBody in class PaginatorsClassSpecCopyright © 2023. All rights reserved.