java.lang.Object
com.graphql_java_generator.plugin.language.impl.AbstractType
com.graphql_java_generator.plugin.language.impl.ScalarType
All Implemented Interfaces:
Type
Direct Known Subclasses:
CustomScalarType

public class ScalarType extends AbstractType
Author:
etienne-sf
  • Constructor Details

    • ScalarType

      public ScalarType(String name, String packageName, String classSimpleName, CommonConfiguration configuration, DocumentParser documentParser)
      Parameters:
      name - The name of the GraphQL type
      packageName - The package of the java class that will hold this value
      classSimpleName - The simple name (without the package) of the java class that will hold this value
      configuration - The current GraphQLConfiguration
      documentParser - The DocumentParser that has parsed the schema, and so that contains the whole schema definition
  • Method Details

    • getIdentifier

      public Field getIdentifier()
      A scalar has no identifier.
      Returns:
      null
    • isInputType

      public boolean isInputType()
      Returns true if this type is a GraphQL InputObjectType, false otherwise
    • isCustomScalar

      public boolean isCustomScalar()
      Returns true if this type is a GraphQL Custom Scalar, false otherwise
    • isScalar

      public boolean isScalar()
      Returns true if this type is a GraphQL Scalar (custom or not), false otherwise