Interface TypeFunction

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      graphql.schema.GraphQLType buildType​(boolean input, java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType, ProcessingElementsContainer container)
      Build a GraphQLType object from a java type.
      default graphql.schema.GraphQLType buildType​(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType, ProcessingElementsContainer container)  
      boolean canBuildType​(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)
      Get whether this builder handles the given type.
      default java.lang.String getTypeName​(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)
      Get the graphql type name that will be used to build the type.
    • Method Detail

      • canBuildType

        boolean canBuildType​(java.lang.Class<?> aClass,
                             java.lang.reflect.AnnotatedType annotatedType)
        Get whether this builder handles the given type.
        Parameters:
        aClass - The java type to build the type name for
        annotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}
        Returns:
        True if this builder can build the type
      • buildType

        default graphql.schema.GraphQLType buildType​(java.lang.Class<?> aClass,
                                                     java.lang.reflect.AnnotatedType annotatedType,
                                                     ProcessingElementsContainer container)
        Parameters:
        aClass - The java type to build the type name for
        annotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}
        container - a class that hold several members that are required in order to build schema
        Returns:
        The built
      • buildType

        graphql.schema.GraphQLType buildType​(boolean input,
                                             java.lang.Class<?> aClass,
                                             java.lang.reflect.AnnotatedType annotatedType,
                                             ProcessingElementsContainer container)
        Build a GraphQLType object from a java type.
        Parameters:
        input - is InputType
        aClass - The java type to build the type name for
        annotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}
        container - a class that hold several members that are required in order to build schema
        Returns:
        The built GraphQLType