Class DeprecatedDefinitionBuilder

java.lang.Object
io.github.besi97.graphql.codegen.model.builders.DeprecatedDefinitionBuilder

public class DeprecatedDefinitionBuilder extends Object
Builder of @deprecated annotation definition
  • Method Details

    • build

      public static DeprecatedDefinition build(MappingContext mappingContext, graphql.language.DirectivesContainer<?> directivesContainer)
      Get a definition of @deprecated based on a given directive
      Parameters:
      mappingContext - Global mapping context
      directivesContainer - GraphQL directive container
      Returns:
      a definition of a deprecation having reason and annotation
    • build

      public static DeprecatedDefinition build(GeneratedLanguage generatedLanguage, graphql.language.Directive directive)
      Get a definition of @deprecated annotation for a specified language.
      Parameters:
      generatedLanguage - Language of code generation
      directive - GraphQL @deprecated directive
      Returns:
      a definition of a deprecation having reason and annotation