Class AbstractMarshallerCodeGenerator

java.lang.Object
org.infinispan.protostream.annotations.impl.AbstractMarshallerCodeGenerator
Direct Known Subclasses:
MarshallerSourceCodeGenerator

public abstract class AbstractMarshallerCodeGenerator extends Object
Since:
4.3
  • Field Details

    • PROTOSTREAM_PACKAGE

      private static final String PROTOSTREAM_PACKAGE
    • ADAPTER_FIELD_NAME

      protected static final String ADAPTER_FIELD_NAME
      See Also:
    • typeFactory

      private final XTypeFactory typeFactory
    • noDefaults

      private final boolean noDefaults
      Do nullable fields that do not have a user defined default value get a default type specific value if missing instead of just null? This is currently implemented just for arrays/collections. TODO Maybe numbers should also receive a 0 default value and booleans a false value. But what about strings? Empty string does not sound like a good fit. See the spec we do not fully implement here: Optional
      See Also:
    • protobufSchemaPackage

      private final String protobufSchemaPackage
    • useGenerics

      private final boolean useGenerics
      See Also:
  • Constructor Details

    • AbstractMarshallerCodeGenerator

      protected AbstractMarshallerCodeGenerator(XTypeFactory typeFactory, String protobufSchemaPackage)
  • Method Details