Package viaduct.x.javaapi.codegen
Class TypeMapper
-
- All Implemented Interfaces:
public class TypeMapperMaps GraphQL types to Java types using ViaductSchema.TypeExpr. TypeExpr provides: - baseTypeDef: the base type (String, Int, User, etc.) - baseTypeNullable: is the base type nullable? - listDepth: depth of list nesting (0 = not a list, 1 = List, 2 = List
-
-
Constructor Summary
Constructors Constructor Description TypeMapper()
-
Method Summary
Modifier and Type Method Description StringtoJavaType(ViaductSchema.TypeExpr<out Object> typeExpr)Maps a ViaductSchema.TypeExpr to its Java representation. -
-
Method Detail
-
toJavaType
String toJavaType(ViaductSchema.TypeExpr<out Object> typeExpr)
Maps a ViaductSchema.TypeExpr to its Java representation.
- Parameters:
typeExpr- the type expression- Returns:
the Java type string
-
-
-
-