Class JavaMarshallingGenerator

Direct Known Subclasses:
CppMarshallingHeadersGenerator, CSharpMarshallingGenerator

public class JavaMarshallingGenerator extends MultiSourceGenerator
  • Field Details

    • concreteClasses

      protected List<org.codehaus.jam.JClass> concreteClasses
    • factoryFile

      protected File factoryFile
    • factoryFileName

      protected String factoryFileName
    • indent

      protected String indent
    • targetDir

      protected String targetDir
  • Constructor Details

    • JavaMarshallingGenerator

      public JavaMarshallingGenerator()
  • Method Details

    • run

      public Object run()
      Overrides:
      run in class MultiSourceGenerator
    • generateFile

      protected void generateFile(PrintWriter out) throws Exception
      Specified by:
      generateFile in class MultiSourceGenerator
      Throws:
      Exception
    • processFactory

      protected void processFactory()
    • generateFactory

      protected void generateFactory(PrintWriter out)
    • processClass

      protected void processClass(org.codehaus.jam.JClass jclass)
      Overrides:
      processClass in class MultiSourceGenerator
    • getClassName

      protected String getClassName(org.codehaus.jam.JClass jclass)
      Overrides:
      getClassName in class MultiSourceGenerator
    • getBaseClassName

      protected String getBaseClassName(org.codehaus.jam.JClass jclass)
      Overrides:
      getBaseClassName in class MultiSourceGenerator
    • initialiseManuallyMaintainedClasses

      protected void initialiseManuallyMaintainedClasses()
      Overrides:
      initialiseManuallyMaintainedClasses in class MultiSourceGenerator
    • generateTightUnmarshalBody

      protected void generateTightUnmarshalBody(PrintWriter out)
    • generateTightUnmarshalBodyForProperty

      protected void generateTightUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
    • generateTightUnmarshalBodyForArrayProperty

      protected void generateTightUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
    • generateTightMarshal1Body

      protected int generateTightMarshal1Body(PrintWriter out)
    • generateTightMarshal2Body

      protected void generateTightMarshal2Body(PrintWriter out)
    • generateLooseMarshalBody

      protected void generateLooseMarshalBody(PrintWriter out)
    • generateLooseUnmarshalBody

      protected void generateLooseUnmarshalBody(PrintWriter out)
    • generateLooseUnmarshalBodyForProperty

      protected void generateLooseUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
    • generateLooseUnmarshalBodyForArrayProperty

      protected void generateLooseUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
    • getMandatoryFlag

      protected String getMandatoryFlag(org.codehaus.jam.JAnnotation annotation)
      Returns whether or not the given annotation has a mandatory flag on it or not
    • getConcreteClasses

      public List<org.codehaus.jam.JClass> getConcreteClasses()
    • setConcreteClasses

      public void setConcreteClasses(List<org.codehaus.jam.JClass> concreteClasses)
    • getFactoryFile

      public File getFactoryFile()
    • setFactoryFile

      public void setFactoryFile(File factoryFile)
    • getFactoryFileName

      public String getFactoryFileName()
    • setFactoryFileName

      public void setFactoryFileName(String factoryFileName)
    • getIndent

      public String getIndent()
    • setIndent

      public void setIndent(String indent)
    • getTargetDir

      public String getTargetDir()
    • setTargetDir

      public void setTargetDir(String sourceDir)