Class SimpleMethodGenerator
java.lang.Object
no.sikt.graphitron.generators.abstractions.SimpleMethodGenerator
- All Implemented Interfaces:
MethodGenerator
- Direct Known Subclasses:
CodeInterfaceSchemaMethodGenerator,CodeInterfaceTypeRegistryMethodGenerator,TypeRegistryMethodGenerator,WiringBuilderMethodGenerator
An abstract generator that contains simple methods that are independent of the GraphQL schema.
-
Constructor Details
-
SimpleMethodGenerator
public SimpleMethodGenerator()
-
-
Method Details
-
generateAll
- Specified by:
generateAllin interfaceMethodGenerator- Returns:
- List of complete javapoet
MethodSpecthat can be generated for this object.
-
getDependencyMap
- Specified by:
getDependencyMapin interfaceMethodGenerator- Returns:
- A set containing all dependencies necessary for these generated methods. Key is the method name where the dependency is needed.
-
generate
public abstract no.sikt.graphitron.javapoet.MethodSpec generate()- Returns:
- The complete javapoet
MethodSpecbased on the provided target.
-