Class JavaOptions


  • public class JavaOptions
    extends java.lang.Object
    Options class for java 2 generator.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean generate_providence_core_types
      Set to true to generate types belonging in the 'net.morimekta.providence' and 'net.morimekta.providence.model' packages.
      boolean generated_annotation_version
      Add providence version to the @Generated annotation for each generated class.
      boolean hazelcast_portable
      Add hazelcast_portable serializer and deserializers for portable interface.
      boolean jackson
      Add jackson serializers and deserializers.
      boolean public_constructors
      Generate public constructors for all structs and exceptions.
      boolean rw_binary
      Add precompiled serialization for the binary protocol.
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaOptions()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • jackson

        public boolean jackson
        Add jackson serializers and deserializers.
      • rw_binary

        public boolean rw_binary
        Add precompiled serialization for the binary protocol.
      • hazelcast_portable

        public boolean hazelcast_portable
        Add hazelcast_portable serializer and deserializers for portable interface.
      • generated_annotation_version

        public boolean generated_annotation_version
        Add providence version to the @Generated annotation for each generated class.
      • public_constructors

        public boolean public_constructors
        Generate public constructors for all structs and exceptions. Have no effect on unions. Can be overridden per class with the java.public.constructor = "" annotation.
      • generate_providence_core_types

        public boolean generate_providence_core_types
        Set to true to generate types belonging in the 'net.morimekta.providence' and 'net.morimekta.providence.model' packages. Per default this is skipped as the models are located in the 'providence-core' and 'providence-reflect' packages respectively, where they are mainly used.
    • Constructor Detail

      • JavaOptions

        public JavaOptions()