1 | import { BaseVisitor } from '@graphql-codegen/visitor-plugin-common';
|
2 | import { JavaApolloAndroidPluginConfig } from './plugin';
|
3 | import { GraphQLSchema, GraphQLNamedType, GraphQLOutputType, TypeNode, GraphQLInterfaceType } from 'graphql';
|
4 | import { VisitorConfig } from './visitor-config';
|
5 | import { ImportsSet, TransformedType } from './types';
|
6 | export declare const SCALAR_TO_WRITER_METHOD: {
|
7 | ID: string;
|
8 | String: string;
|
9 | Int: string;
|
10 | Boolean: string;
|
11 | Float: string;
|
12 | };
|
13 | export declare class BaseJavaVisitor<Config extends VisitorConfig = any> extends BaseVisitor<JavaApolloAndroidPluginConfig, Config> {
|
14 | protected _schema: GraphQLSchema;
|
15 | protected _imports: ImportsSet;
|
16 | constructor(_schema: GraphQLSchema, rawConfig: JavaApolloAndroidPluginConfig, additionalConfig: Partial<Config>);
|
17 | getPackage(): string;
|
18 | additionalContent(): string;
|
19 | getImports(): string[];
|
20 | protected getImplementingTypes(node: GraphQLInterfaceType): string[];
|
21 | protected transformType(type: TypeNode | GraphQLOutputType): TransformedType;
|
22 | protected getJavaClass(schemaType: GraphQLNamedType): string;
|
23 | protected getListTypeWrapped(toWrap: string, type: GraphQLOutputType): string;
|
24 | protected getListTypeNodeWrapped(toWrap: string, type: TypeNode): string;
|
25 | }
|