Class CBCGJavaTypeNames
java.lang.Object
com.io7m.cedarbridge.codegen.javastatic.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 interface name for the given protocol version.static com.io7m.jodist.ClassNameGenerate the name used for the serializer for a versioned protocol.static StringGenerate the name used for the deserialization function for a given type parameter.static StringGenerate the name used for the serialization function for a given type parameter.
-
Method Details
-
protoNameOf
Generate the Java class name for the given protocol.- Parameters:
proto- The protocol- Returns:
- The Java interface 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
-
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
-
typeParameterSerializeMethodName
Generate the name used for the serialization function for a given type parameter.- Parameters:
parameter- The parameter- Returns:
- The name
-
typeParameterDeserializeMethodName
Generate the name used for the deserialization function for a given type parameter.- Parameters:
parameter- The parameter- Returns:
- The name
-
protoVersionedSerializerNameOf
public static com.io7m.jodist.ClassName protoVersionedSerializerNameOf(CBProtocolVersionDeclarationType proto) Generate the name used for the serializer for a versioned protocol.- Parameters:
proto- The protocol- Returns:
- The name
-