Class OpFetchSerializerForNamedType
java.lang.Object
com.io7m.cedarbridge.codegen.java.internal.serializer_instantiation.OpAbstract
com.io7m.cedarbridge.codegen.java.internal.serializer_instantiation.OpFetchSerializerForNamedType
- All Implemented Interfaces:
CBCGSerializerInstantiationOperationType,OpFetchSerializerType,Comparable<CBCGSerializerInstantiationOperationType>
public final class OpFetchSerializerForNamedType
extends OpAbstract
implements OpFetchSerializerType
An operation that fetches a serializer for the given type.
-
Constructor Summary
ConstructorsConstructorDescriptionOpFetchSerializerForNamedType(int order, OpBuildTypeArgumentForNamed inBuildTypeArgument, com.io7m.jodist.ClassName inJavaTargetClassName, String inLocalName) An operation that fetches a serializer for the given type. -
Method Summary
Methods inherited from class com.io7m.cedarbridge.codegen.java.internal.serializer_instantiation.OpAbstract
programOrderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.io7m.cedarbridge.codegen.java.internal.serializer_instantiation.CBCGSerializerInstantiationOperationType
compareTo, programOrder
-
Constructor Details
-
OpFetchSerializerForNamedType
public OpFetchSerializerForNamedType(int order, OpBuildTypeArgumentForNamed inBuildTypeArgument, com.io7m.jodist.ClassName inJavaTargetClassName, String inLocalName) An operation that fetches a serializer for the given type.- Parameters:
order- The program orderinJavaTargetClassName- The target Java classinBuildTypeArgument- The operation that builds a type argumentinLocalName- The local variable name
-
-
Method Details
-
javaLocalName
- Specified by:
javaLocalNamein interfaceOpFetchSerializerType- Returns:
- The java class to which this operation belongs
-
serialize
public com.io7m.jodist.CodeBlock serialize()- Specified by:
serializein interfaceCBCGSerializerInstantiationOperationType- Returns:
- The code block to execute
-