Class SyncResponseClassSpec

    • Method Detail

      • poetSpec

        public com.squareup.javapoet.TypeSpec poetSpec()
        Returns:
        The actual class specification generated from a PoetSpec.builder()... implementation
      • className

        public com.squareup.javapoet.ClassName className()
        Returns:
        The Poet representation of the class being generated, this may be used by other classes
      • getClientInterfaceName

        protected com.squareup.javapoet.ClassName getClientInterfaceName()
        Returns:
        A Poet ClassName for the sync client interface
      • fields

        protected Stream<com.squareup.javapoet.FieldSpec> fields()
      • syncClientInterfaceField

        protected com.squareup.javapoet.FieldSpec syncClientInterfaceField()
      • constructor

        protected com.squareup.javapoet.MethodSpec constructor()
      • iteratorMethod

        protected com.squareup.javapoet.MethodSpec iteratorMethod()
        A MethodSpec for the overridden iterator() method which is inherited from the interface.
      • nextPageFetcherArgument

        protected String nextPageFetcherArgument()
      • nextPageFetcherClass

        protected com.squareup.javapoet.TypeSpec.Builder nextPageFetcherClass()
        Generates a inner class that implements SyncPageFetcher. An instance of this class is passed to PaginatedResponsesIterator to be used while iterating through pages.