Class ScalarType
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
- Author:
- etienne-sf
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.graphql_java_generator.plugin.language.Type
Type.GraphQlType, Type.TargetFileType
-
Constructor Summary
ConstructorDescriptionScalarType
(String name, String packageName, String classSimpleName, CommonConfiguration configuration, DocumentParser documentParser) -
Method Summary
Modifier and TypeMethodDescriptionA scalar has no identifier.boolean
Returns true if this type is a GraphQL Custom Scalar, false otherwiseboolean
Returns true if this type is a GraphQL InputObjectType, false otherwiseboolean
isScalar()
Returns true if this type is a GraphQL Scalar (custom or not), false otherwiseMethods inherited from class com.graphql_java_generator.plugin.language.impl.AbstractType
addAnnotation, addAnnotation, addImport, addImportForUtilityClasses, getAnnotation, getCamelCaseName, getClassSimpleName, getGraphQlType, getJavaName, getPrefix, getSuffix, setAnnotation, setComments, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.graphql_java_generator.plugin.language.Type
getAppliedDirectives, getClassFullName, getComments, getDataFetcher, getDescription, getField, getFields, getImports, getImportsForUtilityClasses, getName, getPackageName, getRequestType, getTargetFileName, isEnum
-
Constructor Details
-
ScalarType
public ScalarType(String name, String packageName, String classSimpleName, CommonConfiguration configuration, DocumentParser documentParser) - Parameters:
name
- The name of the GraphQL typepackageName
- The package of the java class that will hold this valueclassSimpleName
- The simple name (without the package) of the java class that will hold this valueconfiguration
- The currentGraphQLConfiguration
documentParser
- TheDocumentParser
that has parsed the schema, and so that contains the whole schema definition
-
-
Method Details
-
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
-