Class Exporter

  • All Implemented Interfaces:
    java.lang.Runnable

    public class Exporter
    extends java.lang.Object
    implements java.lang.Runnable
    Primary class for creating files and setting up code generation.
    • Constructor Summary

      Constructors 
      Constructor Description
      Exporter​(com.google.common.collect.ImmutableList<Step> steps, CodeGenerationSettings settings)
      Constructor for an exporter for use when not testing.
      Exporter​(com.google.common.collect.ImmutableList<Step> steps, CodeGenerationSettings settings, boolean testing)
      Constructor for an exporter with testing option.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getNonExportableStepNames()
      Gets the names of the non-exportable steps in the pipeline, if any exist.
      void run()  
      • Methods inherited from class java.lang.Object

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

      • Exporter

        public Exporter​(com.google.common.collect.ImmutableList<Step> steps,
                        CodeGenerationSettings settings,
                        boolean testing)
        Constructor for an exporter with testing option. In general for non grip testing, the version of the constructor without testing boolean should be called.
        Parameters:
        steps - an Immutable List of the steps in the pipeline to generate.
        settings - the settings to use for this export
        testing - if true enables features that allow for junit run tests for generated code.
      • Exporter

        public Exporter​(com.google.common.collect.ImmutableList<Step> steps,
                        CodeGenerationSettings settings)
        Constructor for an exporter for use when not testing.
        Parameters:
        steps - an Immutable List of the steps in the pipeline to generate.
        settings - the settings to use for this export
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • getNonExportableStepNames

        public java.util.Set<java.lang.String> getNonExportableStepNames()
        Gets the names of the non-exportable steps in the pipeline, if any exist.
        Returns:
        a set of the names of the non-exportable operations in the pipeline