Class ScalarUtils
java.lang.Object
no.sikt.graphitron.definitions.helpers.ScalarUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScalarUtilsno.sikt.graphitron.javapoet.ClassNamegetScalarTypeMapping(String scalarName) static ScalarUtilsinitialize(Set<Class<?>> definitionsClasses)
-
Method Details
-
getInstance
-
initialize
-
getBuiltInScalarNames
- Returns:
- the names of the built-in scalar types supported by GraphQL Java.
-
getScalarTypeCodeBlockMapping
- Returns:
- a map of scalar names to CodeBlocks representing the code to access the scalar field. E.g "BigDecimal" -> "ExtendedScalars.GraphQLBigDecimal". This is used to automatically add scalar types to the wiring.
-
getScalarTypeNameMapping
- Returns:
- a map of all supported scalar names to their corresponding Java class names.
-
getScalarTypeMapping
- Returns:
- the java ClassName type mapping for a supported scalar type. Null if the scalar is not supported.
-