Class CodeInterfaceSchemaWithFederationMethodGenerator
java.lang.Object
no.sikt.graphitron.generators.abstractions.SimpleMethodGenerator
no.sikt.graphitron.generators.codeinterface.CodeInterfaceSchemaWithFederationMethodGenerator
- All Implemented Interfaces:
MethodGenerator
Generates the
getSchema(..., includeFederation) overload method that provides a simple API
for getting either a regular or federated schema based on a boolean flag.
This method delegates to getFederatedSchema when federation is enabled,
or falls back to the regular getSchema method otherwise.
-
Constructor Summary
ConstructorsConstructorDescriptionCodeInterfaceSchemaWithFederationMethodGenerator(ProcessedSchema processedSchema) -
Method Summary
Methods inherited from class no.sikt.graphitron.generators.abstractions.SimpleMethodGenerator
generateAll, getDependencyMap
-
Constructor Details
-
CodeInterfaceSchemaWithFederationMethodGenerator
-
-
Method Details
-
generate
public no.sikt.graphitron.javapoet.MethodSpec generate()- Specified by:
generatein classSimpleMethodGenerator- Returns:
- The complete javapoet
MethodSpecbased on the provided target.
-