You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/apollo-compiler/api/apollo-compiler.api
+39-16Lines changed: 39 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,18 @@ public final class com/apollographql/apollo/compiler/AdapterInitializer$Companio
6
6
public final fun serializer ()Lkotlinx/serialization/KSerializer;
7
7
}
8
8
9
+
public final class com/apollographql/apollo/compiler/After : com/apollographql/apollo/compiler/Order {
10
+
public fun <init> (Ljava/lang/String;)V
11
+
public final fun getId ()Ljava/lang/String;
12
+
}
13
+
9
14
public final class com/apollographql/apollo/compiler/ApolloCompiler {
10
15
public static final field INSTANCE Lcom/apollographql/apollo/compiler/ApolloCompiler;
11
16
public final fun buildCodegenSchema (Ljava/util/List;Lcom/apollographql/apollo/compiler/ApolloCompiler$Logger;Lcom/apollographql/apollo/compiler/CodegenSchemaOptions;Ljava/util/List;Lcom/apollographql/apollo/compiler/SchemaTransform;)Lcom/apollographql/apollo/compiler/CodegenSchema;
12
17
public final fun buildDataBuilders (Lcom/apollographql/apollo/compiler/CodegenSchema;Lcom/apollographql/apollo/compiler/UsedCoordinates;Lcom/apollographql/apollo/compiler/CodegenOptions;Lcom/apollographql/apollo/compiler/codegen/SchemaLayout;Ljava/util/List;)Lcom/apollographql/apollo/compiler/codegen/SourceOutput;
13
-
public final fun buildIrOperations (Lcom/apollographql/apollo/compiler/CodegenSchema;Ljava/util/List;Ljava/util/List;Ljava/util/List;Lcom/apollographql/apollo/compiler/IrOptions;Lcom/apollographql/apollo/compiler/DocumentTransform;Lcom/apollographql/apollo/compiler/ApolloCompiler$Logger;)Lcom/apollographql/apollo/compiler/ir/IrOperations;
14
-
public final fun buildSchemaAndOperationsSources (Lcom/apollographql/apollo/compiler/CodegenSchema;Ljava/util/List;Lcom/apollographql/apollo/compiler/IrOptions;Lcom/apollographql/apollo/compiler/CodegenOptions;Lcom/apollographql/apollo/compiler/LayoutFactory;Lcom/apollographql/apollo/compiler/OperationIdsGenerator;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/DocumentTransform;Lcom/apollographql/apollo/compiler/ApolloCompiler$Logger;Ljava/io/File;)Lcom/apollographql/apollo/compiler/codegen/SourceOutput;
15
-
public final fun buildSchemaAndOperationsSources (Ljava/util/List;Ljava/util/List;Lcom/apollographql/apollo/compiler/CodegenSchemaOptions;Lcom/apollographql/apollo/compiler/IrOptions;Lcom/apollographql/apollo/compiler/CodegenOptions;Lcom/apollographql/apollo/compiler/LayoutFactory;Lcom/apollographql/apollo/compiler/OperationIdsGenerator;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/DocumentTransform;Lcom/apollographql/apollo/compiler/SchemaTransform;Lcom/apollographql/apollo/compiler/ApolloCompiler$Logger;Ljava/io/File;)Lcom/apollographql/apollo/compiler/codegen/SourceOutput;
18
+
public final fun buildIrOperations (Lcom/apollographql/apollo/compiler/CodegenSchema;Ljava/util/List;Ljava/util/List;Ljava/util/List;Lcom/apollographql/apollo/compiler/IrOptions;Lcom/apollographql/apollo/compiler/OperationsTransform;Lcom/apollographql/apollo/compiler/ApolloCompiler$Logger;)Lcom/apollographql/apollo/compiler/ir/IrOperations;
19
+
public final fun buildSchemaAndOperationsSources (Lcom/apollographql/apollo/compiler/CodegenSchema;Ljava/util/List;Lcom/apollographql/apollo/compiler/IrOptions;Lcom/apollographql/apollo/compiler/CodegenOptions;Lcom/apollographql/apollo/compiler/LayoutFactory;Lcom/apollographql/apollo/compiler/OperationIdsGenerator;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/OperationsTransform;Lcom/apollographql/apollo/compiler/ApolloCompiler$Logger;Ljava/io/File;)Lcom/apollographql/apollo/compiler/codegen/SourceOutput;
20
+
public final fun buildSchemaAndOperationsSources (Ljava/util/List;Ljava/util/List;Lcom/apollographql/apollo/compiler/CodegenSchemaOptions;Lcom/apollographql/apollo/compiler/IrOptions;Lcom/apollographql/apollo/compiler/CodegenOptions;Lcom/apollographql/apollo/compiler/LayoutFactory;Lcom/apollographql/apollo/compiler/OperationIdsGenerator;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/OperationsTransform;Lcom/apollographql/apollo/compiler/SchemaTransform;Lcom/apollographql/apollo/compiler/ApolloCompiler$Logger;Ljava/io/File;)Lcom/apollographql/apollo/compiler/codegen/SourceOutput;
16
21
public final fun buildSchemaAndOperationsSourcesFromIr (Lcom/apollographql/apollo/compiler/CodegenSchema;Lcom/apollographql/apollo/compiler/ir/IrOperations;Lcom/apollographql/apollo/compiler/UsedCoordinates;Ljava/util/List;Lcom/apollographql/apollo/compiler/CodegenOptions;Lcom/apollographql/apollo/compiler/codegen/SchemaAndOperationsLayout;Lcom/apollographql/apollo/compiler/OperationIdsGenerator;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;Ljava/io/File;)Lcom/apollographql/apollo/compiler/codegen/SourceOutput;
17
22
public final fun buildSchemaSources (Lcom/apollographql/apollo/compiler/CodegenSchema;Lcom/apollographql/apollo/compiler/UsedCoordinates;Lcom/apollographql/apollo/compiler/CodegenOptions;Lcom/apollographql/apollo/compiler/codegen/SchemaLayout;Lcom/apollographql/apollo/compiler/Transform;Lcom/apollographql/apollo/compiler/Transform;)Lcom/apollographql/apollo/compiler/codegen/SourceOutput;
18
23
}
@@ -26,21 +31,15 @@ public final class com/apollographql/apollo/compiler/ApolloCompilerKt {
26
31
}
27
32
28
33
public abstract interface class com/apollographql/apollo/compiler/ApolloCompilerPlugin {
29
-
public fun documentTransform ()Lcom/apollographql/apollo/compiler/DocumentTransform;
30
-
public fun foreignSchemas ()Ljava/util/List;
31
-
public fun irOperationsTransform ()Lcom/apollographql/apollo/compiler/Transform;
32
-
public fun javaOutputTransform ()Lcom/apollographql/apollo/compiler/Transform;
33
-
public fun kotlinOutputTransform ()Lcom/apollographql/apollo/compiler/Transform;
34
-
public fun layout (Lcom/apollographql/apollo/compiler/CodegenSchema;)Lcom/apollographql/apollo/compiler/codegen/SchemaAndOperationsLayout;
34
+
public abstract fun beforeCompilationStep (Lcom/apollographql/apollo/compiler/ApolloCompilerPluginEnvironment;Lcom/apollographql/apollo/compiler/ApolloCompilerRegistry;)V
35
35
public fun operationIds (Ljava/util/List;)Ljava/util/List;
36
-
public fun schemaListener ()Lcom/apollographql/apollo/compiler/SchemaListener;
37
-
public fun schemaTransform ()Lcom/apollographql/apollo/compiler/SchemaTransform;
38
36
}
39
37
40
38
public final class com/apollographql/apollo/compiler/ApolloCompilerPluginEnvironment {
41
-
public fun <init> (Ljava/util/Map;Lcom/apollographql/apollo/compiler/ApolloCompilerPluginLogger;)V
39
+
public fun <init> (Ljava/util/Map;Lcom/apollographql/apollo/compiler/ApolloCompilerPluginLogger;Ljava/io/File;)V
42
40
public final fun getArguments ()Ljava/util/Map;
43
41
public final fun getLogger ()Lcom/apollographql/apollo/compiler/ApolloCompilerPluginLogger;
42
+
public final fun getOutputDirectory ()Ljava/io/File;
44
43
}
45
44
46
45
public abstract interface class com/apollographql/apollo/compiler/ApolloCompilerPluginLogger {
@@ -54,6 +53,27 @@ public abstract interface class com/apollographql/apollo/compiler/ApolloCompiler
54
53
public abstract fun create (Lcom/apollographql/apollo/compiler/ApolloCompilerPluginEnvironment;)Lcom/apollographql/apollo/compiler/ApolloCompilerPlugin;
55
54
}
56
55
56
+
public abstract interface class com/apollographql/apollo/compiler/ApolloCompilerRegistry {
57
+
public abstract fun registerExtraCodeGenerator (Lcom/apollographql/apollo/compiler/CodeGenerator;)V
58
+
public abstract fun registerForeignSchemas (Ljava/util/List;)V
59
+
public abstract fun registerIrTransform (Ljava/lang/String;[Lcom/apollographql/apollo/compiler/Order;Lcom/apollographql/apollo/compiler/Transform;)V
60
+
public abstract fun registerJavaOutputTransform (Ljava/lang/String;[Lcom/apollographql/apollo/compiler/Order;Lcom/apollographql/apollo/compiler/Transform;)V
61
+
public abstract fun registerKotlinOutputTransform (Ljava/lang/String;[Lcom/apollographql/apollo/compiler/Order;Lcom/apollographql/apollo/compiler/Transform;)V
62
+
public abstract fun registerLayout (Lcom/apollographql/apollo/compiler/LayoutFactory;)V
63
+
public abstract fun registerOperationIdsGenerator (Lcom/apollographql/apollo/compiler/OperationIdsGenerator;)V
64
+
public abstract fun registerOperationsTransform (Ljava/lang/String;[Lcom/apollographql/apollo/compiler/Order;Lcom/apollographql/apollo/compiler/OperationsTransform;)V
65
+
public abstract fun registerSchemaTransform (Ljava/lang/String;[Lcom/apollographql/apollo/compiler/Order;Lcom/apollographql/apollo/compiler/SchemaTransform;)V
66
+
}
67
+
68
+
public final class com/apollographql/apollo/compiler/Before : com/apollographql/apollo/compiler/Order {
69
+
public fun <init> (Ljava/lang/String;)V
70
+
public final fun getId ()Ljava/lang/String;
71
+
}
72
+
73
+
public abstract interface class com/apollographql/apollo/compiler/CodeGenerator {
74
+
public abstract fun generate (Lcom/apollographql/apollo/ast/GQLDocument;)V
75
+
}
76
+
57
77
public final class com/apollographql/apollo/compiler/CodegenMetadata {
58
78
public static final field Companion Lcom/apollographql/apollo/compiler/CodegenMetadata$Companion;
59
79
public fun <init> (Ljava/lang/String;Lcom/apollographql/apollo/compiler/TargetLanguage;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;)V
@@ -182,10 +202,6 @@ public abstract interface class com/apollographql/apollo/compiler/CommonCodegenO
182
202
public abstract fun getUseSemanticNaming ()Ljava/lang/Boolean;
183
203
}
184
204
185
-
public abstract interface class com/apollographql/apollo/compiler/DocumentTransform {
186
-
public abstract fun transform (Lcom/apollographql/apollo/ast/Schema;Lcom/apollographql/apollo/ast/GQLDocument;Ljava/util/List;)Lcom/apollographql/apollo/ast/GQLDocument;
187
-
}
188
-
189
205
public final class com/apollographql/apollo/compiler/EntryPoints {
190
206
public fun <init> ()V
191
207
public final fun buildCodegenSchema (Ljava/util/Map;IZLjava/util/List;Ljava/util/function/Consumer;Ljava/io/File;Ljava/io/File;)V
@@ -356,6 +372,10 @@ public abstract interface class com/apollographql/apollo/compiler/OperationsCode
356
372
public abstract interface class com/apollographql/apollo/compiler/OperationsCodegenOptions : com/apollographql/apollo/compiler/JavaOperationsCodegenOptions, com/apollographql/apollo/compiler/KotlinOperationsCodegenOptions {
357
373
}
358
374
375
+
public abstract interface class com/apollographql/apollo/compiler/OperationsTransform {
376
+
public abstract fun transform (Lcom/apollographql/apollo/ast/Schema;Lcom/apollographql/apollo/ast/GQLDocument;Ljava/util/List;)Lcom/apollographql/apollo/ast/GQLDocument;
377
+
}
378
+
359
379
public final class com/apollographql/apollo/compiler/OptionsKt {
360
380
public static final field ADD_TYPENAME_ALWAYS Ljava/lang/String;
361
381
public static final field ADD_TYPENAME_IF_ABSTRACT Ljava/lang/String;
@@ -374,6 +394,9 @@ public final class com/apollographql/apollo/compiler/OptionsKt {
374
394
public static final fun validate (Lcom/apollographql/apollo/compiler/CodegenOptions;)V
375
395
}
376
396
397
+
public abstract interface class com/apollographql/apollo/compiler/Order {
398
+
}
399
+
377
400
public final class com/apollographql/apollo/compiler/RuntimeAdapterInitializer : com/apollographql/apollo/compiler/AdapterInitializer {
378
401
public static final field INSTANCE Lcom/apollographql/apollo/compiler/RuntimeAdapterInitializer;
379
402
public final fun serializer ()Lkotlinx/serialization/KSerializer;
0 commit comments