Class CBCGJavaTypeNames
java.lang.Object
com.io7m.cedarbridge.codegen.java.internal.CBCGJavaTypeNames
Functions over Java type names.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.io7m.jodist.ClassNameGenerate the Java data class name for the given type.static com.io7m.jodist.ClassNameGenerate the Java data class name for the given case.static com.io7m.jodist.TypeNameGenerate the Java type name (including generic parameters) for the given type.static com.io7m.jodist.TypeNameGenerate the Java type name (including generic parameters) for the given case.static CBExternalNameGenerate the external name for the given type.static com.io7m.jodist.TypeNameGenerate the external type name for the given type.static StringfieldAccessorName(String name) Generate the field accessor name for the given field name.static com.io7m.jodist.ClassNameGenerate the Java interface name for the given protocol.static com.io7m.jodist.ClassNameGenerate the Java class name for the given protocol.static com.io7m.jodist.ClassNameGenerate the Java serializer class name for the given protocol version.static com.io7m.jodist.ClassNameGenerate the Java serializer factory class name for the given protocol version.static com.io7m.jodist.ClassNameGenerate the Java interface name for the given protocol version.static com.io7m.jodist.ClassNameGenerate the Java serializer class name for the given type.static com.io7m.jodist.ClassNameserializerCollectionClassNameOf(String packageName) Generate the serializer collection class name for the given package name.static com.io7m.jodist.ClassNameGenerate the Java serializer factory class name for the given type.
-
Method Details
-
protoNameOf
Generate the Java class name for the given protocol.- Parameters:
proto- The protocol- Returns:
- The Java class name
-
protoInterfaceNameOf
Generate the Java interface name for the given protocol.- Parameters:
proto- The protocol- Returns:
- The Java interface name
-
protoVersionedInterfaceNameOf
public static com.io7m.jodist.ClassName protoVersionedInterfaceNameOf(CBProtocolVersionDeclarationType proto) Generate the Java interface name for the given protocol version.- Parameters:
proto- The protocol version- Returns:
- The Java interface name
-
dataClassNameOf
Generate the Java data class name for the given type.- Parameters:
type- The type- Returns:
- The Java data class name
-
dataTypeNameOf
Generate the Java type name (including generic parameters) for the given type.- Parameters:
type- The type- Returns:
- The Java type name
-
dataTypeNameOfCase
Generate the Java type name (including generic parameters) for the given case.- Parameters:
caseV- The case- Returns:
- The Java type name
-
dataClassNameOfCase
Generate the Java data class name for the given case.- Parameters:
caseV- The case- Returns:
- The Java data class name
-
protoSerializerClassNameOf
public static com.io7m.jodist.ClassName protoSerializerClassNameOf(CBProtocolVersionDeclarationType proto) Generate the Java serializer class name for the given protocol version.- Parameters:
proto- The protocol version- Returns:
- The Java serializer class name
-
protoSerializerFactoryClassNameOf
public static com.io7m.jodist.ClassName protoSerializerFactoryClassNameOf(CBProtocolVersionDeclarationType proto) Generate the Java serializer factory class name for the given protocol version.- Parameters:
proto- The protocol version- Returns:
- The Java serializer factory class name
-
serializerClassNameOf
Generate the Java serializer class name for the given type.- Parameters:
type- The type- Returns:
- The Java serializer class name
-
serializerFactoryClassNameOf
Generate the Java serializer factory class name for the given type.- Parameters:
type- The type- Returns:
- The Java serializer factory class name
-
externalNameOf
Generate the external name for the given type.- Parameters:
type- The type- Returns:
- The external name
-
externalTypeNameOf
Generate the external type name for the given type.- Parameters:
decl- The type- Returns:
- The external type name
-
fieldAccessorName
Generate the field accessor name for the given field name.- Parameters:
name- The field name- Returns:
- The field accessor name
-
serializerCollectionClassNameOf
Generate the serializer collection class name for the given package name.- Parameters:
packageName- The package name- Returns:
- The serializer collection class name
-