Class FetchResolverMethodGenerator

All Implemented Interfaces:
MethodGenerator

public class FetchResolverMethodGenerator extends KickstartResolverMethodGenerator
This class generates the resolvers for default fetch 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.
    • 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.
    • generatesAll

      public boolean generatesAll()
      Specified by:
      generatesAll in class KickstartResolverMethodGenerator
      Returns:
      Does this method generator generate all possible methods? False if any are set to not generate.