Class DirectiveParserImpl<T>

java.lang.Object
org.aksw.jenax.graphql.sparql.v2.context.DirectiveParserImpl<T>
All Implemented Interfaces:
DirectiveParser<T>

public class DirectiveParserImpl<T> extends Object implements DirectiveParser<T>
  • Field Details

    • javaClass

      protected final Class<? super T> javaClass
    • name

      protected final String name
    • isUnique

      protected final boolean isUnique
    • parser

      protected Function<graphql.language.Directive,T> parser
  • Constructor Details

    • DirectiveParserImpl

      protected DirectiveParserImpl(Class<? super T> javaClass, String name, boolean isUnique, Function<graphql.language.Directive,T> parser)
  • Method Details

    • of

      public static <T> DirectiveParser<T> of(Class<? super T> javaClass, String name, boolean isUnqiue, Function<graphql.language.Directive,T> parser)
    • getJavaClass

      public Class<? super T> getJavaClass()
    • supports

      public boolean supports(Class<?> interfaceToTestFor)
    • getName

      public String getName()
      Description copied from interface: DirectiveParser
      The directive which this parser parses.
      Specified by:
      getName in interface DirectiveParser<T>
    • isUnique

      public boolean isUnique()
      Description copied from interface: DirectiveParser
      Whether the directive is unique.
      Specified by:
      isUnique in interface DirectiveParser<T>
    • parser

      public T parser(graphql.language.Directive directive)
      Specified by:
      parser in interface DirectiveParser<T>