Class OperationMethodGenerator

All Implemented Interfaces:
MethodGenerator

public class OperationMethodGenerator extends DataFetcherMethodGenerator
This class generates the data fetchers for default fetch or mutation queries with potential arguments or pagination.
  • Constructor Details

  • Method Details

    • generate

      public no.sikt.graphitron.javapoet.MethodSpec generate(ObjectField target)
      Specified by:
      generate in class AbstractSchemaMethodGenerator<ObjectField,ObjectDefinition>
      Returns:
      The complete javapoet MethodSpec based on the provided target.
    • getMethodCall

      protected no.sikt.graphitron.javapoet.CodeBlock getMethodCall(ObjectField target, InputParser parser, boolean isMutatingMethod)
    • getReturnTypeName

      protected no.sikt.graphitron.javapoet.TypeName getReturnTypeName(ObjectField referenceField)
    • generationCondition

      protected boolean generationCondition(GenerationField target)
    • generateAll

      public List<no.sikt.graphitron.javapoet.MethodSpec> generateAll()
      Returns:
      List of complete javapoet MethodSpec that can be generated for this object.